announcer

package
v2.1.20 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 17 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() error

	// Stop announcer server.
	Stop() error
}

Announcer is the interface used for announce service.

func New

func New(cfg *config.DaemonOption, dynconfig config.Dynconfig, hostID string, daemonPort int32, daemonDownloadPort int32, schedulerClient schedulerclient.V1, options ...Option) Announcer

New returns a new Announcer interface.

type Option

type Option func(s *announcer)

Option is a functional option for configuring the announcer.

func WithManagerClient

func WithManagerClient(client managerclient.V1) Option

WithManagerClient sets the grpc client of manager.

func WithObjectStoragePort added in v2.0.30

func WithObjectStoragePort(port int32) Option

WithObjectStoragePort sets the daemonObjectStoragePort.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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