Documentation ¶
Index ¶
- Variables
- func NewServer() *server
- type Opt
- func WithDieHookFunc(_func func()) Opt
- func WithEtcdEndpoints(endpoints []string) Opt
- func WithIpWhiteList(list []string) Opt
- func WithMiddlewares(middlewareFuncs ...mux.MiddlewareFunc) Opt
- func WithRatelimit(limit int64) Opt
- func WithServiceName(val string) Opt
- func WithServices(srvs ...TwirpServer) Opt
- type Option
- type TwirpServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Options []Opt
Functions ¶
Types ¶
type Opt ¶
func WithDieHookFunc ¶
func WithDieHookFunc(_func func()) Opt
func WithEtcdEndpoints ¶
func WithIpWhiteList ¶
func WithMiddlewares ¶
func WithMiddlewares(middlewareFuncs ...mux.MiddlewareFunc) Opt
func WithRatelimit ¶
func WithServiceName ¶
func WithServices ¶
func WithServices(srvs ...TwirpServer) Opt
type Option ¶
type Option struct { ServiceName string Services []TwirpServer Middlewares []mux.MiddlewareFunc DieHookFuncs []func() // EtcdEndpoints []string Ratelimit int64 IpWhiteList []string }
Click to show internal directories.
Click to hide internal directories.