api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

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

func NewAPIServer

func NewAPIServer(ctx context.Context, core adapter.Core, logger log.Logger, options Options) (*APIServer, error)

func (*APIServer) Close

func (s *APIServer) Close() error

func (*APIServer) SetBroadcastLogger

func (s *APIServer) SetBroadcastLogger(logger *log.BroadcastLogger)

func (*APIServer) Start

func (s *APIServer) Start() error

type Options

type Options struct {
	Listen string `yaml:"listen"`
	Secret string `yaml:"secret"`
	Debug  bool   `yaml:"debug"`
}

Jump to

Keyboard shortcuts

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