gateway

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabaseName   = "gotagdatabase"
	CollectionName = "gotagcollection"
	UniqueKey      = "tag"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*mongo.Client
}

type DBFactory

type DBFactory interface {
	Of(uri string) (*DB, error)
}

type GitHub

type GitHub struct {
	*github.Client
}

func NewGitHub

func NewGitHub(
	client *github.Client,
) *GitHub

func (*GitHub) FindAll

func (gh *GitHub) FindAll(ctx context.Context) (model.GotagList, error)

type Gotag

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

func NewGotag

func NewGotag(
	client *DB,
) *Gotag

func (*Gotag) FindAll

func (gt *Gotag) FindAll(ctx context.Context) (model.GotagList, error)

func (*Gotag) SaveAll

func (gt *Gotag) SaveAll(ctx context.Context, list model.GotagList) error

Jump to

Keyboard shortcuts

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