frontend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package frontend provides a frontend service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// ID is a unique identifier for the node.
	ID string

	// WSAddr is the address to listen for WebSocket connections.
	WSAddr string

	// FuddleAddrs contains fuddle registry seed nodes.
	FuddleAddrs []string

	// Locality is the location of the node in the cluster.
	Locality string

	// Revision is the build commit.
	Revision string
}

Config contains the node configuration.

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithWSListener

func WithWSListener(ln net.Listener) Option

type Service

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

func NewService

func NewService(conf *Config, opts ...Option) *Service

func (*Service) GracefulStop

func (s *Service) GracefulStop()

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop()

Jump to

Keyboard shortcuts

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