request

package
v1.3.54 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Zlib Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Type    string `json:"type,omitempty"`
	Content []byte `json:"content,omitempty"`
}

func (*Content) GetContent

func (c *Content) GetContent() []byte

func (*Content) GetType

func (c *Content) GetType() string
type Head interface {
	GetSource() string
	GetSeqId() string
	GetVersion() string
}

Head * 为了让 api.Head 及rpc.Request(proto)都能

type HeadV2 added in v0.5.19

type HeadV2 interface {
	Head
	GetTimeOut() time.Duration
	SetTimeOut(duration time.Duration)
	// GetRecvAt 服务收到时间
	GetRecvAt() int64
	// GetReqAt 请求者时间
	GetReqAt() int64
	SetSource(source string)
}

type Query

type Query struct {
	AppId       string `form:"appid" binding:"required" json:"appid"` //appid
	ComponentId string `form:"componentId" binding:"-" json:"componentId"`
}

Jump to

Keyboard shortcuts

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