Documentation ¶
Index ¶
- func NewServer(params ServerParams) 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)
- func (s *Server) GetPublicKey(ctx context.Context, req *v1.GetPublicKeyRequest) (*v1.GetPublicKeyResponse, error)
- func (s *Server) VerifyServiceToken(ctx context.Context, req *v1.VerifyServiceTokenRequest) (*v1.VerifyServiceTokenResponse, error)
- type ServerParams
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 otel.Tracer Metrics *prometheus.ClientMetrics Server v1.ServiceServer }
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.
func (*Server) GetPublicKey ¶ added in v1.10.0
func (s *Server) GetPublicKey(ctx context.Context, req *v1.GetPublicKeyRequest) (*v1.GetPublicKeyResponse, error)
GetPublicKey from kind.
func (*Server) VerifyServiceToken ¶ added in v1.12.0
func (s *Server) VerifyServiceToken(ctx context.Context, req *v1.VerifyServiceTokenRequest) (*v1.VerifyServiceTokenResponse, error)
VerifyServiceToken for gRPC.
type ServerParams ¶ added in v1.10.4
type ServerParams struct { fx.In Config *config.Config Key *key.Config RSA *key.RSA KeyGenerator *key.Generator ServiceGenerator *service.Service PrivateKey ed25519.PrivateKey Secure *password.Secure Enforcer *casbin.Enforcer Cache *ristretto.Cache }
ServerParams for gRPC.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.