usercontroller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	JSON(code int, obj interface{})
	ShouldBindJSON(obj interface{}) error
	GetHeader(key string) string
	Param(key string) string
	Query(key string) string
	Value(key any) any
	Err() error
	Done() <-chan struct{}
	Deadline() (deadline time.Time, ok bool)
}

type Controller

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

func (*Controller) CreateUser

func (uc *Controller) CreateUser(c Context)

func (*Controller) DeleteUser

func (uc *Controller) DeleteUser(c Context)

func (*Controller) FindAllUsers

func (uc *Controller) FindAllUsers(c Context)

func (*Controller) FindUser

func (uc *Controller) FindUser(c Context)

func (*Controller) UpdateUser

func (uc *Controller) UpdateUser(c Context)

type IController

type IController interface {
	FindUser(c Context)
	FindAllUsers(c Context)
	CreateUser(c Context)
	UpdateUser(c Context)
	DeleteUser(c Context)
}

Jump to

Keyboard shortcuts

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