media

package
v0.0.2-rc-ci Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(service Service, authService auth.Service, mediaPath, prefix string) func(chi.Router)

Router returns a new http router that handles crud event requests for a given event service.

Types

type AddFileResponse

type AddFileResponse struct {
	ID string `json:"id"`
}

type Service

type Service interface {
	AddFile(ctx context.Context, file io.Reader) (id string, err error)
	GetFile(ctx context.Context, name string) (file io.Writer, err error)
}

-go:generate go run github.com/petergtz/pegomock/pegomock generate eintopf.info/service/media Service --output=../../internal/mock/media_service.go --package=mock --mock-name=MediaService

func NewAuthorizer

func NewAuthorizer(service Service) Service

func NewService

func NewService(path string) Service

Jump to

Keyboard shortcuts

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