Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2023 Changes in this version + type Client struct + func NewClient(c ctx.C, init T) (Client[T], error) + func (this Client[T]) Recv(c ctx.C, res ClientResponse, into T) (err error) + func (this Client[T]) Send(c ctx.C, obj T, data ClientRequest) error + type ClientRequest interface + Marshal func(c ctx.C, name string, into reflect.Value) error + type ClientResponse interface + Unmarshal func(c ctx.C, name string, from reflect.Value) error + type Handler struct + func NewHandler(c ctx.C, init T) (Handler[T], error) + func (this *Handler[T]) Client() Client[T] + func (this *Handler[T]) Path() string + func (this *Handler[T]) Paths() []string + func (this *Handler[T]) Server() Server[T] + func (this *Handler[T]) Type() reflect.Type + func (this *Handler[T]) URL() *url.URL + func (this *Handler[T]) URLs() []*url.URL + type JSON struct + Data enc.Map + UID enc.Node + 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) Unmarshal(c ctx.C, name string, into reflect.Value) error + func (this JSON) String() string + type Request struct + Headers map[string]string + type Server struct + func NewServer(c ctx.C, init T) (Server[T], error) + func (this Server[T]) Recv(c ctx.C, req ServerRequest) (T, error) + func (this Server[T]) Send(c ctx.C, obj T, res ServerResponse) (err error) + type ServerRequest interface + Auth func(c ctx.C, into reflect.Value, required bool) error + Unmarshal func(c ctx.C, name string, into reflect.Value) error + type ServerResponse interface + Marshal func(c ctx.C, name string, into reflect.Value) error