models

package
v0.8.4 Latest Latest
Warning

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

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

Documentation

Overview

Package models defines the different object models used in Project

Package models defines the different object models used in Project

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextKeyParsedToken var
	ContextKeyParsedToken = contextKey("ParsedToken")
)

Functions

This section is empty.

Types

type ParsedToken added in v0.6.0

type ParsedToken struct {
	Email string
}

ParsedToken contains details that are encoded in the received JWT token

type Project

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

Project defines the project object

func (Project) Validate

func (val Project) Validate() error

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

type ProjectWithCursor

type ProjectWithCursor struct {
	ProjectID string
	Project   Project
	Cursor    string
}

ProjectWithCursor implements the pair of the project 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