Documentation ¶
Index ¶
- func MakeCreateMediaEndpoint(svc usecase.MediaInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeDeleteMediaEndpoint(svc usecase.MediaInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeGetMediaEndpoint(svc usecase.MediaInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeHardDeleteMediaEndpoint(svc usecase.MediaInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeListMediaEndpoint(svc usecase.MediaInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeRestoreMediaEndpoint(svc usecase.MediaInteractor, logger log.Logger, duration metrics.Histogram, ...) endpoint.Endpoint
- func MakeUpdateMediaEndpoint(svc usecase.MediaInteractor, 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 MakeCreateMediaEndpoint ¶
func MakeDeleteMediaEndpoint ¶
func MakeGetMediaEndpoint ¶
func MakeListMediaEndpoint ¶
func MakeUpdateMediaEndpoint ¶
Types ¶
type CreateRequest ¶
type CreateRequest struct { Title string `json:"title"` DisplayName string `json:"display_name"` Description string `json:"description"` LanguageCode string `json:"language_code"` PublisherID string `json:"publisher_id"` AuthorID string `json:"author_id"` PublishDate string `json:"publish_date"` MediaType string `json:"media_type"` }
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 { Medias []*domain.Media `json:"media"` 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"` Title string `json:"title"` DisplayName string `json:"display_name"` Description string `json:"description"` LanguageCode string `json:"language_code"` PublisherID string `json:"publisher_id"` AuthorID string `json:"author_id"` PublishDate string `json:"publish_date"` MediaType string `json:"media_type"` URL string `json:"url"` }
type UpdateResponse ¶
func (UpdateResponse) Failed ¶
func (r UpdateResponse) Failed() error
Click to show internal directories.
Click to hide internal directories.