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(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, code ErrorCode, message string)
- func ServeJSON(w http.ResponseWriter, body any) error
- type Error
- type ErrorCode
- type In
- type InOut
- type InOutP1
- type InOutP2
- type InOutP3
- type InOutP4
- type InP1
- type InP2
- type InP3
- type InP4
- type Out
- type OutP1
- type OutP2
- type OutP3
- type OutP4
- type Raw
- type RawP1
- type RawP2
- type RawP3
- type RawP4
- type Trigger
- type TriggerP1
- type TriggerP2
- type TriggerP3
- type TriggerP4
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServe ¶
func ServeError ¶
func ServeError(w http.ResponseWriter, code ErrorCode, message string)
Types ¶
type Error ¶
type InOut ¶
type InOut[inT, outT any] struct { // contains filtered or unexported fields }
type InOutP1 ¶
func NewInOutP1 ¶
type InOutP2 ¶
func NewInOutP2 ¶
type InOutP3 ¶
type InOutP3[inT, outT any, p1T, p2T, p3T ~string] struct { // contains filtered or unexported fields }
func NewInOutP3 ¶
type InOutP4 ¶
type InOutP4[inT, outT any, p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
func NewInOutP4 ¶
type OutP4 ¶
type OutP4[outT any, p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
type RawP1 ¶
type RawP1[p1T ~string] struct { // contains filtered or unexported fields }
type RawP2 ¶
type RawP2[p1T, p2T ~string] struct { // contains filtered or unexported fields }
type RawP3 ¶
type RawP3[p1T, p2T, p3T ~string] struct { // contains filtered or unexported fields }
type RawP4 ¶
type RawP4[p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
type TriggerP1 ¶
type TriggerP1[p1T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP1 ¶
type TriggerP2 ¶
type TriggerP2[p1T, p2T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP2 ¶
type TriggerP3 ¶
type TriggerP3[p1T, p2T, p3T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP3 ¶
type TriggerP4 ¶
type TriggerP4[p1T, p2T, p3T, p4T ~string] struct { // contains filtered or unexported fields }
func NewTriggerP4 ¶
Source Files ¶
- 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
- 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.