entity

package
v0.0.0-...-57d3fb9 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoCurrency

type CryptoCurrency struct {
	Id    int64  `json:"id" bson:"id" db:"id"`
	Name  string `json:"name" bson:"name" db:"name" validate:"required"`
	Token string `json:"token" bson:"token" db:"token" validate:"required"`
	Votes int64  `json:"votes" bson:"votes" db:"votes"`
}

func (*CryptoCurrency) Validate

func (c *CryptoCurrency) Validate() error

Validate cryptocurrency structure

Jump to

Keyboard shortcuts

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