Documentation ¶
Index ¶
- type Client
- type ClientRequest
- type ClientResponse
- type Handler
- type JSON
- func (this *JSON) Auth(c ctx.C, into reflect.Value, required bool) error
- func (this *JSON) Marshal(c ctx.C, name string, from reflect.Value) error
- func (this *JSON) ReadFrom(c ctx.C, r io.Reader) error
- func (this JSON) String() string
- func (this *JSON) Unmarshal(c ctx.C, name string, into reflect.Value) error
- type Request
- type Server
- type ServerRequest
- type ServerResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientRequest ¶
the client request object used to Marshal a request to a server
type ClientResponse ¶
the client response object used to unmarshal the response from the server
type Handler ¶
type Handler[T any] struct { // contains filtered or unexported fields }
each type of object T has its own handler
func NewHandler ¶
we accept either Type or *Type
type JSON ¶
implementation for all the client/server request/responses using json Note(oha): the object is not goroutine safe, but it's not expected to be
Click to show internal directories.
Click to hide internal directories.