service

package
v0.0.0-...-9a1563a Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

type Service

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

func New

func New(cfg *Config, logger *zap.SugaredLogger, db *common.Database) (*Service, error)

func (*Service) AllocDiskLabel

func (s *Service) AllocDiskLabel(w http.ResponseWriter, r *http.Request)

func (*Service) AllocStripes

func (s *Service) AllocStripes(w http.ResponseWriter, r *http.Request)

func (*Service) GetDisk

func (s *Service) GetDisk(w http.ResponseWriter, r *http.Request)

func (*Service) ListDisks

func (s *Service) ListDisks(w http.ResponseWriter, r *http.Request)

func (*Service) RegisterDisks

func (s *Service) RegisterDisks(w http.ResponseWriter, r *http.Request)

func (*Service) RegisterRouter

func (s *Service) RegisterRouter(r *chi.Mux)

Jump to

Keyboard shortcuts

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