request

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 HeadEx

type HeadEx interface {
	Head
	GetTimeOut() time.Duration
	SetTimeOut(duration time.Duration)
	GetStartTime() 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