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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDeleteBlobEndpoint

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

func MakeGetBlobEndpoint

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

func MakeStoreBlobEndpoint

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

Types

type DeleteRequest

type DeleteRequest struct {
	ID      string `json:"id"`
	Service string `json:"service"`
}

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"`
	Service string `json:"service"`
}

type GetResponse

type GetResponse struct {
	Blob *domain.Blob `json:"blob"`
	Err  error        `json:"-"`
}

func (GetResponse) Failed

func (r GetResponse) Failed() error

type StoreRequest

type StoreRequest struct {
	RootID    string      `json:"root_id"`
	Service   string      `json:"service"`
	BlobType  string      `json:"blob_type"`
	Extension string      `json:"extension"`
	Size      string      `json:"size"`
	Content   domain.File `json:"content"`
}

type StoreResponse

type StoreResponse struct {
	Blob *domain.Blob
	Err  error `json:"-"`
}

func (StoreResponse) Failed

func (r StoreResponse) Failed() error

Jump to

Keyboard shortcuts

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