poller

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: BSD-2-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextToken added in v1.0.27

func NextToken[T any](paginationKey *T) (*string, error)

func ParsePagination added in v1.0.27

func ParsePagination[T any](maxResults *int, token *string, key *T) (int, error)

ParsePagination parses MaxResults and Token into a key structure. key should be a pointer to the pagination key struct.

Types

type InvokePlatformFields added in v1.0.10

type InvokePlatformFields struct {
}

type ListOrgsPaginationKey added in v1.0.27

type ListOrgsPaginationKey struct {
	Page *int `json:"Page,omitempty"`
}

type ListRepoBranchesPaginationKey added in v1.0.29

type ListRepoBranchesPaginationKey struct {
	Page int
}

type Option added in v1.0.10

type Option func(p *Poller)

func WithConnectionIdx added in v1.0.20

func WithConnectionIdx(idx map[string]*config.GithubInfo) Option

type PlatformFields added in v1.0.10

type PlatformFields struct {
}

type Poller

type Poller struct {
	PlatformFields
	// contains filtered or unexported fields
}

func New

func New(client *p42.Client, tenantID string, runnerID string, options ...Option) *Poller

func (*Poller) Close

func (p *Poller) Close() error

func (*Poller) GetClientForConnectionID added in v1.0.21

func (p *Poller) GetClientForConnectionID(connectionID string) (*github.Client, error)

func (*Poller) ShutdownContext

func (p *Poller) ShutdownContext(ctx context.Context) error

func (*Poller) ShutdownTimeout

func (p *Poller) ShutdownTimeout(timeout time.Duration) error

type SearchRepoPaginationKey added in v1.0.27

type SearchRepoPaginationKey struct {
	Page int
}

Jump to

Keyboard shortcuts

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