app

package
v0.0.0-...-0b70294 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PROCESS     = "maple-file"
	VERSION     = "dev"
	DESCRIPTION = "Multi-protocol cloud file upload and management with serverless."
)

Functions

func Listen

func Listen(addr string) (net.Listener, error)

func Register

func Register(name string, creator Creator)

Types

type App

type App struct {
	DB     *config.DB
	Logger *config.Logger
	Config *config.Config
	Runner runner.Runner
	// contains filtered or unexported fields
}

func New

func New() *App

func (*App) Init

func (app *App) Init() error

func (*App) NewServer

func (app *App) NewServer(listener net.Listener) (*Server, error)

func (*App) NewWebServer

func (app *App) NewWebServer(listener net.Listener, webFS fs.FS) (*Server, error)

type Creator

type Creator func(*App) (Service, error)

type Server

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

func NewServer

func NewServer(cfg string) (*Server, error)

func (*Server) Addr

func (srv *Server) Addr() string

func (*Server) Shutdown

func (srv *Server) Shutdown() error

func (*Server) Start

func (srv *Server) Start() error

type Service

type Service interface {
	Register(*grpc.Server)
	RegisterGateway(context.Context, *runtime.ServeMux, *echo.Echo)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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