gate

package
v0.0.0-...-f08ef98 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Health *health.Health
)

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedVOxOVServer
}

func (*Server) AuthDevice

func (s *Server) AuthDevice(ctx context.Context, in *pb.AuthDeviceRequest) (*pb.AuthDeviceReply, error)

func (*Server) Authenticate

func (s *Server) Authenticate(ctx context.Context, in *pb.AuthenticateRequest) (*pb.AuthenticateReply, error)

Client requests what to send to who to authenticate.

func (*Server) CreateDevice

func (s *Server) CreateDevice(ctx context.Context, in *pb.Device) (*pb.Device, error)

Create a new device

func (*Server) CreateSession

func (s *Server) CreateSession(ctx context.Context, in *pb.CreateSessionRequest) (*pb.CreateSessionReply, error)

Initiate a session with a positive ttl.

func (*Server) ReadDevice

func (s *Server) ReadDevice(ctx context.Context, in *pb.Device) (*pb.Device, error)

func (*Server) ReadPerson

func (s *Server) ReadPerson(ctx context.Context, in *pb.Person) (*pb.Person, error)

func (*Server) UpdateDevice

func (s *Server) UpdateDevice(ctx context.Context, in *pb.Device) (*pb.Device, error)

func (*Server) UpdateSession

func (s *Server) UpdateSession(ctx context.Context, in *pb.UpdateSessionRequest) (*pb.UpdateSessionReply, error)

Assign ttl if session is not expired.

func (*Server) WhoAmI

func (s *Server) WhoAmI(ctx context.Context, in *pb.WhoAmIRequest) (*pb.WhoAmIReply, error)

Client checks if sms was received, and if so update session person.

Jump to

Keyboard shortcuts

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