webapi

package
v0.0.0-...-6e85980 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

type FileStorage interface {
	UploadFile(path, filename string, r io.ReadCloser) error
	ReadFile(path, filename string) (store.Stream, error)
}

type WebApi

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

func New

func New(camdev string, store FileStorage, motdFile string, serial func() (io.ReadWriteCloser, error), shutdown func()) *WebApi

func (*WebApi) Run

func (wapi *WebApi) Run(srv *http.Server) error

Jump to

Keyboard shortcuts

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