Documentation ¶
Index ¶
- func DoHttpRequest(serverName, method, path string, body io.Reader) ([]byte, error)
- func GetRegistry() string
- func GetServerAddr(code string) (string, error)
- func GetTokenContext(tokenCode string) (*context.Context, error)
- func NewTokenMiddleware(cfg ...TokenMiddlewareConfig) func(ctx iris.Context)
- func Register(item RegObject) error
- type RegObject
- type TokenMiddlewareConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoHttpRequest ¶
func GetRegistry ¶
func GetRegistry() string
func GetServerAddr ¶
func NewTokenMiddleware ¶
func NewTokenMiddleware(cfg ...TokenMiddlewareConfig) func(ctx iris.Context)
Types ¶
type RegObject ¶
type RegObject struct { Code string `json:"code"` Name string `json:"name"` Addrs []string `json:"addrs"` Content string `json:"content"` Time *md.Time `json:"time"` }
func FindByCode ¶
type TokenMiddlewareConfig ¶
Click to show internal directories.
Click to hide internal directories.