Documentation ¶
Index ¶
- type Backend
- func (b *Backend) AddUser(ctx context.Context, req *connect.Request[usersv1.AddUserRequest]) (*connect.Response[usersv1.User], error)
- func (b *Backend) GetUser(ctx context.Context, req *connect.Request[usersv1.GetUserRequest]) (*connect.Response[usersv1.User], error)
- func (b *Backend) ListUsers(ctx context.Context, req *connect.Request[usersv1.ListUsersRequest], ...) error
- func (b *Backend) UpdateUser(ctx context.Context, req *connect.Request[usersv1.UpdateUserRequest]) (*connect.Response[usersv1.User], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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, req *connect.Request[usersv1.AddUserRequest]) (*connect.Response[usersv1.User], error)
AddUser adds a user to the in-memory store.
func (*Backend) GetUser ¶
func (b *Backend) GetUser(ctx context.Context, req *connect.Request[usersv1.GetUserRequest]) (*connect.Response[usersv1.User], error)
GetUser gets a user from the store.
Click to show internal directories.
Click to hide internal directories.