query

package
v0.0.0-...-27afdb5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 4 Imported by: 4

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