Documentation ¶
Index ¶
- func NewServer(config *config.Config) v1.ServiceServer
- func Register(params RegisterParams) error
- type RegisterParams
- type Server
- func (s *Server) GenerateAccessToken(ctx context.Context, req *v1.GenerateAccessTokenRequest) (*v1.GenerateAccessTokenResponse, error)
- func (s *Server) GenerateKey(ctx context.Context, req *v1.GenerateKeyRequest) (*v1.GenerateKeyResponse, error)
- func (s *Server) GeneratePassword(ctx context.Context, req *v1.GeneratePasswordRequest) (*v1.GeneratePasswordResponse, error)
- func (s *Server) GenerateServiceToken(ctx context.Context, req *v1.GenerateServiceTokenRequest) (*v1.GenerateServiceTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegisterParams ¶
type RegisterParams struct { fx.In Lifecycle fx.Lifecycle GRPCServer *grpc.Server HTTPServer *http.Server GRPCConfig *grpc.Config TransportConfig *transport.Config Logger *zap.Logger Tracer opentracing.Tracer Metrics *prometheus.ClientMetrics V1Config *sv1.Config }
RegisterParams for gRPC.
type Server ¶
type Server struct { v1.UnimplementedServiceServer // contains filtered or unexported fields }
Server for gRPC.
func (*Server) GenerateAccessToken ¶ added in v1.5.0
func (s *Server) GenerateAccessToken(ctx context.Context, req *v1.GenerateAccessTokenRequest) (*v1.GenerateAccessTokenResponse, error)
GenerateAccessToken for gRPC.
func (*Server) GenerateKey ¶ added in v1.4.0
func (s *Server) GenerateKey(ctx context.Context, req *v1.GenerateKeyRequest) (*v1.GenerateKeyResponse, error)
GenerateKey for gRPC.
func (*Server) GeneratePassword ¶
func (s *Server) GeneratePassword(ctx context.Context, req *v1.GeneratePasswordRequest) (*v1.GeneratePasswordResponse, error)
GeneratePassword for gRPC.
func (*Server) GenerateServiceToken ¶ added in v1.7.0
func (s *Server) GenerateServiceToken(ctx context.Context, req *v1.GenerateServiceTokenRequest) (*v1.GenerateServiceTokenResponse, error)
GenerateServiceToken for gRPC.
Click to show internal directories.
Click to hide internal directories.