Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EventTypeProcess ¶
type EventTypeProcess string
const ( EventTypeProcessSplitter EventTypeProcess = "http.splitter" EventTypeProcessHttpHandler EventTypeProcess = "http.handler" EventTypeProcessHttpController EventTypeProcess = "http.controller" EventTypeProcessGRPCWebController EventTypeProcess = "grpc.web.controller" EventTypeProcessGRPCController EventTypeProcess = "grpc.controller" EventTypeProcessHttpMiddlewareCompress EventTypeProcess = "http.middleware.compress" )
type Interceptor ¶
type Interceptor struct { UnaryServerInterceptor grpc.UnaryServerInterceptor StreamServerInterceptor grpc.StreamServerInterceptor }
type Listener ¶
type Listener interface { Init(opt Options, interceptor ...Interceptor) Run() (err error) RunRouter() (err error) // handle grpc, grpc-web and http RegisterMultipleHandler(MethodMultipleHandler) PushRouterListener(*listener.RouterListener, http.HandlerFunc) //Get from main modules GetServices() []string GetAllServices() (res []*listener.ServicesItems) GetOptions() Options GetGrpcServer() *grpc.Server RegisterGrpcHandler(handler MethodMultipleHandler) StartInsecureGRPCOnly() error }
listener modules interface, using for dynamic modules
type MethodMultipleHandler ¶
type MethodMultipleHandler interface{}
type MultipleHandlerOption ¶
type MultipleHandlerOption interface { GetServiceDesc() []*grpc.ServiceDesc AllowMethod(string) []Method }
MultipleHandlerOption -
type UseAuthCallback ¶
Click to show internal directories.
Click to hide internal directories.