Documentation
¶
Index ¶
- func ErrorInterceptor() grpc.UnaryServerInterceptor
- func ErrorStreamInterceptor() grpc.StreamServerInterceptor
- func GRPCGateway(ctx context.Context, conf Config, metricsHandler http.HandlerFunc, ...) (http.Handler, error)
- func NewAuthAPI(svc *auth.Server) pb.AuthServer
- func NewClusterAPI(radosSvc *rados.Svc) pb.ClusterServer
- func NewCrushRuleAPI(radosSvc *rados.Svc) pb.CrushRuleServer
- func NewGrpcServer(conf Config, clusterAPI pb.ClusterServer, usersAPI pb.UsersServer, ...) *grpc.Server
- func NewStatusAPI(radosSvc *rados.Svc) pb.StatusServer
- func NewUsersAPI(svc *user.Service) pb.UsersServer
- func Serve(ctx context.Context, conf Config, grpcServer *grpc.Server, ...) (start func(context.Context) error, stop func(context.Context) error, err error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorInterceptor ¶
func ErrorInterceptor() grpc.UnaryServerInterceptor
func ErrorStreamInterceptor ¶
func ErrorStreamInterceptor() grpc.StreamServerInterceptor
func GRPCGateway ¶
func NewAuthAPI ¶
func NewAuthAPI(svc *auth.Server) pb.AuthServer
func NewClusterAPI ¶
func NewClusterAPI(radosSvc *rados.Svc) pb.ClusterServer
func NewCrushRuleAPI ¶
func NewCrushRuleAPI(radosSvc *rados.Svc) pb.CrushRuleServer
func NewGrpcServer ¶
func NewGrpcServer(conf Config, clusterAPI pb.ClusterServer, usersAPI pb.UsersServer, authAPI pb.AuthServer, crushRuleAPI pb.CrushRuleServer, statusAPI pb.StatusServer, authN grpc_auth.AuthFunc, tracer otel_trace.TracerProvider, logConf log.Config) *grpc.Server
func NewStatusAPI ¶
func NewStatusAPI(radosSvc *rados.Svc) pb.StatusServer
func NewUsersAPI ¶
func NewUsersAPI(svc *user.Service) pb.UsersServer
Types ¶
Click to show internal directories.
Click to hide internal directories.