object

package
v0.0.0-...-b985c77 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateObjectOptions

type CreateObjectOptions struct {
	Name       string
	IsTemplate bool
	TemplateID *uuid.UUID
}

type CreatePropertyOptions

type CreatePropertyOptions struct {
	ObjectID      uuid.UUID
	Name          string
	PropertyType  dbx.PropertyType
	StringValue   *string
	IntegerValue  *int64
	FloatValue    *float64
	BooleanValue  *bool
	DateValue     *time.Time
	ObjectValueID *uuid.UUID
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(db *pgxpool.Pool, dbx *dbx.Queries) *Service

func (*Service) CreateObject

func (s *Service) CreateObject(ctx context.Context, options CreateObjectOptions) (dbx.Object, []dbx.Property, error)

func (*Service) CreateProperty

func (s *Service) CreateProperty(ctx context.Context, options CreatePropertyOptions) (dbx.Property, *dbx.Object, error)

func (*Service) FetchObject

func (s *Service) FetchObject(ctx context.Context, id uuid.UUID) (dbx.Object, []dbx.Property, map[uuid.UUID]dbx.Object, error)

Jump to

Keyboard shortcuts

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