client

package
v0.0.0-...-bc1001e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 13 Imported by: 0

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

Check send check requests to doghouse.

type DogHouseClientInterface

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

DogHouseClientInterface is interface for doghouse client.

type GitHubClient

type GitHubClient struct {
	Client *github.Client
}

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

func (*GitHubClient) Check

Jump to

Keyboard shortcuts

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