objects

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TypesImport = "agola.io/agola/services/notification/types"
View Source
const (
	Version = uint(4)
)

Variables

View Source
var AdditionalImports = []string{"time"}
View Source
var ObjectsInfo = []sqlg.ObjectInfo{
	{
		Name: "RunWebhook", Table: "runwebhook",
		Fields: []sqlg.ObjectField{
			{Name: "Payload", Type: "[]byte"},
			{Name: "ProjectID", Type: "string"},
		},
	},
	{
		Name: "RunWebhookDelivery", Table: "runwebhookdelivery",
		Fields: []sqlg.ObjectField{
			{Name: "Sequence", Type: "uint64", Sequence: true},
			{Name: "RunWebhookID", Type: "string"},
			{Name: "DeliveryStatus", Type: "types.DeliveryStatus", BaseType: "string"},
			{Name: "DeliveredAt", Type: "time.Time", Nullable: true},
			{Name: "StatusCode", Type: "int"},
		},
		Constraints: []string{
			"foreign key (run_webhook_id) references runwebhook(id)",
		},
		Indexes: []string{
			"create index if not exists runwebhookdelivery_sequence_idx on runwebhookdelivery(sequence)",
		},
	},
	{

		Name: "LastRunEventSequence", Table: "lastruneventsequence",
		Fields: []sqlg.ObjectField{
			{Name: "Value", Type: "uint64"},
		},
	},
	{
		Name: "CommitStatus", Table: "commitstatus",
		Fields: []sqlg.ObjectField{
			{Name: "ProjectID", Type: "string"},
			{Name: "State", Type: "types.CommitState", BaseType: "string"},
			{Name: "CommitSHA", Type: "string"},
			{Name: "RunCounter", Type: "uint64"},
			{Name: "Description", Type: "string"},
			{Name: "Context", Type: "string"},
		},
	},
	{
		Name: "CommitStatusDelivery", Table: "commitstatusdelivery",
		Fields: []sqlg.ObjectField{
			{Name: "Sequence", Type: "uint64", Sequence: true},
			{Name: "CommitStatusID", Type: "string"},
			{Name: "DeliveryStatus", Type: "types.DeliveryStatus", BaseType: "string"},
			{Name: "DeliveredAt", Type: "time.Time", Nullable: true},
		},
		Constraints: []string{
			"foreign key (commit_status_id) references commitstatus(id)",
		},
		Indexes: []string{
			"create index if not exists commitstatusdelivery_sequence_idx on commitstatusdelivery(sequence)",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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