Documentation ¶
Index ¶
- func CreateDatabase(pathToDbSchema string) (*database.Database, error)
- func CreateServer(db authentication.Database) *grpc.Server
- func GetTestImage() ([]byte, error)
- func GetTimePointer(t time.Time) *time.Time
- func StartServerAndConnect(server *grpc.Server) (*grpc.ClientConn, error)
- func TruncateDatabase(db *database.Database) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServer ¶
func CreateServer(db authentication.Database) *grpc.Server
CreateServer creates a GRPC server instance with the proper options
func GetTestImage ¶
GetTestImage returns the bytes of an image that can be used during tests
func GetTimePointer ¶
GetTimePointer returns a pointer to the given time
func StartServerAndConnect ¶
func StartServerAndConnect(server *grpc.Server) (*grpc.ClientConn, error)
StartServerAndConnect starts the given server and connects to it, returning the gRPC connection instance that can be used to create clients
func TruncateDatabase ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.