rest

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ArchiveIdResourceParam = "archiveID"

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

	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