Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildResource ¶
func BuildResource(ctx app.Context) response.Resource[Attributes, Relationships]
func Routes ¶
func Routes() []presentation.Route
Types ¶
type Attributes ¶
type Get ¶
type Get struct{}
func (Get) Decoder ¶
func (r Get) Decoder() presentation.DecoderFn
func (Get) Encoder ¶
func (r Get) Encoder() presentation.EncoderFn
func (Get) Endpoint ¶
func (r Get) Endpoint() presentation.EndpointFn
func (Get) ResourceConfig ¶
func (r Get) ResourceConfig() presentation.ResourceConfig
type Relationships ¶
type Relationships struct { Register *response.Relationship `json:"register,omitempty"` Hello *response.Relationship `json:"hello,omitempty"` Authenticate *response.Relationship `json:"authenticate,omitempty"` Documents *response.Relationship `json:"documents,omitempty"` Initialize *response.Relationship `json:"initialize,omitempty"` }
type ResourceConfig ¶
type ResourceConfig struct{}
func (ResourceConfig) Attributes ¶
func (r ResourceConfig) Attributes() any
func (ResourceConfig) Relationships ¶
func (r ResourceConfig) Relationships() any
Click to show internal directories.
Click to hide internal directories.