Documentation ¶
Index ¶
- Constants
- func ExampleHTTPServerHandler(w http.ResponseWriter, r *http.Request)
- func NewExampleGRPCServerInterceptor(r runtime.Runtime) server.GRPCInterceptor
- func NewServer(app toolkit.Service, cfg *config.Config, repo *repository.Repository) servicepb.ExampleRpcServer
- func RegisterExampleHTTPServerMiddleware(runtime runtime.Runtime, service servicepb.ExampleServices) server.HttpServerMiddleware
- type Data
- type ExampleGRPCServerInterceptor
- type ExampleHTTPServerMiddleware
- type Handlers
Constants ¶
View Source
const MWAuthenticate server.KindMiddleware = "mwauthenticate"
Variables ¶
This section is empty.
Functions ¶
func ExampleHTTPServerHandler ¶
func ExampleHTTPServerHandler(w http.ResponseWriter, r *http.Request)
ExampleHTTPServerHandler server definitions
func NewExampleGRPCServerInterceptor ¶
func NewExampleGRPCServerInterceptor(r runtime.Runtime) server.GRPCInterceptor
func NewServer ¶
func NewServer(app toolkit.Service, cfg *config.Config, repo *repository.Repository) servicepb.ExampleRpcServer
func RegisterExampleHTTPServerMiddleware ¶
func RegisterExampleHTTPServerMiddleware(runtime runtime.Runtime, service servicepb.ExampleServices) server.HttpServerMiddleware
Types ¶
type ExampleGRPCServerInterceptor ¶
type ExampleGRPCServerInterceptor struct { server.GRPCInterceptor // contains filtered or unexported fields }
func (*ExampleGRPCServerInterceptor) Interceptor ¶
func (i *ExampleGRPCServerInterceptor) Interceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
func (*ExampleGRPCServerInterceptor) Kind ¶
func (i *ExampleGRPCServerInterceptor) Kind() server.KindInterceptor
type ExampleHTTPServerMiddleware ¶
type ExampleHTTPServerMiddleware struct { server.DefaultHttpServerMiddleware // contains filtered or unexported fields }
func (*ExampleHTTPServerMiddleware) Apply ¶
func (e *ExampleHTTPServerMiddleware) Apply(h http.HandlerFunc) http.HandlerFunc
func (*ExampleHTTPServerMiddleware) Kind ¶
func (e *ExampleHTTPServerMiddleware) Kind() server.KindMiddleware
type Handlers ¶
type Handlers struct { servicepb.ExampleRpcServer // contains filtered or unexported fields }
func (Handlers) HelloWorld ¶
func (h Handlers) HelloWorld(ctx context.Context, req *typespb.HelloWorldRequest) (*typespb.HelloWorldResponse, error)
Click to show internal directories.
Click to hide internal directories.