instance

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CorpName string `json:"corpName"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Token    string `json:"token"`
}

Config is the structure of the configuration for a single GitHub instance.

type Instance

type Instance interface {
	GetName() string
	GetOverview(query url.Values) ([]sigsci.OverviewSite, error)
	GetSites() ([]sigsci.Site, error)
	GetAgents(siteName string) ([]sigsci.Agent, error)
	GetRequests(siteName string, query url.Values) (next string, requests []sigsci.Request, err error)
}

func New

func New(name string, options map[string]any) (Instance, error)

New returns a new Signal Sciences instance for the given configuration.

Jump to

Keyboard shortcuts

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