serviceprogram

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetService added in v0.1.2

func GetService() (service.Service, error)

GetService creates a service instance with default configuration.

func GetServiceWithAddress added in v0.1.2

func GetServiceWithAddress(apiAddr string) (service.Service, error)

GetServiceWithAddress creates a service instance with a custom API listen address.

Types

type Program

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

func New

func New(apiListenAddr string) *Program

func (*Program) Start

func (p *Program) Start(s service.Service) error

func (*Program) Stop

func (p *Program) Stop(s service.Service) error

Jump to

Keyboard shortcuts

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