base

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

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	DB   *db.DB
	User *ent.User
}

func NewBase

func NewBase(db *db.DB) (*Base, error)

Create a Base objects

func (*Base) Login

func (c *Base) Login(ctx context.Context, e echo.Context, u *ent.User) error

func (*Base) Logout

func (c *Base) Logout(e echo.Context)

Logout

func (*Base) Session

func (c *Base) Session(ctx context.Context, e echo.Context) error

Require session

Jump to

Keyboard shortcuts

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