model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTime

func GetTime() time.Time

GetTime Return RPC time

func GetTimeString

func GetTimeString() string

GetTimeString Return RPC time

func ToTime

func ToTime(lTime string) time.Time

ToTime Return RPC time

Types

type Client

type Client struct {
	UID     primitive.ObjectID `bson:"_id" json:"UID"`
	Label   string             `bson:"label" json:"Label"`
	Note    string             `bson:"note" json:"Note"`
	Relevan []Correlation      `bson:"relevan" json:"Relevan"`
	Created time.Time          `bson:"created" json:"Created"`
}

The Client holds

func (*Client) New

func (u *Client) New() *Client

New is generator default Client

type Correlation

type Correlation struct {
	Mold  uint    `bson:"mold" json:"Mold"`
	Frees uint    `bson:"frees" json:"Frees"`
	CSPay float32 `bson:"cspay" json:"CSPay"`
}

The Correlation holds

Jump to

Keyboard shortcuts

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