Documentation ¶
Index ¶
- type Backend
- func (b *Backend) AddBuild(ctx context.Context, breq *buildsv1.AddBuildRequest) (*buildsv1.AddBuildResponse, error)
- func (b *Backend) AddUser(ctx context.Context, _ *usersv1.AddUserRequest) (*usersv1.AddUserResponse, error)
- func (b *Backend) ListBuilds(_ *buildsv1.ListBuildsRequest, srv buildsv1.BuildService_ListBuildsServer) error
- func (b *Backend) ListUsers(_ *usersv1.ListUsersRequest, srv usersv1.UserService_ListUsersServer) 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) AddBuild ¶
func (b *Backend) AddBuild(ctx context.Context, breq *buildsv1.AddBuildRequest) (*buildsv1.AddBuildResponse, error)
AddUser adds a build to the in-memory store.
func (*Backend) AddUser ¶
func (b *Backend) AddUser(ctx context.Context, _ *usersv1.AddUserRequest) (*usersv1.AddUserResponse, error)
AddUser adds a user to the in-memory store.
func (*Backend) ListBuilds ¶
func (b *Backend) ListBuilds(_ *buildsv1.ListBuildsRequest, srv buildsv1.BuildService_ListBuildsServer) error
ListUsers lists all builds in the store.
func (*Backend) ListUsers ¶
func (b *Backend) ListUsers(_ *usersv1.ListUsersRequest, srv usersv1.UserService_ListUsersServer) error
ListUsers lists all users in the store.
Click to show internal directories.
Click to hide internal directories.