height

package
v0.0.0-...-53546a6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HeightClientId     = os.Getenv("HEIGHT_CLIENT_ID")
	HeightClientSecret = os.Getenv("HEIGHT_CLIENT_SECRET")
	HeightApiBaseUrl   = "https://api.height.app"
)

Functions

func GetOAuthConfig

func GetOAuthConfig() (*oauth2.Config, []oauth2.AuthCodeOption, error)

func GetRefreshToken

func GetRefreshToken(ctx context.Context, oldToken *oauth2.Token) (*oauth2.Token, error)

func SearchTask

func SearchTask(accessToken string, query string) ([]*model.IssuesSearchResult, error)

Types

type HeightClient

type HeightClient struct {
}

func NewHeightClient

func NewHeightClient() *HeightClient

type HeightTokenResponse

type HeightTokenResponse struct {
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
	ExpiresAt    time.Time `json:"expires_at"`
}

Jump to

Keyboard shortcuts

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