bapi

package
v0.0.0-...-a6fa6aa Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppKey    = "govoyage"
	AppSecret = "go-grpc-voyage"
)

Application Key and Secret

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{ URL string }

API access request invoke

func NewAPI

func NewAPI(url string) *API

NewAPI creates a new API instance

func (*API) GetTags

func (a *API) GetTags(ctx context.Context, name string) ([]byte, error)

GetTags return list of tags

type AccessToken

type AccessToken struct {
	Token string `json:"token"`
}

AccessToken for request authentication

Jump to

Keyboard shortcuts

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