models

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package models defines the different object models used in Tenant

Package models defines the different object models used in Tenant

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tenant

type Tenant struct {
	Name string `bson:"name" json:"name"`
}

Tenant defines the tenant object

func (Tenant) Validate

func (val Tenant) Validate() error

Validate validates the Tenant and return error if the validation failes Returns error if validation failes

type TenantWithCursor added in v0.0.13

type TenantWithCursor struct {
	TenantID string
	Tenant   Tenant
	Cursor   string
}

TenantWithCursor implements the pair of the tenant with a cursor that determines the location of the tennat in the repository.

Jump to

Keyboard shortcuts

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