db

package module
v0.0.0-...-0c8abf8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func Connect

func Connect(url string) (*Database, error)

func (*Database) CreateUser

func (d *Database) CreateUser(ctx context.Context) (*ent.User, error)

type User

type User struct {
	Username string
	Email    string
}

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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