Documentation ¶
Index ¶
- func ListenAndServe(ctx convCtx.Context, host string, port int, svc any) (err error)
- func NewClient[svcT any](host string, port int) (svc *svcT)
- func NewError(status int, code ErrorCode, message string) (err error)
- func NewHandler(ctx convCtx.Context, host string, port int, svc any) http.Handler
- func ReceiveJSON[T any](r *http.Request) (res T, err error)
- func ServeError(w http.ResponseWriter, status int, code ErrorCode, message string)
- func ServeJSON(w http.ResponseWriter, body any) error
- type Check
- type Error
- type ErrorCode
- type In
- type InOut
- type InOutP1
- type InOutP2
- type InOutP3
- func (x *InOutP3[inT, outT, p1T, p2T, p3T]) Call(ctx convCtx.Context, p1 p1T, p2 p2T, p3 p3T, in inT) (out outT, err error)
- func (x InOutP3[inT, outT, p1T, p2T, p3T]) WithPostCheck(check Check) InOutP3[inT, outT, p1T, p2T, p3T]
- func (x InOutP3[inT, outT, p1T, p2T, p3T]) WithPreCheck(check Check) InOutP3[inT, outT, p1T, p2T, p3T]
- type InOutP4
- func (x *InOutP4[inT, outT, p1T, p2T, p3T, p4T]) Call(ctx convCtx.Context, p1 p1T, p2 p2T, p3 p3T, p4 p4T, in inT) (out outT, err error)
- func (x InOutP4[inT, outT, p1T, p2T, p3T, p4T]) WithPostCheck(check Check) InOutP4[inT, outT, p1T, p2T, p3T, p4T]
- func (x InOutP4[inT, outT, p1T, p2T, p3T, p4T]) WithPreCheck(check Check) InOutP4[inT, outT, p1T, p2T, p3T, p4T]
- type InP1
- type InP2
- type InP3
- type InP4
- func (x *InP4[inT, p1T, p2T, p3T, p4T]) Call(ctx convCtx.Context, p1 p1T, p2 p2T, p3 p3T, p4 p4T, in inT) (err error)
- func (x InP4[inT, p1T, p2T, p3T, p4T]) WithPostCheck(check Check) InP4[inT, p1T, p2T, p3T, p4T]
- func (x InP4[inT, p1T, p2T, p3T, p4T]) WithPreCheck(check Check) InP4[inT, p1T, p2T, p3T, p4T]
- type OpenAPI
- type Out
- type OutP1
- type OutP2
- type OutP3
- type OutP4
- func (x *OutP4[outT, p1T, p2T, p3T, p4T]) Call(ctx convCtx.Context, p1 p1T, p2 p2T, p3 p3T, p4 p4T) (out outT, err error)
- func (x OutP4[outT, p1T, p2T, p3T, p4T]) WithPostCheck(check Check) OutP4[outT, p1T, p2T, p3T, p4T]
- func (x OutP4[outT, p1T, p2T, p3T, p4T]) WithPreCheck(check Check) OutP4[outT, p1T, p2T, p3T, p4T]
- type Raw
- type RawP1
- type RawP2
- type RawP3
- type RawP4
- type Trigger
- type TriggerP1
- type TriggerP2
- type TriggerP3
- type TriggerP4
- func (x *TriggerP4[p1T, p2T, p3T, p4T]) Call(ctx convCtx.Context, p1 p1T, p2 p2T, p3 p3T, p4 p4T) (err error)
- func (x TriggerP4[p1T, p2T, p3T, p4T]) WithPostCheck(check Check) TriggerP4[p1T, p2T, p3T, p4T]
- func (x TriggerP4[p1T, p2T, p3T, p4T]) WithPreCheck(check Check) TriggerP4[p1T, p2T, p3T, p4T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ServeError ¶
func ServeError(w http.ResponseWriter, status int, code ErrorCode, message string)
Types ¶
type Error ¶
type In ¶
type In[inT any] struct { // contains filtered or unexported fields }
func (In[inT]) WithPostCheck ¶
func (In[inT]) WithPreCheck ¶
type InOut ¶
type InOut[inT, outT any] struct { // contains filtered or unexported fields }
func (InOut[inT, outT]) WithPostCheck ¶
func (InOut[inT, outT]) WithPreCheck ¶
type InOutP1 ¶
func NewInOutP1 ¶
func (InOutP1[inT, outT, p1T]) WithPostCheck ¶
func (InOutP1[inT, outT, p1T]) WithPreCheck ¶
type InOutP2 ¶
func NewInOutP2 ¶
func (InOutP2[inT, outT, p1T, p2T]) WithPostCheck ¶
func (InOutP2[inT, outT, p1T, p2T]) WithPreCheck ¶
type InOutP3 ¶
type InOutP3[inT, outT any, p1T, p2T, p3T ~string] struct { // contains filtered or unexported fields }
func NewInOutP3 ¶
func (InOutP3[inT, outT, p1T, p2T, p3T]) WithPostCheck ¶
func (InOutP3[inT, outT, p1T, p2T, p3T]) WithPreCheck ¶
type InOutP4 ¶
type InOutP4[inT, outT any, p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
func NewInOutP4 ¶
func (InOutP4[inT, outT, p1T, p2T, p3T, p4T]) WithPostCheck ¶
func (InOutP4[inT, outT, p1T, p2T, p3T, p4T]) WithPreCheck ¶
type InP1 ¶
func (InP1[inT, p1T]) WithPostCheck ¶
func (InP1[inT, p1T]) WithPreCheck ¶
type InP2 ¶
func (InP2[inT, p1T, p2T]) WithPostCheck ¶
func (InP2[inT, p1T, p2T]) WithPreCheck ¶
type InP3 ¶
func (InP3[inT, p1T, p2T, p3T]) WithPostCheck ¶
func (InP3[inT, p1T, p2T, p3T]) WithPreCheck ¶
type InP4 ¶
func (InP4[inT, p1T, p2T, p3T, p4T]) WithPostCheck ¶
func (InP4[inT, p1T, p2T, p3T, p4T]) WithPreCheck ¶
type Out ¶
type Out[outT any] struct { // contains filtered or unexported fields }
func (Out[outT]) WithPostCheck ¶
func (Out[outT]) WithPreCheck ¶
type OutP1 ¶
func (OutP1[outT, p1T]) WithPostCheck ¶
func (OutP1[outT, p1T]) WithPreCheck ¶
type OutP2 ¶
func (OutP2[outT, p1T, p2T]) WithPostCheck ¶
func (OutP2[outT, p1T, p2T]) WithPreCheck ¶
type OutP3 ¶
func (OutP3[outT, p1T, p2T, p3T]) WithPostCheck ¶
func (OutP3[outT, p1T, p2T, p3T]) WithPreCheck ¶
type OutP4 ¶
type OutP4[outT any, p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
func (OutP4[outT, p1T, p2T, p3T, p4T]) WithPostCheck ¶
func (OutP4[outT, p1T, p2T, p3T, p4T]) WithPreCheck ¶
type RawP1 ¶
type RawP1[p1T ~string] struct { // contains filtered or unexported fields }
func (RawP1[p1T]) WithPreCheck ¶
type RawP2 ¶
type RawP2[p1T, p2T ~string] struct { // contains filtered or unexported fields }
func (RawP2[p1T, p2T]) WithPreCheck ¶
type RawP3 ¶
type RawP3[p1T, p2T, p3T ~string] struct { // contains filtered or unexported fields }
func (RawP3[p1T, p2T, p3T]) WithPreCheck ¶
type RawP4 ¶
type RawP4[p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
func (RawP4[p1T, p2T, p3T, p4T]) WithPreCheck ¶
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
func (Trigger) WithPostCheck ¶
func (Trigger) WithPreCheck ¶
type TriggerP1 ¶
type TriggerP1[p1T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP1 ¶
func (TriggerP1[p1T]) WithPostCheck ¶
func (TriggerP1[p1T]) WithPreCheck ¶
type TriggerP2 ¶
type TriggerP2[p1T, p2T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP2 ¶
func (TriggerP2[p1T, p2T]) WithPostCheck ¶
func (TriggerP2[p1T, p2T]) WithPreCheck ¶
type TriggerP3 ¶
type TriggerP3[p1T, p2T, p3T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP3 ¶
func (TriggerP3[p1T, p2T, p3T]) WithPostCheck ¶
func (TriggerP3[p1T, p2T, p3T]) WithPreCheck ¶
type TriggerP4 ¶
type TriggerP4[p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP4 ¶
func (TriggerP4[p1T, p2T, p3T, p4T]) WithPostCheck ¶
func (TriggerP4[p1T, p2T, p3T, p4T]) WithPreCheck ¶
Source Files ¶
- check.go
- client.go
- descriptor.go
- endpoint.go
- error.go
- http.go
- in.go
- in_p1.go
- in_p2.go
- in_p3.go
- in_p4.go
- inout.go
- inout_p1.go
- inout_p2.go
- inout_p3.go
- inout_p4.go
- openapi.go
- out.go
- out_p1.go
- out_p2.go
- out_p3.go
- out_p4.go
- raw.go
- raw_p1.go
- raw_p2.go
- raw_p3.go
- raw_p4.go
- server.go
- trigger.go
- trigger_p1.go
- trigger_p2.go
- trigger_p3.go
- trigger_p4.go
- values.go
Click to show internal directories.
Click to hide internal directories.