_2_after

package
v0.0.0-...-24b7180 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserEndpoint

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

func (*CreateUserEndpoint) ServeHTTP

func (s *CreateUserEndpoint) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type User

type User struct {
	Name string
}

type UserDAO

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

func (*UserDAO) Save

func (u *UserDAO) Save(user *User) (int, error)

save the supplied user to the database

type UserModel

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

func (*UserModel) Create

func (u *UserModel) Create(user *User) (int, error)

Attempts to create the supplied user

Jump to

Keyboard shortcuts

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