grpc

package
v0.0.0-...-42dd4d3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(service *Servicer, shutdown <-chan bool, done chan<- bool)

NewServer initializes the gRPC service and the server object.

Types

type Servicer

func (Servicer) CreateGroup

func (s Servicer) CreateGroup(_ context.Context, request *pb.Group) (*pb.Group, error)

func (Servicer) CreateUser

func (s Servicer) CreateUser(_ context.Context, request *pb.User) (*pb.User, error)

func (Servicer) DeleteGroup

func (s Servicer) DeleteGroup(_ context.Context, request *pb.Group) (*pb.Empty, error)

func (Servicer) DeleteUser

func (s Servicer) DeleteUser(_ context.Context, request *pb.User) (*pb.Empty, error)

func (Servicer) GetGroup

func (s Servicer) GetGroup(_ context.Context, request *pb.GetGroupRequest) (*pb.Group, error)

func (Servicer) GetUser

func (s Servicer) GetUser(_ context.Context, request *pb.GetUserRequest) (*pb.User, error)

func (Servicer) ListGroups

func (s Servicer) ListGroups(context.Context, *pb.Empty) (*pb.Groups, error)

func (Servicer) ListUsers

func (s Servicer) ListUsers(context.Context, *pb.Empty) (*pb.Users, error)

func (Servicer) RegisterGRPC

func (s Servicer) RegisterGRPC(server *grpc.Server)

func (Servicer) UpdateGroup

func (s Servicer) UpdateGroup(_ context.Context, request *pb.Group) (*pb.Group, error)

func (Servicer) UpdateUser

func (s Servicer) UpdateUser(_ context.Context, request *pb.User) (*pb.User, error)

Jump to

Keyboard shortcuts

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