request

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 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)
	GetTimeAt() int64
	GetCliTimeAt() int64
	SetSource(source string)
}

type Query

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

Jump to

Keyboard shortcuts

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