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 Attributes struct {
register.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 Post ¶
type Post struct{}
func (Post) Decoder ¶
func (r Post) Decoder() presentation.DecoderFn
func (Post) Encoder ¶
func (r Post) Encoder() presentation.EncoderFn
func (Post) Endpoint ¶
func (r Post) Endpoint() presentation.EndpointFn
func (Post) ResourceConfig ¶
func (r Post) ResourceConfig() presentation.ResourceConfig
type Relationships ¶
type Relationships struct {
Index *response.Relationship `json:"index,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.