grpc

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

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 New

func New(cfgpath string, s service.Svc) (*Server, error)

func (*Server) CreateUser added in v1.3.0

func (srv *Server) CreateUser(c context.Context, u *api.UserT) (*api.UidT, error)

createUser

func (*Server) DeleteUser added in v1.3.0

func (srv *Server) DeleteUser(c context.Context, uid *api.UidT) (*api.Empty, error)

deleteUser

func (*Server) Ping

func (srv *Server) Ping(c context.Context, req *api.Request) (*api.Reply, error)

Ping

func (*Server) ReadUser added in v1.3.0

func (srv *Server) ReadUser(c context.Context, uid *api.UidT) (*api.UserT, error)

readUser

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop added in v1.4.0

func (srv *Server) Stop()

func (*Server) UpdateUser added in v1.3.0

func (srv *Server) UpdateUser(c context.Context, u *api.UserT) (*api.Empty, error)

updateUser

Jump to

Keyboard shortcuts

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