Documentation
¶
Index ¶
Constants ¶
View Source
const (
// UploadBufferSize is the buffer size for upload.
UploadBufferSize = 1024 * 1024
)
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.
type Option ¶
type Option func(s *announcer)
Option is a functional option for configuring the announcer.
func WithTrainerClient ¶ added in v2.0.30
func WithTrainerClient(client trainerclient.V1) Option
WithTrainerClient sets the grpc client of trainer.
Click to show internal directories.
Click to hide internal directories.