projects

package
v0.0.0-...-29ef0fc Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id string) error

Types

type Project

type Project struct {
	ID      primitive.ObjectID `bson:"_id"`
	Name    string             `bson:"name" validate:"required,min=1,max=20"`
	Created time.Time          `bson:"created"`
	Enabled bool               `bson:"enabled"`
}

func Create

func Create(name string) (*Project, error)

Create crea un nuevo token y lo almacena en la db

func Find

func Find(id string) (*Project, error)

Find busca un token en la db

func (*Project) ValidateSchema

func (e *Project) ValidateSchema() error

Jump to

Keyboard shortcuts

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