models

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mobile

type Mobile struct {
	Id        string    `json:"id"`
	Token     uuid.UUID `json:"token"`
	ServerId  string    `json:"server_id"`
	RequestId string    `json:"request_id"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (Mobile) GenAccessToken

func (s Mobile) GenAccessToken() (token string)

type Server

type Server struct {
	Id        string    `json:"id"`
	Token     string    `json:"token"`
	Mobiles   []*Mobile `json:"mobiles"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (Server) GenAccessToken

func (s Server) GenAccessToken() (token string)

type Variable

type Variable struct {
	Name      string    `json:"name"`
	Value     string    `json:"value"`
	Autoload  bool      `json:"autoload"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func NewVariable

func NewVariable(name string) *Variable

func (*Variable) GetObj

func (v *Variable) GetObj(obj interface{}) (err error)

func (*Variable) SetObj

func (v *Variable) SetObj(obj interface{}) (err error)

Jump to

Keyboard shortcuts

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