Documentation ¶
Index ¶
- func NewGRPCServer(params grpcServerParams) *fxgrpc.GRPCServer
- func NewGatewayHandler() *fxgrpc.HTTPGatewayHandler
- func NewLivenessGateway() *fxgrpc.LivenessGatewayHandler
- func RunHTTPGateway(lc fx.Lifecycle, s fx.Shutdowner, logger *zap.Logger, config *fxgrpc.Config, ...) error
- type Handler
- func (h *Handler) ChangeAdminPassword(ctx context.Context, _ *pbv1.AdminServiceChangeAdminPasswordRequest) (*pbv1.AdminServiceChangeAdminPasswordResponse, error)
- func (h *Handler) LoginAdmin(ctx context.Context, _ *pbv1.AdminServiceLoginAdminRequest) (*pbv1.AdminServiceLoginAdminResponse, error)
- func (h *Handler) LogoutAdmin(ctx context.Context, _ *pbv1.AdminServiceLogoutAdminRequest) (*pbv1.AdminServiceLogoutAdminResponse, error)
- func (h *Handler) RefreshAdminToken(ctx context.Context, _ *pbv1.AdminServiceRefreshAdminTokenRequest) (*pbv1.AdminServiceRefreshAdminTokenResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(params grpcServerParams) *fxgrpc.GRPCServer
func NewGatewayHandler ¶
func NewGatewayHandler() *fxgrpc.HTTPGatewayHandler
func NewLivenessGateway ¶
func NewLivenessGateway() *fxgrpc.LivenessGatewayHandler
func RunHTTPGateway ¶
Types ¶
type Handler ¶
type Handler struct { pbv1.AdminServiceServer // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(params handlerParams) *Handler
func (*Handler) ChangeAdminPassword ¶
func (h *Handler) ChangeAdminPassword(ctx context.Context, _ *pbv1.AdminServiceChangeAdminPasswordRequest) (*pbv1.AdminServiceChangeAdminPasswordResponse, error)
func (*Handler) LoginAdmin ¶
func (h *Handler) LoginAdmin(ctx context.Context, _ *pbv1.AdminServiceLoginAdminRequest) (*pbv1.AdminServiceLoginAdminResponse, error)
func (*Handler) LogoutAdmin ¶
func (h *Handler) LogoutAdmin(ctx context.Context, _ *pbv1.AdminServiceLogoutAdminRequest) (*pbv1.AdminServiceLogoutAdminResponse, error)
func (*Handler) RefreshAdminToken ¶
func (h *Handler) RefreshAdminToken(ctx context.Context, _ *pbv1.AdminServiceRefreshAdminTokenRequest) (*pbv1.AdminServiceRefreshAdminTokenResponse, error)
Click to show internal directories.
Click to hide internal directories.