grpc

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 16 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
}

Server.

func New

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

New.

func (*Server) CreateUser

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

CreateUser create user.

func (*Server) DeleteUser

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

DeleteUser delete user.

func (*Server) Ping

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

Ping.

func (*Server) ReadUser

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

ReadUser read user.

func (*Server) Start

func (s *Server) Start()

Start.

func (*Server) Stop

func (srv *Server) Stop()

Stop.

func (*Server) UpdateUser

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

UpdateUser update user.

Jump to

Keyboard shortcuts

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