crashcollect

package
v1.97.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: AGPL-3.0 Imports: 11 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 {
	Debug    debug.Config
	Server   server.Config
	Crash    crash.Config
	Identity identity.Config
}

Config is the global configuration for storj crash collect service.

type Peer

type Peer struct {
	Log      *zap.Logger
	Config   Config
	Identity *identity.FullIdentity

	Server *server.Server
	Crash  struct {
		Service  *crash.Service
		Endpoint *crash.Endpoint
	}
}

Peer is the representation of a storj crash collect service.

architecture: Peer

func New

func New(log *zap.Logger, full *identity.FullIdentity, config Config) (peer *Peer, err error)

New is a constructor for storj crash collect Peer.

func (*Peer) Close

func (peer *Peer) Close() error

Close closes all the resources.

func (*Peer) Run

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

Run runs storj crash collect Peer api 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