domain

package
v1.0.11-lua Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	gorm.Model `json:"-"`
	Name       string
	Classes    string // comma separated values
}

type File

type File struct {
	gorm.Model   `json:"-"`
	ProjectID    uuid.UUID    `gorm:"type:uuid;primary_key;" json:"projectId"`
	CommitHash   string       `gorm:"primary_key" json:"commit,omitempty"`
	Name         string       `json:"name,omitempty"`
	Language     string       `json:"extension,omitempty"`
	Declarations string       `json:"declarations,omitempty"` // comma separated values
	Dependencies []Dependency `gorm:"many2many:file_dependencies;"`
}

func NewFile

func NewFile(projectID uuid.UUID, commitHash, name, extension, declarations string, dependencies []Dependency) *File

NewFile creates a File

Jump to

Keyboard shortcuts

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