Documentation ¶
Index ¶
- Variables
- type BytesBuffer
- type Cookie
- type Create
- 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
- type FormMultipartWithFile
- type FormMultipartWithFiles
- type FormURLEncoded
- type GetByID
- type GithubComGoCourierHttptransportHttpxAttachment
- type GithubComGoCourierHttptransportHttpxImagePNG
- type GithubComGoCourierHttptransportHttpxStatusFound
- type GithubComGoCourierStatuserrorErrorField
- type GithubComGoCourierStatuserrorErrorFields
- type GithubComGoCourierStatuserrorStatusErr
- type HealthCheck
- type Protocol
- type Redirect
- type RedirectWhenError
- type RemoveByID
- type ShowImage
- type UpdateByID
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidDemoProtocol = errors.New("invalid DemoProtocol type")
Functions ¶
This section is empty.
Types ¶
type BytesBuffer ¶
type Cookie ¶
type Cookie struct {
Token string `in:"cookie" name:"token,omitempty"`
}
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)
type Create ¶
type Create struct {
Data Data `in:"body"`
}
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)
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) 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) 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"` Slice []string `name:"slice,omitempty"` String string `name:"string,omitempty"` } `in:"body" mime:"multipart"` }
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) 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) 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) 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) 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) 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) 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)
type GithubComGoCourierHttptransportHttpxAttachment ¶
type GithubComGoCourierHttptransportHttpxAttachment = github_com_go_courier_httptransport_httpx.Attachment
type GithubComGoCourierHttptransportHttpxImagePNG ¶
type GithubComGoCourierHttptransportHttpxImagePNG = github_com_go_courier_httptransport_httpx.ImagePNG
type GithubComGoCourierHttptransportHttpxStatusFound ¶
type GithubComGoCourierHttptransportHttpxStatusFound = github_com_go_courier_httptransport_httpx.StatusFound
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) 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) Method ¶
func (HealthCheck) Method() string
func (HealthCheck) Path ¶
func (HealthCheck) Path() string
type Protocol ¶
type Protocol = DemoProtocol
type Redirect ¶
type Redirect struct { }
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)
type RedirectWhenError ¶
type RedirectWhenError struct { }
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) 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) 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)
@StatusErr[Unauthorized][401999001][Unauthorized]! @StatusErr[InternalServerError][500100001][InternalServerError] @StatusErr[InternalServerError][500999001][InternalServerError]
func (RemoveByID) Method ¶
func (RemoveByID) Method() string
func (RemoveByID) Path ¶
func (RemoveByID) Path() string
type ShowImage ¶
type ShowImage struct { }
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)
type UpdateByID ¶
type UpdateByID struct { ID string `in:"path" name:"id" validate:"@string[6,]"` Data Data `in:"body"` }
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) Method ¶
func (UpdateByID) Method() string
func (UpdateByID) Path ¶
func (UpdateByID) Path() string
Click to show internal directories.
Click to hide internal directories.