Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
Name string
Addr string
Serve ServeInterface
// contains filtered or unexported fields
}
func (*App) InitServe ¶
func (that *App) InitServe(s ServeInterface)
InitServe init the http serve and grpc serve
type ServeInterface ¶
type ServeOptions ¶
type ServeOptions func(opts *Options)
func WithGateway ¶
func WithGateway(addr string) ServeOptions
WithGateway enable the gateway and specify the address
func WithJwtAuth ¶
func WithJwtAuth(signKey string, authFilterMethods ...string) ServeOptions
func WithMetrics ¶
func WithMetrics(addr string) ServeOptions
func WithRateLimit ¶
func WithRateLimit(num int) ServeOptions
func WithTracer ¶
func WithTracer(addr string) ServeOptions
Click to show internal directories.
Click to hide internal directories.