users

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBUsersService

func NewDBUsersService(db *database.DB) *dbUsersService

Types

type Provider

type Provider string
const (
	ProviderGithub Provider = "github"
)

type Service

type Service interface {
	Save(ctx context.Context, user User) error
}

type User

type User struct {
	Email    string   `json:"email"`
	Username string   `json:"login"`
	Name     string   `json:"name"`
	Provider Provider `json:"provider"`
}

Jump to

Keyboard shortcuts

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