Documentation ¶
Index ¶
- type App
- func (a *App) Create(ctx context.Context, app NewTitle) (Title, error)
- func (a *App) Delete(ctx context.Context, id uuid.UUID) error
- func (a *App) Query(ctx context.Context, qp QueryParams) (query.Result[Title], error)
- func (a *App) QueryByID(ctx context.Context, id uuid.UUID) (Title, error)
- func (a *App) Update(ctx context.Context, app UpdateTitle, id uuid.UUID) (Title, error)
- type NewTitle
- type QueryParams
- type Title
- type UpdateTitle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App manages the set of app layer api functions for the title domain.
func NewAppWithAuth ¶
NewAppWithAuth constructs a title app API for use with auth support.
type NewTitle ¶
type QueryParams ¶
type Title ¶
type Title struct { ID string `json:"id"` Description string `json:"description"` Name string `json:"name"` }
func ToAppTitle ¶
func ToAppTitles ¶
type UpdateTitle ¶
type UpdateTitle struct { Description *string `json:"description" validate:"required"` Name *string `json:"name" validate:"required,min=3,max=100"` }
func (*UpdateTitle) Decode ¶
func (app *UpdateTitle) Decode(data []byte) error
func (UpdateTitle) Validate ¶
func (app UpdateTitle) Validate() error
Click to show internal directories.
Click to hide internal directories.