Documentation ¶
Overview ¶
Package grpc provides implementation of gRPC API server for IAM service.
Note that this package is highly experimental.
Index ¶
- type Server
- type ServerConfig
- type TerminalAuthorizationServiceServer
- func (authServer *TerminalAuthorizationServiceServer) ConfirmTerminalAuthorization(callCtx context.Context, reqProto *iampb.ConfirmTerminalAuthorizationRequest) (*iampb.ConfirmTerminalAuthorizationResponse, error)
- func (authServer *TerminalAuthorizationServiceServer) GenerateAccessTokenByTerminalCredentials(callCtx context.Context, ...) (*iampb.GenerateAccessTokenByTerminalCredentialsResponse, error)
- func (authServer *TerminalAuthorizationServiceServer) InitiateUserTerminalAuthorizationByPhoneNumber(callCtx context.Context, ...) (*iampb.InitiateUserTerminalAuthorizationByPhoneNumberResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( config ServerConfig, iamServerCore *iamserver.Core, ) (*Server, error)
func (*Server) IsAcceptingClients ¶
IsAcceptingClients conforms app.ServiceServer interface.
func (*Server) ServerName ¶
ServerName conforms app.ServiceServer interface.
type ServerConfig ¶
type ServerConfig struct {
ServePort int `env:"SERVE_PORT"`
}
type TerminalAuthorizationServiceServer ¶
type TerminalAuthorizationServiceServer struct {
// contains filtered or unexported fields
}
func NewTerminalAuthorizationServiceServer ¶
func NewTerminalAuthorizationServiceServer( iamServerCore *iamserver.Core, grpcServer *grpc.Server, ) *TerminalAuthorizationServiceServer
func (*TerminalAuthorizationServiceServer) ConfirmTerminalAuthorization ¶
func (authServer *TerminalAuthorizationServiceServer) ConfirmTerminalAuthorization( callCtx context.Context, reqProto *iampb.ConfirmTerminalAuthorizationRequest, ) (*iampb.ConfirmTerminalAuthorizationResponse, error)
func (*TerminalAuthorizationServiceServer) GenerateAccessTokenByTerminalCredentials ¶
func (authServer *TerminalAuthorizationServiceServer) GenerateAccessTokenByTerminalCredentials( callCtx context.Context, reqProto *iampb.GenerateAccessTokenByTerminalCredentialsRequest, ) (*iampb.GenerateAccessTokenByTerminalCredentialsResponse, error)
func (*TerminalAuthorizationServiceServer) InitiateUserTerminalAuthorizationByPhoneNumber ¶
func (authServer *TerminalAuthorizationServiceServer) InitiateUserTerminalAuthorizationByPhoneNumber( callCtx context.Context, reqProto *iampb.InitiateUserTerminalAuthorizationByPhoneNumberRequest, ) (*iampb.InitiateUserTerminalAuthorizationByPhoneNumberResponse, error)
TODO: verification methods
Click to show internal directories.
Click to hide internal directories.