broadcaster

package
v0.5.33 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

type Broadcaster struct {
	// contains filtered or unexported fields
}

func NewBroadcaster

func NewBroadcaster(_ context.Context, config *config.File) (*Broadcaster, error)

func (*Broadcaster) Heartbeat

func (b *Broadcaster) Heartbeat(ctx context.Context) error

func (*Broadcaster) Register

func (b *Broadcaster) Register(ctx context.Context) error

func (*Broadcaster) Run

func (b *Broadcaster) Run(ctx context.Context) error

type NodeHeartbeatRequest

type NodeHeartbeatRequest struct {
	Address   common.Address `json:"address" validate:"required"`
	Signature string         `json:"signature" validate:"required"`
	Endpoint  string         `json:"endpoint" validate:"required"`
	Timestamp int64          `json:"timestamp" validate:"required"`
}

type RegisterNodeRequest

type RegisterNodeRequest struct {
	Address     common.Address    `json:"address" validate:"required"`
	Signature   string            `json:"signature" validate:"required"`
	Endpoint    string            `json:"endpoint" validate:"required"`
	AccessToken string            `json:"access_token,omitempty"`
	Stream      *config.Stream    `json:"stream,omitempty"`
	Config      *config.Component `json:"config,omitempty"`
	Type        string            `json:"type" validate:"required"`
}

Jump to

Keyboard shortcuts

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