tns

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSlug = 20

Variables

View Source
var (
	ErrLongSlug        = errors.New("longer slug length than allowed")
	ErrNotAllowedChars = errors.New("slug has not allowed slug")
)

Functions

func DataGroup

func DataGroup(tenent_id, gslug string) string

func DataTable

func DataTable(tenent_id, gslug, tslug string) string

Types

type TNS

type TNS interface {
	Table(tenantId, groupId, tableId string) string
	ActivityTable(tenantId, groupId, tableId string) string
	CheckGroupSlug(string) error
	CheckTableSlug(string) error
	CheckColumnSlug(string) error
	MetaTableGroup(tenantId string) string
	MetaTable(tenantId string) string
	MetaColumn(tenantId string) string
}

func New

func New(mode string) TNS

Jump to

Keyboard shortcuts

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