rpc

package
v0.0.0-...-c7a98c3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalErrorString = "occurred error, please try again later"

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

type MetaData

type MetaData struct {
	UserAgent string
	ClientIP  string
}

type Server

type Server struct {
	pb.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(store db.Querier, maker token.Maker) (*Server, error)

func (*Server) CreateUser

func (s *Server) CreateUser(ctx context.Context, request *pb.CreateUserRequest) (*pb.UserInfo, error)

func (*Server) Login

func (s *Server) Login(ctx context.Context, request *pb.LoginRequest) (*pb.UserInfo, error)

func (*Server) Start

func (s *Server) Start(address string)

Jump to

Keyboard shortcuts

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