manager

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedContent

type FeedContent struct {
	Message string `json:"message"`
	URL     string `json:"url"`
}

type FeedObject

type FeedObject struct {
	Address   string `json:"address"`
	TxID      ids.ID `json:"txID"`
	Timestamp int64  `json:"timestamp"`
	Fee       uint64 `json:"fee"`

	Content *FeedContent `json:"content"`
}

type Manager

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

func New

func New(logger logging.Logger, config *config.Config) (*Manager, error)

func (*Manager) GetFeed

func (m *Manager) GetFeed(context.Context) ([]*FeedObject, error)

TODO: allow for multiple feeds

func (*Manager) GetFeedInfo

func (m *Manager) GetFeedInfo(_ context.Context) (ed25519.PublicKey, uint64, error)

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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