turris

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Url     = "sentinel.turris.cz"
	Port    = 7087
	CertUrl = "https://repo.turris.cz/sentinel/dynfw.pub"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ListChan  chan List
	DeltaChan chan Delta
	// contains filtered or unexported fields
}

func NewClient

func NewClient(zmqServerUrl string, zmqServerPort int) (*Client, error)

func (*Client) Close

func (c *Client) Close()

Close is called automatically when you cancel the context passed in to RequestMessages Manual invocation of Close should be done only If you passed in context.Background()

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) RequestMessages

func (c *Client) RequestMessages(ctx context.Context)

type Delta

type Delta struct {
	Operation string
	IP        net.IP
	Serial    uint32
	Timestamp time.Time
}

type List

type List struct {
	Version   time.Time
	Serial    uint32
	Blacklist []net.IP
	Timestamp time.Time
}

Jump to

Keyboard shortcuts

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