babel

package
v0.0.264 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(config *config.Config, db *gorm.DB) string

func GenerateAndSave

func GenerateAndSave(config *config.Config, db *gorm.DB) error

Types

type Client added in v0.0.252

type Client struct {
}

func NewClient added in v0.0.252

func NewClient() (*Client, error)

NewSocketClient creates a new SocketClient

func (*Client) Close added in v0.0.252

func (c *Client) Close() error

Close closes the connection to the UNIX socket

func (*Client) GetInterfaces added in v0.0.252

func (c *Client) GetInterfaces() ([]Interface, error)

type Interface added in v0.0.252

type Interface struct {
	Name string
	IPv4 net.IP
	IPv6 net.IP
}

type Service

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

func NewService

func NewService(config *config.Config) *Service

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

func (*Service) IsRunning

func (s *Service) IsRunning() bool

func (*Service) Reload

func (s *Service) Reload() error

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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