Documentation ¶
Index ¶
- Variables
- type BytesBuffer
- type ClientDemo
- type ClientDemoStruct
- func (c *ClientDemoStruct) Context() context.Context
- func (c *ClientDemoStruct) Cookie(req *Cookie, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) Create(req *Create, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) DownloadFile(metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxAttachment, ...)
- func (c *ClientDemoStruct) FormMultipartWithFile(req *FormMultipartWithFile, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) FormMultipartWithFiles(req *FormMultipartWithFiles, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) FormURLEncoded(req *FormURLEncoded, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) GetByID(req *GetByID, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) HealthCheck(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) Proxy(metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) ProxyV2(metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) Redirect(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) RedirectWhenError(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) RemoveByID(req *RemoveByID, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) ShowImage(metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxImagePNG, ...)
- func (c *ClientDemoStruct) UpdateByID(req *UpdateByID, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
- func (c *ClientDemoStruct) WithContext(ctx context.Context) ClientDemo
- type Cookie
- func (req *Cookie) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *Cookie) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *Cookie) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (Cookie) Method() string
- func (Cookie) Path() string
- type Create
- func (req *Create) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *Create) Invoke(c github_com_go_courier_courier.Client, ...) (*Data, github_com_go_courier_courier.Metadata, error)
- func (req *Create) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (*Data, github_com_go_courier_courier.Metadata, error)
- func (Create) Method() string
- func (Create) Path() string
- type Data
- type DemoProtocol
- func (DemoProtocol) ConstValues() []github_com_go_courier_enumeration.Enum
- func (v DemoProtocol) Int() int
- func (v DemoProtocol) Label() string
- func (v DemoProtocol) MarshalText() ([]byte, error)
- func (v *DemoProtocol) Scan(src interface{}) error
- func (v DemoProtocol) String() string
- func (DemoProtocol) TypeName() string
- func (v *DemoProtocol) UnmarshalText(data []byte) (err error)
- func (v DemoProtocol) Value() (database_sql_driver.Value, error)
- type DownloadFile
- func (req *DownloadFile) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *DownloadFile) Invoke(c github_com_go_courier_courier.Client, ...) (*GithubComGoCourierHttptransportHttpxAttachment, ...)
- func (req *DownloadFile) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (*GithubComGoCourierHttptransportHttpxAttachment, ...)
- func (DownloadFile) Method() string
- func (DownloadFile) Path() string
- type FormMultipartWithFile
- func (req *FormMultipartWithFile) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *FormMultipartWithFile) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *FormMultipartWithFile) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (FormMultipartWithFile) Method() string
- func (FormMultipartWithFile) Path() string
- type FormMultipartWithFiles
- func (req *FormMultipartWithFiles) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *FormMultipartWithFiles) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *FormMultipartWithFiles) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (FormMultipartWithFiles) Method() string
- func (FormMultipartWithFiles) Path() string
- type FormURLEncoded
- func (req *FormURLEncoded) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *FormURLEncoded) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *FormURLEncoded) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (FormURLEncoded) Method() string
- func (FormURLEncoded) Path() string
- type GetByID
- func (req *GetByID) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *GetByID) Invoke(c github_com_go_courier_courier.Client, ...) (*Data, github_com_go_courier_courier.Metadata, error)
- func (req *GetByID) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (*Data, github_com_go_courier_courier.Metadata, error)
- func (GetByID) Method() string
- func (GetByID) Path() string
- type GithubComGoCourierHttptransportHttpxAttachment
- type GithubComGoCourierHttptransportHttpxImagePNG
- type GithubComGoCourierHttptransportHttpxResponse
- type GithubComGoCourierHttptransportHttpxStatusFound
- type GithubComGoCourierStatuserrorErrorField
- type GithubComGoCourierStatuserrorErrorFields
- type GithubComGoCourierStatuserrorStatusErr
- type HealthCheck
- func (req *HealthCheck) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *HealthCheck) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *HealthCheck) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (HealthCheck) Method() string
- func (HealthCheck) Path() string
- type IpInfo
- type Protocol
- type Proxy
- func (req *Proxy) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *Proxy) Invoke(c github_com_go_courier_courier.Client, ...) (*IpInfo, github_com_go_courier_courier.Metadata, error)
- func (req *Proxy) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (*IpInfo, github_com_go_courier_courier.Metadata, error)
- func (Proxy) Method() string
- func (Proxy) Path() string
- type ProxyV2
- func (req *ProxyV2) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *ProxyV2) Invoke(c github_com_go_courier_courier.Client, ...) (*IpInfo, github_com_go_courier_courier.Metadata, error)
- func (req *ProxyV2) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (*IpInfo, github_com_go_courier_courier.Metadata, error)
- func (ProxyV2) Method() string
- func (ProxyV2) Path() string
- type Redirect
- func (req *Redirect) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *Redirect) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *Redirect) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (Redirect) Method() string
- func (Redirect) Path() string
- type RedirectWhenError
- func (req *RedirectWhenError) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *RedirectWhenError) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *RedirectWhenError) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (RedirectWhenError) Method() string
- func (RedirectWhenError) Path() string
- type RemoveByID
- func (req *RemoveByID) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *RemoveByID) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *RemoveByID) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (RemoveByID) Method() string
- func (RemoveByID) Path() string
- type ShowImage
- func (req *ShowImage) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *ShowImage) Invoke(c github_com_go_courier_courier.Client, ...) (*GithubComGoCourierHttptransportHttpxImagePNG, ...)
- func (req *ShowImage) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (*GithubComGoCourierHttptransportHttpxImagePNG, ...)
- func (ShowImage) Method() string
- func (ShowImage) Path() string
- type SubData
- type UpdateByID
- func (req *UpdateByID) Do(ctx context.Context, c github_com_go_courier_courier.Client, ...) github_com_go_courier_courier.Result
- func (req *UpdateByID) Invoke(c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (req *UpdateByID) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, ...) (github_com_go_courier_courier.Metadata, error)
- func (UpdateByID) Method() string
- func (UpdateByID) Path() string
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidDemoProtocol = errors.New("invalid DemoProtocol type")
Functions ¶
This section is empty.
Types ¶
type BytesBuffer ¶
type ClientDemo ¶ added in v1.6.0
type ClientDemo interface { WithContext(context.Context) ClientDemo Context() context.Context Cookie(req *Cookie, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) Create(req *Create, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error) DownloadFile(metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxAttachment, github_com_go_courier_courier.Metadata, error) FormMultipartWithFile(req *FormMultipartWithFile, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) FormMultipartWithFiles(req *FormMultipartWithFiles, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) FormURLEncoded(req *FormURLEncoded, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) GetByID(req *GetByID, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error) HealthCheck(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) Proxy(metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error) ProxyV2(metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error) Redirect(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) RedirectWhenError(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) RemoveByID(req *RemoveByID, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) ShowImage(metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxImagePNG, github_com_go_courier_courier.Metadata, error) UpdateByID(req *UpdateByID, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error) }
type ClientDemoStruct ¶ added in v1.6.0
type ClientDemoStruct struct { Client github_com_go_courier_courier.Client // contains filtered or unexported fields }
func NewClientDemo ¶ added in v1.6.0
func NewClientDemo(c github_com_go_courier_courier.Client) *ClientDemoStruct
func (*ClientDemoStruct) Context ¶ added in v1.7.0
func (c *ClientDemoStruct) Context() context.Context
func (*ClientDemoStruct) Cookie ¶ added in v1.6.0
func (c *ClientDemoStruct) Cookie(req *Cookie, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) Create ¶ added in v1.6.0
func (c *ClientDemoStruct) Create(req *Create, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) DownloadFile ¶ added in v1.6.0
func (c *ClientDemoStruct) DownloadFile(metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxAttachment, github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) FormMultipartWithFile ¶ added in v1.6.0
func (c *ClientDemoStruct) FormMultipartWithFile(req *FormMultipartWithFile, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) FormMultipartWithFiles ¶ added in v1.6.0
func (c *ClientDemoStruct) FormMultipartWithFiles(req *FormMultipartWithFiles, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) FormURLEncoded ¶ added in v1.6.0
func (c *ClientDemoStruct) FormURLEncoded(req *FormURLEncoded, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) GetByID ¶ added in v1.6.0
func (c *ClientDemoStruct) GetByID(req *GetByID, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) HealthCheck ¶ added in v1.6.0
func (c *ClientDemoStruct) HealthCheck(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) Proxy ¶ added in v1.12.0
func (c *ClientDemoStruct) Proxy(metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) ProxyV2 ¶ added in v1.16.0
func (c *ClientDemoStruct) ProxyV2(metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) Redirect ¶ added in v1.6.0
func (c *ClientDemoStruct) Redirect(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) RedirectWhenError ¶ added in v1.6.0
func (c *ClientDemoStruct) RedirectWhenError(metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) RemoveByID ¶ added in v1.6.0
func (c *ClientDemoStruct) RemoveByID(req *RemoveByID, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) ShowImage ¶ added in v1.6.0
func (c *ClientDemoStruct) ShowImage(metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxImagePNG, github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) UpdateByID ¶ added in v1.6.0
func (c *ClientDemoStruct) UpdateByID(req *UpdateByID, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*ClientDemoStruct) WithContext ¶ added in v1.7.0
func (c *ClientDemoStruct) WithContext(ctx context.Context) ClientDemo
type Cookie ¶
type Cookie struct {
Token string `in:"cookie" name:"token,omitempty"`
}
func (*Cookie) Do ¶ added in v1.12.0
func (req *Cookie) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*Cookie) Invoke ¶
func (req *Cookie) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*Cookie) InvokeContext ¶ added in v1.7.0
func (req *Cookie) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
type Create ¶
type Create struct {
Data Data `in:"body"`
}
func (*Create) Do ¶ added in v1.12.0
func (req *Create) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*Create) Invoke ¶
func (req *Create) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
func (*Create) InvokeContext ¶ added in v1.7.0
func (req *Create) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
type DemoProtocol ¶
type DemoProtocol int
openapi:enum
const ( DEMO_PROTOCOL_UNKNOWN DemoProtocol = iota DEMO_PROTOCOL__HTTP // http DEMO_PROTOCOL__HTTPS // https )
const (
DEMO_PROTOCOL__TCP DemoProtocol = iota + 6 // TCP
)
func ParseDemoProtocolFromLabelString ¶
func ParseDemoProtocolFromLabelString(s string) (DemoProtocol, error)
func ParseDemoProtocolFromString ¶
func ParseDemoProtocolFromString(s string) (DemoProtocol, error)
func (DemoProtocol) ConstValues ¶
func (DemoProtocol) ConstValues() []github_com_go_courier_enumeration.Enum
func (DemoProtocol) Int ¶
func (v DemoProtocol) Int() int
func (DemoProtocol) Label ¶
func (v DemoProtocol) Label() string
func (DemoProtocol) MarshalText ¶
func (v DemoProtocol) MarshalText() ([]byte, error)
func (*DemoProtocol) Scan ¶
func (v *DemoProtocol) Scan(src interface{}) error
func (DemoProtocol) String ¶
func (v DemoProtocol) String() string
func (DemoProtocol) TypeName ¶
func (DemoProtocol) TypeName() string
func (*DemoProtocol) UnmarshalText ¶
func (v *DemoProtocol) UnmarshalText(data []byte) (err error)
func (DemoProtocol) Value ¶
func (v DemoProtocol) Value() (database_sql_driver.Value, error)
type DownloadFile ¶
type DownloadFile struct { }
func (*DownloadFile) Do ¶ added in v1.12.0
func (req *DownloadFile) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*DownloadFile) Invoke ¶
func (req *DownloadFile) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxAttachment, github_com_go_courier_courier.Metadata, error)
func (*DownloadFile) InvokeContext ¶ added in v1.7.0
func (req *DownloadFile) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxAttachment, github_com_go_courier_courier.Metadata, error)
func (DownloadFile) Method ¶
func (DownloadFile) Method() string
func (DownloadFile) Path ¶
func (DownloadFile) Path() string
type FormMultipartWithFile ¶
type FormMultipartWithFile struct { FormData struct { Data Data `name:"data,omitempty"` File *mime_multipart.FileHeader `name:"file"` Map map[Protocol]int32 `name:"map,omitempty"` Slice []string `name:"slice,omitempty"` // @deprecated String string `name:"string,omitempty"` } `in:"body" mime:"multipart"` }
func (*FormMultipartWithFile) Do ¶ added in v1.12.0
func (req *FormMultipartWithFile) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*FormMultipartWithFile) Invoke ¶
func (req *FormMultipartWithFile) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*FormMultipartWithFile) InvokeContext ¶ added in v1.7.0
func (req *FormMultipartWithFile) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (FormMultipartWithFile) Method ¶
func (FormMultipartWithFile) Method() string
func (FormMultipartWithFile) Path ¶
func (FormMultipartWithFile) Path() string
type FormMultipartWithFiles ¶
type FormMultipartWithFiles struct { FormData struct { Files []*mime_multipart.FileHeader `name:"files"` } `in:"body" mime:"multipart"` }
func (*FormMultipartWithFiles) Do ¶ added in v1.12.0
func (req *FormMultipartWithFiles) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*FormMultipartWithFiles) Invoke ¶
func (req *FormMultipartWithFiles) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*FormMultipartWithFiles) InvokeContext ¶ added in v1.7.0
func (req *FormMultipartWithFiles) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (FormMultipartWithFiles) Method ¶
func (FormMultipartWithFiles) Method() string
func (FormMultipartWithFiles) Path ¶
func (FormMultipartWithFiles) Path() string
type FormURLEncoded ¶
type FormURLEncoded struct { FormData struct { Data Data `name:"data"` Slice []string `name:"slice"` String string `name:"string"` } `in:"body" mime:"urlencoded"` }
func (*FormURLEncoded) Do ¶ added in v1.12.0
func (req *FormURLEncoded) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*FormURLEncoded) Invoke ¶
func (req *FormURLEncoded) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*FormURLEncoded) InvokeContext ¶ added in v1.7.0
func (req *FormURLEncoded) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (FormURLEncoded) Method ¶
func (FormURLEncoded) Method() string
func (FormURLEncoded) Path ¶
func (FormURLEncoded) Path() string
type GetByID ¶
type GetByID struct { ID string `in:"path" name:"id" validate:"@string[6,]"` Label []string `in:"query" name:"label,omitempty"` Name string `in:"query" name:"name,omitempty"` Protocol Protocol `in:"query" name:"protocol,omitempty"` }
func (*GetByID) Do ¶ added in v1.12.0
func (req *GetByID) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*GetByID) Invoke ¶
func (req *GetByID) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
func (*GetByID) InvokeContext ¶ added in v1.7.0
func (req *GetByID) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*Data, github_com_go_courier_courier.Metadata, error)
type GithubComGoCourierHttptransportHttpxAttachment ¶
type GithubComGoCourierHttptransportHttpxAttachment = github_com_go_courier_httptransport_httpx.Attachment
type GithubComGoCourierHttptransportHttpxImagePNG ¶
type GithubComGoCourierHttptransportHttpxImagePNG = github_com_go_courier_httptransport_httpx.ImagePNG
type GithubComGoCourierHttptransportHttpxResponse ¶ added in v1.15.1
type GithubComGoCourierHttptransportHttpxResponse = github_com_go_courier_httptransport_httpx.Response
type GithubComGoCourierHttptransportHttpxStatusFound ¶
type GithubComGoCourierHttptransportHttpxStatusFound struct {
GithubComGoCourierHttptransportHttpxResponse
}
type GithubComGoCourierStatuserrorErrorField ¶
type GithubComGoCourierStatuserrorErrorField = github_com_go_courier_statuserror.ErrorField
type GithubComGoCourierStatuserrorErrorFields ¶
type GithubComGoCourierStatuserrorErrorFields = github_com_go_courier_statuserror.ErrorFields
type GithubComGoCourierStatuserrorStatusErr ¶
type GithubComGoCourierStatuserrorStatusErr = github_com_go_courier_statuserror.StatusErr
type HealthCheck ¶
type HealthCheck struct { }
func (*HealthCheck) Do ¶ added in v1.12.0
func (req *HealthCheck) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*HealthCheck) Invoke ¶
func (req *HealthCheck) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*HealthCheck) InvokeContext ¶ added in v1.7.0
func (req *HealthCheck) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (HealthCheck) Method ¶
func (HealthCheck) Method() string
func (HealthCheck) Path ¶
func (HealthCheck) Path() string
type Protocol ¶
type Protocol = DemoProtocol
type Proxy ¶ added in v1.12.0
type Proxy struct { }
func (*Proxy) Do ¶ added in v1.12.0
func (req *Proxy) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
@StatusErr[ClientClosedRequest][499000001][request canceled] @StatusErr[RequestFailed][500000001][request failed] @StatusErr[RequestTransformFailed][400000001][transform request failed]
func (*Proxy) Invoke ¶ added in v1.12.0
func (req *Proxy) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
func (*Proxy) InvokeContext ¶ added in v1.12.0
func (req *Proxy) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
type ProxyV2 ¶ added in v1.16.0
type ProxyV2 struct { }
func (*ProxyV2) Do ¶ added in v1.16.0
func (req *ProxyV2) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
@StatusErr[ClientClosedRequest][499000001][request canceled] @StatusErr[RequestFailed][500000001][request failed] @StatusErr[RequestTransformFailed][400000001][transform request failed]
func (*ProxyV2) Invoke ¶ added in v1.16.0
func (req *ProxyV2) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
func (*ProxyV2) InvokeContext ¶ added in v1.16.0
func (req *ProxyV2) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*IpInfo, github_com_go_courier_courier.Metadata, error)
type Redirect ¶
type Redirect struct { }
func (*Redirect) Do ¶ added in v1.12.0
func (req *Redirect) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*Redirect) Invoke ¶
func (req *Redirect) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*Redirect) InvokeContext ¶ added in v1.7.0
func (req *Redirect) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
type RedirectWhenError ¶
type RedirectWhenError struct { }
func (*RedirectWhenError) Do ¶ added in v1.12.0
func (req *RedirectWhenError) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*RedirectWhenError) Invoke ¶
func (req *RedirectWhenError) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*RedirectWhenError) InvokeContext ¶ added in v1.7.0
func (req *RedirectWhenError) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (RedirectWhenError) Method ¶
func (RedirectWhenError) Method() string
func (RedirectWhenError) Path ¶
func (RedirectWhenError) Path() string
type RemoveByID ¶
type RemoveByID struct {
ID string `in:"path" name:"id" validate:"@string[6,]"`
}
func (*RemoveByID) Do ¶ added in v1.12.0
func (req *RemoveByID) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*RemoveByID) Invoke ¶
func (req *RemoveByID) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*RemoveByID) InvokeContext ¶ added in v1.7.0
func (req *RemoveByID) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (RemoveByID) Method ¶
func (RemoveByID) Method() string
func (RemoveByID) Path ¶
func (RemoveByID) Path() string
type ShowImage ¶
type ShowImage struct { }
func (*ShowImage) Do ¶ added in v1.12.0
func (req *ShowImage) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*ShowImage) Invoke ¶
func (req *ShowImage) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxImagePNG, github_com_go_courier_courier.Metadata, error)
func (*ShowImage) InvokeContext ¶ added in v1.7.0
func (req *ShowImage) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (*GithubComGoCourierHttptransportHttpxImagePNG, github_com_go_courier_courier.Metadata, error)
type UpdateByID ¶
type UpdateByID struct { ID string `in:"path" name:"id" validate:"@string[6,]"` Data Data `in:"body"` }
func (*UpdateByID) Do ¶ added in v1.12.0
func (req *UpdateByID) Do(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) github_com_go_courier_courier.Result
func (*UpdateByID) Invoke ¶
func (req *UpdateByID) Invoke(c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (*UpdateByID) InvokeContext ¶ added in v1.7.0
func (req *UpdateByID) InvokeContext(ctx context.Context, c github_com_go_courier_courier.Client, metas ...github_com_go_courier_courier.Metadata) (github_com_go_courier_courier.Metadata, error)
func (UpdateByID) Method ¶
func (UpdateByID) Method() string
func (UpdateByID) Path ¶
func (UpdateByID) Path() string
Click to show internal directories.
Click to hide internal directories.