Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
func Collection(ctx context.Context, name string) *mongo.Collection
Collection : get pointer to collection with context
func Respond ¶
func Respond(w http.ResponseWriter, data interface{}, status int)
Respond : respond with JSON data and status code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.