announcer

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.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 Announcer

type Announcer interface {
	// Started announcer server.
	Serve()

	// Stop announcer server.
	Stop()
}

Announcer is the interface used for announce service.

func New

func New(cfg *config.Config, managerClient managerclient.V2, storage storage.Storage, options ...Option) (Announcer, error)

New returns a new Announcer interface.

type Option

type Option func(s *announcer)

Option is a functional option for configuring the announcer.

func WithTrainerClient

func WithTrainerClient(client trainerclient.V1) Option

WithTrainerClient sets the grpc client of trainer.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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