Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) AuthDevice(ctx context.Context, in *pb.AuthDeviceRequest) (*pb.AuthDeviceReply, error)
- func (s *Server) Authenticate(ctx context.Context, in *pb.AuthenticateRequest) (*pb.AuthenticateReply, error)
- func (s *Server) CreateDevice(ctx context.Context, in *pb.Device) (*pb.Device, error)
- func (s *Server) CreateSession(ctx context.Context, in *pb.CreateSessionRequest) (*pb.CreateSessionReply, error)
- func (s *Server) ReadDevice(ctx context.Context, in *pb.Device) (*pb.Device, error)
- func (s *Server) ReadPerson(ctx context.Context, in *pb.Person) (*pb.Person, error)
- func (s *Server) UpdateDevice(ctx context.Context, in *pb.Device) (*pb.Device, error)
- func (s *Server) UpdateSession(ctx context.Context, in *pb.UpdateSessionRequest) (*pb.UpdateSessionReply, error)
- func (s *Server) WhoAmI(ctx context.Context, in *pb.WhoAmIRequest) (*pb.WhoAmIReply, error)
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 ¶
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 (*Server) ReadPerson ¶
func (*Server) UpdateDevice ¶
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.