args

package
v0.0.0-...-f677d32 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 2 Imported by: 24

Documentation

Index

Constants

View Source
const DeviceSql string = ``

DeviceSql the statement to create 'device' mysql table

View Source
const LogSql string = ``

LogSql the statement to create 'log' mysql table

View Source
const UserSql string = ``

UserSql the statement to create 'user' mysql table

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	UUID      string `key:"pri" json:"uuid"`
	UpdatedAt int64  `json:"updated_at"`
	CreatedAt int64  `json:"created_at"`
	DeletedTs int64  `json:"deleted_ts"`
}

Device comment...

type DivideArg

type DivideArg struct {
	// dividend
	A float64 `json:"a"`
	// divisor
	B float64 `param:"<range: 0.01:100000>" json:"b"`
}

DivideArg divide api arg

type DivideResult

type DivideResult struct {
	// quotient
	C float64 `json:"c"`
}

DivideResult divide api result

type EmptyStruct

type EmptyStruct = codec.PbEmpty

EmptyStruct alias of type struct {}

type HomeResult

type HomeResult struct {
	Content string `json:"content"` // text
}

HomeResult home result

type Log

type Log struct {
	Id        int64  `json:"id" key:"pri"`
	Text      string `json:"text"`
	UpdatedAt int64  `json:"updated_at"`
	CreatedAt int64  `json:"created_at"`
	DeletedTs int64  `json:"deleted_ts"`
}

Log comment...

type Meta

type Meta struct {
	Id        mongo.ObjectId `key:"pri" json:"_id" bson:"_id"`
	Name      string         `key:"uni" json:"name" bson:"name"`
	Hobby     []string       `json:"hobby" bson:"hobby"`
	Tags      []string       `json:"tags" bson:"tags"`
	UpdatedAt int64          `json:"updated_at" bson:"updated_at"`
	CreatedAt int64          `json:"created_at" bson:"created_at"`
	DeletedTs int64          `json:"deleted_ts" bson:"deleted_ts"`
}

Meta comment...

type StatArg

type StatArg struct {
	Ts int64 `param:"<query:ts>" json:"ts"` // timestamps
}

StatArg stat handler arg

type User

type User struct {
	Id        int64  `key:"pri" json:"id"`
	Name      string `key:"uni" json:"name"`
	Age       int32  `json:"age"`
	UpdatedAt int64  `json:"updated_at"`
	CreatedAt int64  `json:"created_at"`
	DeletedTs int64  `json:"deleted_ts"`
}

User user info

Jump to

Keyboard shortcuts

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