height

package
v0.0.0-...-69ce26b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ApiBaseUrl = "https://api.height.app"
)

Variables

This section is empty.

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