viewmodels

package
v0.0.0-...-9588916 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	UserName      string       `json:"userName"`
	LoginTime     time.Time    `json:"loginTime"`
	ChainId       int64        `json:"chain"`
	ChainName     string       `json:"chainName"`
	ChainNet      string       `json:"chainNet"`
	SupportChains []*chainType `json:"supportChains"`
}

func NewSession

func NewSession(chainName string, net string) *Session

func (*Session) AddSupportChain

func (s *Session) AddSupportChain(chains ...models.EsBlockChain)

type WebModel

type WebModel struct {
	Session   *Session
	ModelData interface{}
}

func (*WebModel) SetData

func (w *WebModel) SetData(data interface{})

Jump to

Keyboard shortcuts

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