schema

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ProjectID uuid.UUID `bson:"project_id" json:"project_id"`
	Name      string    `bson:"name,omitempty" json:"name,omitempty"`
	Data      []byte    `bson:"data,omitempty" json:"data,omitempty"`
}

func ProjectFromProto

func ProjectFromProto(p *project.Project) (Project, error)

func (Project) ToProto

func (p Project) ToProto() (*project.Project, error)

type Settings

type Settings struct {
	ProjectID uuid.UUID `bson:"project_id" json:"project_id"`
	Name      string    `bson:"name,omitempty" json:"name,omitempty"`
	Data      []byte    `bson:"data,omitempty" json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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