client

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DogHouseClient

type DogHouseClient struct {
	Client *http.Client
	// Base URL for API requests. Defaults is https://reviewdog.app
	BaseURL *url.URL
}

DogHouseClient is client for doghouse server.

func New

func New(client *http.Client) *DogHouseClient

New returns new DogHouseClient.

func (*DogHouseClient) Check

func (c *DogHouseClient) Check(ctx context.Context, req *doghouse.CheckRequest, sendRequest bool) (*doghouse.CheckResponse, error)

Check send check requests to doghouse.

type DogHouseClientInterface

type DogHouseClientInterface interface {
	Check(ctx context.Context, req *doghouse.CheckRequest, sendRequest bool) (*doghouse.CheckResponse, error)
}

DogHouseClientInterface is interface for doghouse client.

type GitHubClient added in v0.9.13

type GitHubClient struct {
	Client *github.Client
}

GitHubClient is client which talks to GitHub directly instead of talking to doghouse server.

func (*GitHubClient) Check added in v0.9.13

func (c *GitHubClient) Check(ctx context.Context, req *doghouse.CheckRequest, makeRequest bool) (*doghouse.CheckResponse, error)

Jump to

Keyboard shortcuts

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