service

package
v0.0.0-...-b708652 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	State string
	// contains filtered or unexported fields
}

func NewAuthService

func NewAuthService(db *ent.Client, discordClient *auth.Client, state string) *AuthService

func (*AuthService) Callback

func (*AuthService) Login

func (s *AuthService) Login(userId string, tokenString string) (*ent.Users, error)

func (*AuthService) Redirect

func (s *AuthService) Redirect(w http.ResponseWriter, r *http.Request)

type LinkService

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

func NewLinkService

func NewLinkService(db *ent.Client) *LinkService
func (b *LinkService) AddLink(ctx context.Context, externalId string, title string, url string) (*ent.Links, error)
func (b *LinkService) GetLinks(ctx context.Context) ([]model.NewLinkInput, error)

func (*LinkService) GetUser

func (b *LinkService) GetUser(ctx context.Context) (*ent.Users, error)

type UserService

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

func NewUserService

func NewUserService(client *ent.Client) *UserService

func (UserService) CreateUser

func (s UserService) CreateUser(payload *model.LoginUserInput, tokenPayload *model.TokenInput, tokenString string) (*ent.Users, *ent.Session, error)

Jump to

Keyboard shortcuts

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