initial commit

This commit is contained in:
ginuerzh
2021-03-30 22:34:01 +08:00
commit b74e4cc8a4
23 changed files with 925 additions and 0 deletions

17
server/handler/option.go Normal file
View File

@ -0,0 +1,17 @@
package handler
import (
"github.com/go-gost/gost/logger"
)
type Options struct {
Logger logger.Logger
}
type Option func(opts *Options)
func LoggerOption(logger logger.Logger) Option {
return func(opts *Options) {
opts.Logger = logger
}
}