server/context.go
Lunny Xiao 351679f9b5
All checks were successful
continuous-integration/drone/push Build is passing
Add data for context (#158)
Reviewed-on: #158
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-09-02 13:06:28 +08:00

14 lines
471 B
Go

// Copyright 2020 The goftp Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package server
// Context represents a context the driver may want to know
type Context struct {
Sess *Session
Cmd string // request command on this request
Param string // request param on this request
Data map[string]interface{} // share data between middlewares
}