user

package
v0.0.0-...-3a9407f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Msg = msg{
	Failed:   "user_failed",
	NotFound: "user_not_found",
}

Functions

This section is empty.

Types

type Entity

type Entity struct {
	entity.Base
	Username  string `json:"username"`
	GithubID  string `json:"github_id"`
	AvatarURL string `json:"avatar_url"`
	Email     string `json:"email"`
}

type Repository

type Repository interface {
	Login(ctx context.Context, user *github.User) (*Entity, *i18np.Error)
	Get(ctx context.Context, username string) (*Entity, *i18np.Error)
}

func NewRepo

func NewRepo(db *gorm.DB) Repository

Jump to

Keyboard shortcuts

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