example

package
v0.0.0-...-00594a0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Org

type Org struct {
	ID      int64 `bun:",autoincrement"`
	Name    string
	OwnerID int64
	Owner   *User `bun:"rel:has-one"`
}

type OrgHandler

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

func NewOrgHandler

func NewOrgHandler(app *bunapp.App) *OrgHandler

func (*OrgHandler) List

type User

type User struct {
	ID   int64 `bun:",autoincrement"`
	Name string
}

type UserHandler

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

func NewUserHandler

func NewUserHandler(app *bunapp.App) *UserHandler

func (*UserHandler) List

type WelcomeHandler

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

func NewWelcomeHandler

func NewWelcomeHandler(app *bunapp.App) *WelcomeHandler

func (*WelcomeHandler) Hello

func (*WelcomeHandler) Welcome

Jump to

Keyboard shortcuts

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