utils

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageCurrent = "page"
	PageSize    = "pageSize"
)
View Source
const (
	DatabaseCommon = sdkconst.SiyouFSMysqlDBPrefix + "_" + sdkconst.CommonNamespace
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination

type Pagination struct {
	Page     int `json:"page"`
	PageSize int `json:"pageSize"`
}

func NewPaginationFromIris

func NewPaginationFromIris(ctx iris.Context) *Pagination

type UserNamespace

type UserNamespace struct {
	Username  string `json:"username"`
	Namespace string `json:"namespace"`
}

func NewUserNamespace

func NewUserNamespace(username, namespace string) *UserNamespace

func NewUserNamespaceFromIris

func NewUserNamespaceFromIris(ctx iris.Context) *UserNamespace

func (*UserNamespace) DatabaseName

func (un *UserNamespace) DatabaseName() string

Jump to

Keyboard shortcuts

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