cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Root = &cobra.Command{
	RunE: func(cmd *cobra.Command, args []string) error {
		srv := NewWebSrv(cfg)

		s, _ := server.WithContext(cmd.Context())
		s.Listen(srv, false)

		return s.Wait()
	},
}

Functions

This section is empty.

Types

type Host

type Host struct {
	Fiber *fiber.App
}

Host holds a Fiber app instance.

type WebSrv

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

WebSrv is the server that implements the Noop interface.

func NewWebSrv

func NewWebSrv(cfg *configs.Config) *WebSrv

NewWebSrv returns a new instance of NoopSrv.

func (*WebSrv) Start

func (s *WebSrv) Start(ctx context.Context, ready server.ReadyFunc, run server.RunFunc) func() error

Start starts the server.

Jump to

Keyboard shortcuts

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