clients

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Exec(query string, args ...any) error
	QueryRow(destination interface{}, query string, args ...any) error
	IsEmptyResult(err error) bool
}

func NewSQLiteClient

func NewSQLiteClient() (Database, error)

type GithubClient

type GithubClient struct {
	// contains filtered or unexported fields
}

func NewGithubClient

func NewGithubClient(token string) *GithubClient

func (GithubClient) Get

func (c GithubClient) Get(url string) ([]byte, error)

type GithubHttpClient

type GithubHttpClient interface {
	Get(url string) ([]byte, error)
}

type SlackClient

type SlackClient struct {
	// contains filtered or unexported fields
}

func NewSlackClient

func NewSlackClient(webhookUrl string) *SlackClient

func (*SlackClient) Send

func (c *SlackClient) Send(text string) error

type SlackHttpClient

type SlackHttpClient interface {
	Send(text string) error
}

Jump to

Keyboard shortcuts

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