Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGPCServer ¶
func NewGRPCServer ¶
func ProviderServices ¶
func ProviderServices() []pservice.RegisterServiceHandler
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements the protobuf interface
func (*Backend) AddUser ¶
func (b *Backend) AddUser(ctx context.Context, _ *pbExample.AddUserRequest) (*pbExample.User, error)
AddUser adds a user to the in-memory store.
func (*Backend) ListUsers ¶
func (b *Backend) ListUsers(_ *pbExample.ListUsersRequest, srv pbExample.UserService_ListUsersServer) error
ListUsers lists all users in the store.
Click to show internal directories.
Click to hide internal directories.