activity

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AraddonParse added in v0.8.5

func AraddonParse(pattern string) (time.Time, error)

func DateRange

func DateRange(c *cli.Context, parsers ...DateParserFunc) (time.Time, time.Time, error)

DateRange returns the date range specified in the command line flags

func DateRangeFlags

func DateRangeFlags() []cli.Flag

DateRangeFlags support specifying a date range for a query

func NaturalParse added in v0.8.5

func NaturalParse(pattern string) (time.Time, error)

func OAuthCommand

func OAuthCommand(cfg *OAuthConfig) *cli.Command

func RateLimitFlags

func RateLimitFlags() []cli.Flag

RateLimitFlags support specifying a rate limit for a query

Types

type DateParserFunc added in v0.8.5

type DateParserFunc func(string) (time.Time, error)

type OAuthConfig

type OAuthConfig struct {
	// Port on which to listen
	Port int
	// Provider at which to authenticate
	Provider string
	// Scopes to request with the credentials
	Scopes []string
	// RedirectURL on successful authentication
	RedirectURL string
	// Started is the channel on which the server url is communicated
	Started chan<- *url.URL
}

OAuthConfig provides configuration options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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