Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModToProto ¶
func ModToProto(mod *Mod) *protobuffer.Mod
func ModsToProto ¶
func ModsToProto(mods []*Mod) []*protobuffer.Mod
Types ¶
type ListQuery ¶
type ListResult ¶
type ListResult[T any] struct { Size int `json:"size,omitempty" bson:"size"` Page int `json:"page,omitempty" bson:"page"` TotalItems int64 `json:"totalItems,omitempty" bson:"totalItems"` TotalPage int `json:"totalPage,omitempty" bson:"totalPage"` Items []T `json:"items,omitempty" bson:"items"` }
func NewListResult ¶
func NewListResult[T any](items []T, size int, page int, totalItems int64) *ListResult[T]
Click to show internal directories.
Click to hide internal directories.