api

package
v0.0.0-...-007df55 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResponse

type AuthResponse struct {
	AccessToken string `json:"accessToken"`
}

AuthResponse -

type AuthStruct

type AuthStruct struct {
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	Code         string `json:"code"`
	GrantType    string `json:"grantType"`
}

AuthStruct -

type Client

type Client interface {
	GenerateAccessToken() (*string, error)
	Get(ctx context.Context, endpoint string) ([]byte, error)
	Post(ctx context.Context, endpoint string, body io.Reader) ([]byte, error)
	Put(ctx context.Context, endpoint string, body io.Reader) ([]byte, error)
	Delete(ctx context.Context, endpoint string) ([]byte, error)
}

func NewClient

func NewClient(conf config.Config) Client

NewClient -

Directories

Path Synopsis
Package mock_api is a generated GoMock package.
Package mock_api is a generated GoMock package.

Jump to

Keyboard shortcuts

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