model

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSchema

func InitSchema(ctx context.Context, db *gorm.DB) error

Types

type Event

type Event struct {
	Id             string `json:"id" gorm:"column:id"`
	CreatedAt      string `json:"createdAt" gorm:"column:createdAt"`
	Type           string `json:"type" gorm:"column:type"`
	Project        string `json:"project,omitempty" gorm:"column:project"`
	ProjectBaseDir string `json:"projectBaseDir,omitempty" gorm:"column:projectBaseDir"`
	Language       string `json:"language,omitempty" gorm:"column:language"`
	Target         string `json:"target,omitempty" gorm:"column:target"`
	Branch         string `json:"branch,omitempty" gorm:"column:branch"`
	Timezone       string `json:"timezone,omitempty" gorm:"column:timeZone"`
	Params         Params `json:"params,omitempty" gorm:"column:params"`
	AuthKey        string `json:"authKey" gorm:"column:authKey"`
	Send           bool   `json:"send" gorm:"column:send"`
}

type Events

type Events struct {
	Events []Event `json:"events" gorm:"-"`
}

type EventsByAuthKey

type EventsByAuthKey struct {
	Events []Events `json:"events"`
}

type Params

type Params map[string]interface{}

func (Params) GormDBDataType

func (Params) GormDBDataType(db *gorm.DB, field *schema.Field) string

func (Params) GormDataType

func (m Params) GormDataType() string

func (Params) MarshalJSON

func (m Params) MarshalJSON() ([]byte, error)

func (*Params) Scan

func (m *Params) Scan(val interface{}) error

func (*Params) UnmarshalJSON

func (m *Params) UnmarshalJSON(b []byte) error

func (Params) Value

func (m Params) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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