Discover Packages
github.com/ZYallers/rpcx-framework
define
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 31, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type IService interface {
Construct(service interface{}, ctx context .Context , args map[string ]interface{}, reply *interface{})
SignCheck() bool
LoginCheck(values ...string ) bool
}
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 RedisKey struct {
String, Hash, ZSet, List map[string ]string
}
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 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 TTLType struct {
Forever, NotExist float64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.