badge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	ID string `json:"id" bson:"_id" validate:"required,mongodb"`

	IconCode string `json:"icon_code" bson:"icon_code" validate:"required,min=4,max=32,g3_badge"`
	IconUrl  string `json:"icon_url" bson:"icon_url" validate:"required,url,g3_cdn"`

	UserCount int `json:"user_count" bson:"user_count" validate:"required,min=0"`

	CreatedDate time.Time `json:"created_at" bson:"created_at"`
}

[ Structs ]

func (*Badge) Validate

func (b *Badge) Validate() error

[ Methods ]

Jump to

Keyboard shortcuts

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