schema

package
v0.1.3 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGroupIDFilter

func GetGroupIDFilter(projectID uuid.UUID, groupID string) bson.M

Types

type Group

type Group struct {
	ProjectID uuid.UUID `bson:"project_id" json:"project_id"`
	GroupID   uuid.UUID `bson:"group_id" json:"group_id"`
	Name      string    `bson:"name" json:"name"`
	Search    []string  `bson:"search" json:"search"`
	Data      []byte    `bson:"data" json:"data"`
}

func GroupFromProto

func GroupFromProto(projectID uuid.UUID, g *group.Group) (Group, error)

func (Group) ToProto

func (g Group) ToProto() (*group.Group, error)

type GroupMember

type GroupMember struct {
	ProjectID uuid.UUID `bson:"project_id" json:"project_id"`
	GroupID   uuid.UUID `bson:"group_id" json:"group_id"`
	UserID    uuid.UUID `bson:"user_id" json:"user_id"`
	CreatedAt time.Time `bson:"created_at" json:"created_at"`
}

Jump to

Keyboard shortcuts

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