client

package
v0.0.0-...-333c0cd Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: AGPL-3.0 Imports: 6 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 {
	Config       *conf.Options
	Cron         *cron.Cron
	GitlabClient *gitlab.Client
	Services     []Services.PollerService
	CronEntryID  cron.EntryID
}

The Client polls the Gitlab API periodically

func NewClient

func NewClient(config *conf.Options) (*Client, error)

NewClient creates a new Client and adds a cron for polling as often as config.PollerCron says

func (*Client) Close

func (c *Client) Close()

Close stops the client from running any more poll jobs

func (*Client) Poll

func (c *Client) Poll()

Poll polls the Gitlab API for new events

Jump to

Keyboard shortcuts

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