client

package
v0.0.0-...-40f0d12 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 7 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 {
	Cache        persist.Cacher
	GitHubClient *github.Client
}

Client is a client for interacting with GitHub and a cache.

func New

func New(ctx context.Context, c Config) (*Client, error)

New creates a new github Client.

type Config

type Config struct {
	GitHubTokenPath string
	GitHubToken     string
	PersistBackend  string // Backend to persist data.
	PersistPath     string // Path to persist data.
}

Config is the configuration for a Client.

Jump to

Keyboard shortcuts

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