linksharing

package
v1.14.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server  httpserver.Config
	Handler sharing.Config

	// Maxmind geolocation database path.
	GeoLocationDB string
}

Config contains configurable values for sno registration Peer.

type Peer

type Peer struct {
	Log    *zap.Logger
	Mapper *objectmap.IPDB
	Server *httpserver.Server
}

Peer is the representation of a Linksharing service itself.

architecture: Peer

func New

func New(log *zap.Logger, config Config) (_ *Peer, err error)

New is a constructor for Linksharing Peer.

func (*Peer) Close

func (peer *Peer) Close() error

Close closes all underlying resources.

func (*Peer) Run

func (peer *Peer) Run(ctx context.Context) error

Run runs SNO registration service until it's either closed or it errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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