Documentation ¶
Index ¶
- Variables
- func NewGrpcServerPlugin(grpcServerFn func(ctx context.Context) *grpc.Server, services ...GrpcService) application.Plugin
- func NewHttpServerPlugin(handlerFn func(ctx context.Context) http.Handler) application.Plugin
- type GrpcServerPlugin
- type GrpcServerPluginConf
- type GrpcService
- type HttpServerPlugin
- type HttpServerPluginConf
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorEmptyEndpoint = errors.New("grpc server plugin used but not initialization")
View Source
var ErrorEmptyHttpEndpoint = errors.New("http server plugin used but not initialization")
Functions ¶
func NewGrpcServerPlugin ¶
func NewGrpcServerPlugin(grpcServerFn func(ctx context.Context) *grpc.Server, services ...GrpcService) application.Plugin
func NewHttpServerPlugin ¶
Types ¶
type GrpcServerPlugin ¶
type GrpcServerPlugin struct { application.Plugin `yaml:"-"` // contains filtered or unexported fields }
func (*GrpcServerPlugin) Config ¶
func (g *GrpcServerPlugin) Config(_ context.Context, conf []byte) error
func (*GrpcServerPlugin) DiscoverTheEntrance ¶
func (g *GrpcServerPlugin) DiscoverTheEntrance() (string, error)
type GrpcServerPluginConf ¶
type GrpcService ¶
type GrpcService struct { Metadata grpc_service.Metadata Impl any }
type HttpServerPlugin ¶
type HttpServerPlugin struct { application.Plugin `yaml:"-" json:"-"` // contains filtered or unexported fields }
type HttpServerPluginConf ¶
type HttpServerPluginConf struct {
Endpoint string `json:"http_endpoint" yaml:"http_endpoint"`
}
Click to show internal directories.
Click to hide internal directories.