Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is storagenode console web error type. Error = errs.Class("consoleserver") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `help:"server address of the api gateway and frontend app" default:"127.0.0.1:14002"` StaticDir string `help:"path to static resources" default:""` }
Config contains configuration for storagenode console web server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents storagenode console web server.
architecture: Endpoint
func NewServer ¶
func NewServer(logger *zap.Logger, assets fs.FS, notifications *notifications.Service, service *console.Service, payout *payouts.Service, listener net.Listener) *Server
NewServer creates new instance of storagenode console web server.
Click to show internal directories.
Click to hide internal directories.