server

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERR_CODE_INVALID_ARGUMENT        = "INVALID_ARGUMENT"
	ERR_CODE_INTERNAL                = "INTERNAL"
	ERR_CODE_NOT_FOUND               = "NOT_FOUND"
	ERR_CODE_INSUFFICIENT_DISK_QUOTA = "INSUFFICIENT_DISK_QUOTA"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type HttpHandler

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

func (*HttpHandler) CreateVolume

func (h *HttpHandler) CreateVolume(c echo.Context) error

func (*HttpHandler) DeleteVolume

func (h *HttpHandler) DeleteVolume(c echo.Context) error

func (*HttpHandler) GetVolume

func (h *HttpHandler) GetVolume(c echo.Context) error

func (*HttpHandler) ListVolumes

func (h *HttpHandler) ListVolumes(c echo.Context) error

type HttpServer

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

func NewHTTPServer

func NewHTTPServer(cfg *config.Config, svc *service.Service) (*HttpServer, error)

func (*HttpServer) Serve

func (s *HttpServer) Serve() error

type Server

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

func NewServer

func NewServer(cfg *config.Config) (*Server, error)

func (*Server) Run

func (server *Server) Run(ctx context.Context) error

func (*Server) Service

func (server *Server) Service() *service.Service

Jump to

Keyboard shortcuts

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