Documentation ¶
Index ¶
- type App
- type GqlgenParams
- type GrpcParams
- type Option
- func WithDutyHttpServePort(port int) Option
- func WithGqlgenFieldMiddlewares(middlewares ...graphql.FieldMiddleware) Option
- func WithGqlgenMiddlewares(middlewares ...func(http.Handler) http.Handler) Option
- func WithGqlgenOperationMiddlewares(middlewares ...graphql.OperationMiddleware) Option
- func WithGqlgenResponseMiddlewares(middlewares ...graphql.ResponseMiddleware) Option
- func WithGqlgenServePort(port int) Option
- func WithGrpcHttpProxyPort(port int) Option
- func WithGrpcServePort(port int) Option
- func WithGrpcServerOptions(options ...grpc.ServerOption) Option
- func WithGrpcStatsHandler(handler stats.Handler) Option
- func WithGrpcTapHandler(handler tap.ServerInHandle) Option
- func WithGrpcUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option
- type RegisterParams
- type Service
- type ServiceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GqlgenRouter ¶
func (a *App) GqlgenRouter() chi.Router
GqlgenRouter USE IN YOUR OWN RISK
func (*App) HttpRouter ¶
func (a *App) HttpRouter() chi.Router
HttpRouter USE FOR HttpServiceType ONLY
type GqlgenParams ¶
type GqlgenParams struct {
// contains filtered or unexported fields
}
func (*GqlgenParams) GqlgenSchema ¶
func (p *GqlgenParams) GqlgenSchema() graphql.ExecutableSchema
func (*GqlgenParams) SetGqlgenSchema ¶
func (p *GqlgenParams) SetGqlgenSchema(schema graphql.ExecutableSchema)
type GrpcParams ¶
type GrpcParams struct {
// contains filtered or unexported fields
}
func (*GrpcParams) GrpcClientOptions ¶
func (p *GrpcParams) GrpcClientOptions() []grpc.DialOption
func (*GrpcParams) GrpcHttpProxyServeMux ¶
func (p *GrpcParams) GrpcHttpProxyServeMux() *runtime.ServeMux
func (*GrpcParams) GrpcServerEndpoint ¶
func (p *GrpcParams) GrpcServerEndpoint() string
func (*GrpcParams) GrpcServiceRegistrar ¶
func (p *GrpcParams) GrpcServiceRegistrar() grpc.ServiceRegistrar
func (*GrpcParams) SetOpenAPIDoc ¶
func (p *GrpcParams) SetOpenAPIDoc(doc []byte)
type Option ¶
type Option func(o *calledAppOptions)
func WithDutyHttpServePort ¶
func WithGqlgenFieldMiddlewares ¶
func WithGqlgenFieldMiddlewares(middlewares ...graphql.FieldMiddleware) Option
func WithGqlgenMiddlewares ¶
func WithGqlgenOperationMiddlewares ¶
func WithGqlgenOperationMiddlewares(middlewares ...graphql.OperationMiddleware) Option
func WithGqlgenResponseMiddlewares ¶
func WithGqlgenResponseMiddlewares(middlewares ...graphql.ResponseMiddleware) Option
func WithGqlgenServePort ¶
func WithGrpcHttpProxyPort ¶
func WithGrpcServePort ¶
func WithGrpcServerOptions ¶
func WithGrpcServerOptions(options ...grpc.ServerOption) Option
WithGrpcServerOptions USE IN YOUR OWN RISK
func WithGrpcStatsHandler ¶
func WithGrpcTapHandler ¶
func WithGrpcTapHandler(handler tap.ServerInHandle) Option
func WithGrpcUnaryServerInterceptors ¶
func WithGrpcUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option
type RegisterParams ¶
type RegisterParams struct {
// contains filtered or unexported fields
}
func (*RegisterParams) Context ¶
func (p *RegisterParams) Context() context.Context
func (*RegisterParams) Gqlgen ¶
func (p *RegisterParams) Gqlgen() *GqlgenParams
func (*RegisterParams) Grpc ¶
func (p *RegisterParams) Grpc() *GrpcParams
func (*RegisterParams) SetServiceType ¶
func (p *RegisterParams) SetServiceType(serviceType ServiceType)
type Service ¶
type Service interface {
RegisterService(params *RegisterParams) error
}
type ServiceType ¶
type ServiceType uint32
const ( UnknownServiceType ServiceType = 0 GrpcServiceType ServiceType = 1 GqlgenServiceType ServiceType = 2 HttpServiceType ServiceType = 3 )
Click to show internal directories.
Click to hide internal directories.