query

package
v0.0.0-...-ed46072 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 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 {
	*github.Client
}

Client ...

func Login

func Login(ctx context.Context, info Info) *Client

Login to github using the given credentials

func NewClient

func NewClient() *Client

NewClient returns a new Client without credential

func NewClientWithAccessToken

func NewClientWithAccessToken(ctx context.Context, token string) *Client

NewClientWithAccessToken ...

func NewClientWithUserInfo

func NewClientWithUserInfo(info UserInfo) *Client

NewClientWithUserInfo ...

type Info

type Info struct {
	UserInfo UserInfo
	Token    string
}

Info represents the login info

type UserInfo

type UserInfo struct {
	Username string
	Password string
	Otp      string
}

UserInfo ...

func (UserInfo) IsValid

func (u UserInfo) IsValid() bool

Jump to

Keyboard shortcuts

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