grpc

package
v0.0.0-...-2754675 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package grpc provides implementation of gRPC API server for IAM service.

Note that this package is highly experimental.

Index

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

func (srv *Server) IsAcceptingClients() bool

IsAcceptingClients conforms app.ServiceServer interface.

func (*Server) IsHealthy

func (srv *Server) IsHealthy() bool

IsHealthy conforms app.ServiceServer interface.

func (*Server) Serve

func (srv *Server) Serve() error

Serve conforms app.Serve interface.

func (*Server) ServerName

func (srv *Server) ServerName() string

ServerName conforms app.ServiceServer interface.

func (*Server) Shutdown

func (srv *Server) Shutdown(ctx context.Context) error

Shutdown 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 (*TerminalAuthorizationServiceServer) GenerateAccessTokenByTerminalCredentials

func (*TerminalAuthorizationServiceServer) InitiateUserTerminalAuthorizationByPhoneNumber

TODO: verification methods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL