action

package
v0.0.0-...-833cb33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCreateAuthorEndpoint

func MakeCreateAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

func MakeDeleteAuthorEndpoint

func MakeDeleteAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

func MakeGetAuthorEndpoint

func MakeGetAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

func MakeHardDeleteAuthorEndpoint

func MakeHardDeleteAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

func MakeListAuthorEndpoint

func MakeListAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

func MakeRestoreAuthorEndpoint

func MakeRestoreAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

func MakeUpdateAuthorEndpoint

func MakeUpdateAuthorEndpoint(svc usecase.AuthorInteractor, logger log.Logger, duration metrics.Histogram,
	tracer stdopentracing.Tracer, zipkinTracer *stdzipkin.Tracer) endpoint.Endpoint

Types

type CreateRequest

type CreateRequest struct {
	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"`
	Country       string `json:"country"`
}

type CreateResponse

type CreateResponse struct {
	Author *domain.Author `json:"author"`
	Err    error          `json:"-"`
}

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

type GetResponse struct {
	Author *domain.Author `json:"author"`
	Err    error          `json:"-"`
}

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

type UpdateResponse struct {
	Author *domain.Author `json:"author"`
	Err    error          `json:"-"`
}

func (UpdateResponse) Failed

func (r UpdateResponse) Failed() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL