gitlab

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr added in v0.8.0

func Ptr[T any](v T) *T

Types

type Client

type Client struct {
	Rest    *rest.Client
	GraphQL *graphql.Client
	// contains filtered or unexported fields
}

func NewGitLabClient

func NewGitLabClient(cfg ClientConfig) (*Client, error)

func (*Client) Acquire added in v0.10.0

func (c *Client) Acquire(ctx context.Context, n int64) error

func (*Client) CheckReadiness

func (c *Client) CheckReadiness(ctx context.Context) error

func (*Client) Release added in v0.10.0

func (c *Client) Release(n int64)

type ClientConfig

type ClientConfig struct {
	URL   string
	Token string

	RateLimit float64

	MaxWorkers int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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