Documentation ¶
Index ¶
Constants ¶
View Source
const ( MongoDatabaseName = "random-dice" MongoUserCollectionName = "users" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserFunc ¶
type CreateUserFunc func(ctx context.Context, req *randomdicev1.CreateUserRequest) (*randomdicev1.CreateUserResponse, error)
func CreateUser ¶
func CreateUser(clk clock.Clock, mdb client.MongoDBClient) CreateUserFunc
type DeleteUserFunc ¶
type DeleteUserFunc func(ctx context.Context, req *randomdicev1.DeleteUserRequest) (*randomdicev1.DeleteUserResponse, error)
func DeleteUser ¶
func DeleteUser( clk clock.Clock, mdb client.MongoDBClient, ) DeleteUserFunc
type GetUserFunc ¶
type GetUserFunc func(ctx context.Context, req *randomdicev1.GetUserRequest) (*randomdicev1.GetUserResponse, error)
func GetUser ¶
func GetUser(mdb client.MongoDBClient) GetUserFunc
type ListUsersFunc ¶
type ListUsersFunc func(ctx context.Context, req *randomdicev1.ListUsersRequest) (*randomdicev1.ListUsersResponse, error)
func ListUser ¶
func ListUser(mdb client.MongoDBClient) ListUsersFunc
type UpdateUserFunc ¶
type UpdateUserFunc func(ctx context.Context, req *randomdicev1.UpdateUserRequest) (*randomdicev1.UpdateUserResponse, error)
func UpdateUser ¶
func UpdateUser(clk clock.Clock, mdb client.MongoDBClient) UpdateUserFunc
Click to show internal directories.
Click to hide internal directories.