Documentation ¶
Index ¶
- func MakeCreateAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeDeleteAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeGetAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeHardDeleteAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeListAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeRestoreAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeUpdateAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type GetRequest
- type GetResponse
- type HardDeleteRequest
- type HardDeleteResponse
- type ListRequest
- type ListResponse
- type RestoreRequest
- type RestoreResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGetAuthorEndpoint ¶
func MakeListAuthorEndpoint ¶
Types ¶
type CreateRequest ¶
type CreateResponse ¶
func (CreateResponse) Failed ¶
func (r CreateResponse) Failed() error
type DeleteRequest ¶
type DeleteRequest struct {
ID string `json:"id"`
}
type DeleteResponse ¶
type DeleteResponse struct {
Err error `json:"-"`
}
func (DeleteResponse) Failed ¶
func (r DeleteResponse) Failed() error
type GetRequest ¶
type GetRequest struct {
ID string `json:"id"`
}
type GetResponse ¶
func (GetResponse) Failed ¶
func (r GetResponse) Failed() error
type HardDeleteRequest ¶
type HardDeleteRequest struct {
ID string `json:"id"`
}
type HardDeleteResponse ¶
type HardDeleteResponse struct {
Err error `json:"-"`
}
func (HardDeleteResponse) Failed ¶
func (r HardDeleteResponse) Failed() error
type ListRequest ¶
type ListRequest struct { PageToken string `json:"page_token"` PageSize string `json:"page_size"` FilterParams core.FilterParams `json:"filter_params"` }
type ListResponse ¶
type ListResponse struct { Authors []*domain.Author `json:"authors"` NextPageToken string `json:"next_page_token"` Err error `json:"-"` }
func (ListResponse) Failed ¶
func (r ListResponse) Failed() error
type RestoreRequest ¶
type RestoreRequest struct {
ID string `json:"id"`
}
type RestoreResponse ¶
type RestoreResponse struct {
Err error `json:"-"`
}
func (RestoreResponse) Failed ¶
func (r RestoreResponse) Failed() error
type UpdateRequest ¶
type UpdateRequest struct { ID string `json:"id"` FirstName string `json:"first_name"` LastName string `json:"last_name"` DisplayName string `json:"display_name"` OwnerID string `json:"owner_id"` OwnershipType string `json:"ownership_type"` Verified string `json:"verified"` Picture string `json:"picture"` Country string `json:"country"` }
type UpdateResponse ¶
func (UpdateResponse) Failed ¶
func (r UpdateResponse) Failed() error
Click to show internal directories.
Click to hide internal directories.