project

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectSliceToJSON

func ProjectSliceToJSON(e []Project) json.RawMessage

func ProjectToJSON

func ProjectToJSON(e Project) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

Types

type Project

type Project struct {
	UUID              uuid.UUID                            `json:"uuid"`
	Version           int64                                `json:"version"`
	Name              string                               `json:"name"`
	Description       string                               `json:"description"`
	Tags              []string                             `json:"tags"`
	URL               string                               `json:"url"`
	OwnerUUID         uuid.UUID                            `json:"owner_uuid"`
	TeamUUID          uuid.UUID                            `json:"team_uuid"`
	ProjectExtensions []project_extension.ProjectExtension `json:"project_extensions"`
	Status            Status                               `json:"status"`
	CreatedAt         time.Time                            `json:"created_at"`
	UpdatedAt         time.Time                            `json:"updated_at"`
	CreatedByUUID     uuid.UUID                            `json:"created_by_uuid"`
	UpdatedByUUID     uuid.UUID                            `json:"updated_by_uuid"`
}

func NewProjectSliceWithRandomValues

func NewProjectSliceWithRandomValues(n int) []Project

func NewProjectWithRandomValues

func NewProjectWithRandomValues() Project

func ProjectFromJSON

func ProjectFromJSON(data json.RawMessage) Project

func ProjectSliceFromJSON

func ProjectSliceFromJSON(data json.RawMessage) []Project

func (Project) ArrayFieldIdentifierToType

func (e Project) ArrayFieldIdentifierToType() map[string]types.FieldType

func (Project) DependantFieldIdentifierToTypeMap

func (e Project) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType

func (Project) EntityIdentifier

func (e Project) EntityIdentifier() string

func (Project) FieldIdentfierToTypeMap

func (e Project) FieldIdentfierToTypeMap() map[string]types.FieldType

func (Project) IsDependant

func (e Project) IsDependant() bool

func (Project) PrimaryKeyIdentifier

func (e Project) PrimaryKeyIdentifier() string

func (Project) PrimaryKeyValue

func (e Project) PrimaryKeyValue() string

func (Project) String

func (e Project) String() string

func (Project) ToJSON

func (e Project) ToJSON() json.RawMessage

type Status

type Status int64
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

Jump to

Keyboard shortcuts

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