define

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 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 IService

type IService interface {
	Construct(service interface{}, ctx context.Context, args map[string]interface{}, reply *interface{})
	SignCheck() bool
	LoginCheck(values ...string) bool
}

type M

type M map[string]interface{}

type Record

type Record struct {
	Type      string      `json:"type,omitempty"`
	TableName string      `json:"table_name,omitempty"`
	DataId    interface{} `json:"data_id,omitempty"`
	Intro     string      `json:"intro,omitempty"`
}

type Redis

type Redis struct {
	CommonExpiration time.Duration
	TTL              TTLType
}

type RedisKey

type RedisKey struct {
	String, Hash, ZSet, List map[string]string
}

type Reply

type Reply struct {
	Code    int           `json:"code"`
	Msg     string        `json:"msg"`
	Data    interface{}   `json:"data"`
	Record  *Record       `json:"record,omitempty"`
	Service *ReplyService `json:"service,omitempty"`
}

type ReplyService

type ReplyService struct {
	Name     string     `json:"name,omitempty"`
	Hostname string     `json:"hostname,omitempty"`
	Ip       string     `json:"ip,omitempty"`
	Addr     string     `json:"addr,omitempty"`
	Runtime  string     `json:"runtime,omitempty"`
	Start    *time.Time `json:"start,omitempty"`
	End      *time.Time `json:"end,omitempty"`
}

type RestHandler

type RestHandler struct {
	Sort    int
	Signed  bool
	Logged  bool
	Path    string
	Version string
	Method  string
	Service IService
}

type Restful

type Restful map[string][]RestHandler

type TTLType

type TTLType struct {
	Forever, NotExist float64
}

Jump to

Keyboard shortcuts

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