utils

package
v0.0.0-...-a22ae41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIdFormat = errors.New("Invalid id format")

Functions

func AbortWithPublicError

func AbortWithPublicError(c *gin.Context, code int, internalError error, publicErrorInfo interface{})

func MoveInChildren

func MoveInChildren(
	children []bson.ObjectId,
	targetId bson.ObjectId,
	priorSiblingId string) ([]bson.ObjectId, error)

func ValidateObjectIdHex

func ValidateObjectIdHex(ids ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL