rest

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ArchiveIdResourceParam = "archiveID"
View Source
const ArchivePermissionIdResourceParam = "permissionID"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(options Options) *API

func (*API) Handler

func (s *API) Handler() http.Handler

func (*API) Register

func (s *API) Register(r chi.Router)

type ArchiveDTO

type ArchiveDTO struct {
	ID string

	Name string
}

type Options

type Options struct {
	ArchiveService           api.ArchiveService
	ArchivePermissionService api.ArchivePermissionService

	ErrorHandler func(w http.ResponseWriter, err error)
}

Jump to

Keyboard shortcuts

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