capwatch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(orgID, capwatchUsername string, refresh int, logger logging.Logger) (c *Client)

func (*Client) Fetch

func (c *Client) Fetch(filename string, refresh bool) (dump *Dump, err error)

func (*Client) SetCapwatchPassword added in v1.0.0

func (c *Client) SetCapwatchPassword(password []byte)

func (*Client) WillRefreshCache

func (c *Client) WillRefreshCache(filename string) bool

type Dump

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

func NewDump

func NewDump(dump []byte, lastSync time.Time) (d *Dump)

func (*Dump) FetchMembers

func (d *Dump) FetchMembers() (members map[uint]pkg.Member, err error)

func (*Dump) LastSync

func (d *Dump) LastSync() time.Time

Jump to

Keyboard shortcuts

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