models

package
v0.0.0-...-ead2a4b Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EnvtypeProduction  string = "production"
	EnvtypeDevelopment string = "development"
)

Enum values for Envtype

View Source
const (
	SendattemptstatusFailed    string = "failed"
	SendattemptstatusSucceeded string = "succeeded"
)

Enum values for Sendattemptstatus

Variables

View Source
var APIKeyColumns = struct {
	ID            string
	SecretKey     string
	Suffix        string
	OrgID         string
	EnvironmentID string
	Name          string
	CreatedAt     string
	ExpiresAt     string
}{
	ID:            "id",
	SecretKey:     "secret_key",
	Suffix:        "suffix",
	OrgID:         "org_id",
	EnvironmentID: "environment_id",
	Name:          "name",
	CreatedAt:     "created_at",
	ExpiresAt:     "expires_at",
}
View Source
var APIKeyRels = struct {
	Environment string
	Org         string
}{
	Environment: "Environment",
	Org:         "Org",
}

APIKeyRels is where relationship names are stored.

View Source
var APIKeyTableColumns = struct {
	ID            string
	SecretKey     string
	Suffix        string
	OrgID         string
	EnvironmentID string
	Name          string
	CreatedAt     string
	ExpiresAt     string
}{
	ID:            "api_keys.id",
	SecretKey:     "api_keys.secret_key",
	Suffix:        "api_keys.suffix",
	OrgID:         "api_keys.org_id",
	EnvironmentID: "api_keys.environment_id",
	Name:          "api_keys.name",
	CreatedAt:     "api_keys.created_at",
	ExpiresAt:     "api_keys.expires_at",
}
View Source
var APIKeyWhere = struct {
	ID            whereHelperstring
	SecretKey     whereHelperstring
	Suffix        whereHelperstring
	OrgID         whereHelperstring
	EnvironmentID whereHelperstring
	Name          whereHelperstring
	CreatedAt     whereHelpertime_Time
	ExpiresAt     whereHelpernull_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	SecretKey:     whereHelperstring{/* contains filtered or unexported fields */},
	Suffix:        whereHelperstring{/* contains filtered or unexported fields */},
	OrgID:         whereHelperstring{/* contains filtered or unexported fields */},
	EnvironmentID: whereHelperstring{/* contains filtered or unexported fields */},
	Name:          whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ExpiresAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ApplicationColumns = struct {
	ID            string
	EnvironmentID string
	Name          string
	CreatedAt     string
}{
	ID:            "id",
	EnvironmentID: "environment_id",
	Name:          "name",
	CreatedAt:     "created_at",
}
View Source
var ApplicationRels = struct {
	Environment string
	Endpoints   string
	Messages    string
}{
	Environment: "Environment",
	Endpoints:   "Endpoints",
	Messages:    "Messages",
}

ApplicationRels is where relationship names are stored.

View Source
var ApplicationTableColumns = struct {
	ID            string
	EnvironmentID string
	Name          string
	CreatedAt     string
}{
	ID:            "applications.id",
	EnvironmentID: "applications.environment_id",
	Name:          "applications.name",
	CreatedAt:     "applications.created_at",
}
View Source
var ApplicationWhere = struct {
	ID            whereHelperstring
	EnvironmentID whereHelperstring
	Name          whereHelperstring
	CreatedAt     whereHelpertime_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	EnvironmentID: whereHelperstring{/* contains filtered or unexported fields */},
	Name:          whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var EndpointColumns = struct {
	ID            string
	ApplicationID string
	URL           string
	Description   string
	SigningSecret string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	ApplicationID: "application_id",
	URL:           "url",
	Description:   "description",
	SigningSecret: "signing_secret",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var EndpointRels = struct {
	Application         string
	EventTypes          string
	MessageSendAttempts string
}{
	Application:         "Application",
	EventTypes:          "EventTypes",
	MessageSendAttempts: "MessageSendAttempts",
}

EndpointRels is where relationship names are stored.

View Source
var EndpointTableColumns = struct {
	ID            string
	ApplicationID string
	URL           string
	Description   string
	SigningSecret string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "endpoints.id",
	ApplicationID: "endpoints.application_id",
	URL:           "endpoints.url",
	Description:   "endpoints.description",
	SigningSecret: "endpoints.signing_secret",
	CreatedAt:     "endpoints.created_at",
	UpdatedAt:     "endpoints.updated_at",
}
View Source
var EndpointWhere = struct {
	ID            whereHelperstring
	ApplicationID whereHelperstring
	URL           whereHelperstring
	Description   whereHelpernull_String
	SigningSecret whereHelperstring
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	ApplicationID: whereHelperstring{/* contains filtered or unexported fields */},
	URL:           whereHelperstring{/* contains filtered or unexported fields */},
	Description:   whereHelpernull_String{/* contains filtered or unexported fields */},
	SigningSecret: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var EnvironmentColumns = struct {
	ID             string
	OrganizationID string
	Name           string
	EnvType        string
	CreatedAt      string
	ArchivedAt     string
}{
	ID:             "id",
	OrganizationID: "organization_id",
	Name:           "name",
	EnvType:        "env_type",
	CreatedAt:      "created_at",
	ArchivedAt:     "archived_at",
}
View Source
var EnvironmentRels = struct {
	Organization string
	APIKeys      string
	Applications string
}{
	Organization: "Organization",
	APIKeys:      "APIKeys",
	Applications: "Applications",
}

EnvironmentRels is where relationship names are stored.

View Source
var EnvironmentTableColumns = struct {
	ID             string
	OrganizationID string
	Name           string
	EnvType        string
	CreatedAt      string
	ArchivedAt     string
}{
	ID:             "environments.id",
	OrganizationID: "environments.organization_id",
	Name:           "environments.name",
	EnvType:        "environments.env_type",
	CreatedAt:      "environments.created_at",
	ArchivedAt:     "environments.archived_at",
}
View Source
var EnvironmentWhere = struct {
	ID             whereHelperstring
	OrganizationID whereHelperstring
	Name           whereHelperstring
	EnvType        whereHelperstring
	CreatedAt      whereHelpertime_Time
	ArchivedAt     whereHelpernull_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	OrganizationID: whereHelperstring{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	EnvType:        whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	ArchivedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var EventTypeColumns = struct {
	ID            string
	OrgID         string
	Name          string
	Description   string
	Schema        string
	SchemaExample string
	CreatedAt     string
	ArchivedAt    string
}{
	ID:            "id",
	OrgID:         "org_id",
	Name:          "name",
	Description:   "description",
	Schema:        "schema",
	SchemaExample: "schema_example",
	CreatedAt:     "created_at",
	ArchivedAt:    "archived_at",
}
View Source
var EventTypeRels = struct {
	Org       string
	Endpoints string
	Messages  string
}{
	Org:       "Org",
	Endpoints: "Endpoints",
	Messages:  "Messages",
}

EventTypeRels is where relationship names are stored.

View Source
var EventTypeTableColumns = struct {
	ID            string
	OrgID         string
	Name          string
	Description   string
	Schema        string
	SchemaExample string
	CreatedAt     string
	ArchivedAt    string
}{
	ID:            "event_types.id",
	OrgID:         "event_types.org_id",
	Name:          "event_types.name",
	Description:   "event_types.description",
	Schema:        "event_types.schema",
	SchemaExample: "event_types.schema_example",
	CreatedAt:     "event_types.created_at",
	ArchivedAt:    "event_types.archived_at",
}
View Source
var EventTypeWhere = struct {
	ID            whereHelperstring
	OrgID         whereHelperstring
	Name          whereHelperstring
	Description   whereHelpernull_String
	Schema        whereHelpernull_String
	SchemaExample whereHelpernull_String
	CreatedAt     whereHelpertime_Time
	ArchivedAt    whereHelpernull_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	OrgID:         whereHelperstring{/* contains filtered or unexported fields */},
	Name:          whereHelperstring{/* contains filtered or unexported fields */},
	Description:   whereHelpernull_String{/* contains filtered or unexported fields */},
	Schema:        whereHelpernull_String{/* contains filtered or unexported fields */},
	SchemaExample: whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ArchivedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var MemberColumns = struct {
	ID             string
	FirstName      string
	LastName       string
	Email          string
	Password       string
	OrganizationID string
	CreatedAt      string
}{
	ID:             "id",
	FirstName:      "first_name",
	LastName:       "last_name",
	Email:          "email",
	Password:       "password",
	OrganizationID: "organization_id",
	CreatedAt:      "created_at",
}
View Source
var MemberRels = struct {
	Organization string
}{
	Organization: "Organization",
}

MemberRels is where relationship names are stored.

View Source
var MemberTableColumns = struct {
	ID             string
	FirstName      string
	LastName       string
	Email          string
	Password       string
	OrganizationID string
	CreatedAt      string
}{
	ID:             "members.id",
	FirstName:      "members.first_name",
	LastName:       "members.last_name",
	Email:          "members.email",
	Password:       "members.password",
	OrganizationID: "members.organization_id",
	CreatedAt:      "members.created_at",
}
View Source
var MemberWhere = struct {
	ID             whereHelperstring
	FirstName      whereHelperstring
	LastName       whereHelperstring
	Email          whereHelperstring
	Password       whereHelperstring
	OrganizationID whereHelperstring
	CreatedAt      whereHelpertime_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	FirstName:      whereHelperstring{/* contains filtered or unexported fields */},
	LastName:       whereHelperstring{/* contains filtered or unexported fields */},
	Email:          whereHelperstring{/* contains filtered or unexported fields */},
	Password:       whereHelperstring{/* contains filtered or unexported fields */},
	OrganizationID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var MessageColumns = struct {
	ID            string
	OrgID         string
	ApplicationID string
	EventTypeID   string
	Payload       string
	SentAt        string
}{
	ID:            "id",
	OrgID:         "org_id",
	ApplicationID: "application_id",
	EventTypeID:   "event_type_id",
	Payload:       "payload",
	SentAt:        "sent_at",
}
View Source
var MessageRels = struct {
	Application         string
	Org                 string
	EventType           string
	MessageSendAttempts string
}{
	Application:         "Application",
	Org:                 "Org",
	EventType:           "EventType",
	MessageSendAttempts: "MessageSendAttempts",
}

MessageRels is where relationship names are stored.

View Source
var MessageSendAttemptColumns = struct {
	ID             string
	MessageID      string
	EndpointID     string
	AttemptedAt    string
	Status         string
	Response       string
	StatusCode     string
	RequestHeaders string
}{
	ID:             "id",
	MessageID:      "message_id",
	EndpointID:     "endpoint_id",
	AttemptedAt:    "attempted_at",
	Status:         "status",
	Response:       "response",
	StatusCode:     "status_code",
	RequestHeaders: "request_headers",
}
View Source
var MessageSendAttemptRels = struct {
	Endpoint string
	Message  string
}{
	Endpoint: "Endpoint",
	Message:  "Message",
}

MessageSendAttemptRels is where relationship names are stored.

View Source
var MessageSendAttemptTableColumns = struct {
	ID             string
	MessageID      string
	EndpointID     string
	AttemptedAt    string
	Status         string
	Response       string
	StatusCode     string
	RequestHeaders string
}{
	ID:             "message_send_attempts.id",
	MessageID:      "message_send_attempts.message_id",
	EndpointID:     "message_send_attempts.endpoint_id",
	AttemptedAt:    "message_send_attempts.attempted_at",
	Status:         "message_send_attempts.status",
	Response:       "message_send_attempts.response",
	StatusCode:     "message_send_attempts.status_code",
	RequestHeaders: "message_send_attempts.request_headers",
}
View Source
var MessageSendAttemptWhere = struct {
	ID             whereHelperstring
	MessageID      whereHelperstring
	EndpointID     whereHelperstring
	AttemptedAt    whereHelpertime_Time
	Status         whereHelperstring
	Response       whereHelpernull_String
	StatusCode     whereHelpernull_Int16
	RequestHeaders whereHelpernull_JSON
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	MessageID:      whereHelperstring{/* contains filtered or unexported fields */},
	EndpointID:     whereHelperstring{/* contains filtered or unexported fields */},
	AttemptedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	Status:         whereHelperstring{/* contains filtered or unexported fields */},
	Response:       whereHelpernull_String{/* contains filtered or unexported fields */},
	StatusCode:     whereHelpernull_Int16{/* contains filtered or unexported fields */},
	RequestHeaders: whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var MessageTableColumns = struct {
	ID            string
	OrgID         string
	ApplicationID string
	EventTypeID   string
	Payload       string
	SentAt        string
}{
	ID:            "messages.id",
	OrgID:         "messages.org_id",
	ApplicationID: "messages.application_id",
	EventTypeID:   "messages.event_type_id",
	Payload:       "messages.payload",
	SentAt:        "messages.sent_at",
}
View Source
var MessageWhere = struct {
	ID            whereHelperstring
	OrgID         whereHelperstring
	ApplicationID whereHelperstring
	EventTypeID   whereHelperstring
	Payload       whereHelperstring
	SentAt        whereHelpertime_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	OrgID:         whereHelperstring{/* contains filtered or unexported fields */},
	ApplicationID: whereHelperstring{/* contains filtered or unexported fields */},
	EventTypeID:   whereHelperstring{/* contains filtered or unexported fields */},
	Payload:       whereHelperstring{/* contains filtered or unexported fields */},
	SentAt:        whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var OrganizationColumns = struct {
	ID         string
	CreatedAt  string
	DisabledAt string
}{
	ID:         "id",
	CreatedAt:  "created_at",
	DisabledAt: "disabled_at",
}
View Source
var OrganizationRels = struct {
	OrgAPIKeys    string
	Environments  string
	OrgEventTypes string
	Members       string
	OrgMessages   string
}{
	OrgAPIKeys:    "OrgAPIKeys",
	Environments:  "Environments",
	OrgEventTypes: "OrgEventTypes",
	Members:       "Members",
	OrgMessages:   "OrgMessages",
}

OrganizationRels is where relationship names are stored.

View Source
var OrganizationTableColumns = struct {
	ID         string
	CreatedAt  string
	DisabledAt string
}{
	ID:         "organizations.id",
	CreatedAt:  "organizations.created_at",
	DisabledAt: "organizations.disabled_at",
}
View Source
var OrganizationWhere = struct {
	ID         whereHelperstring
	CreatedAt  whereHelpertime_Time
	DisabledAt whereHelpernull_Time
}{
	ID:         whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	DisabledAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	APIKeys             string
	Applications        string
	EndpointEventTypes  string
	Endpoints           string
	Environments        string
	EventTypes          string
	Members             string
	MessageSendAttempts string
	Messages            string
	Organizations       string
}{
	APIKeys:             "api_keys",
	Applications:        "applications",
	EndpointEventTypes:  "endpoint_event_types",
	Endpoints:           "endpoints",
	Environments:        "environments",
	EventTypes:          "event_types",
	Members:             "members",
	MessageSendAttempts: "message_send_attempts",
	Messages:            "messages",
	Organizations:       "organizations",
}
View Source
var ViewNames = struct {
}{}

Functions

func APIKeyExists

func APIKeyExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

APIKeyExists checks if the APIKey row exists.

func APIKeys

func APIKeys(mods ...qm.QueryMod) apiKeyQuery

APIKeys retrieves all the records using an executor.

func AddAPIKeyHook

func AddAPIKeyHook(hookPoint boil.HookPoint, apiKeyHook APIKeyHook)

AddAPIKeyHook registers your hook function for all future operations.

func AddApplicationHook

func AddApplicationHook(hookPoint boil.HookPoint, applicationHook ApplicationHook)

AddApplicationHook registers your hook function for all future operations.

func AddEndpointHook

func AddEndpointHook(hookPoint boil.HookPoint, endpointHook EndpointHook)

AddEndpointHook registers your hook function for all future operations.

func AddEnvironmentHook

func AddEnvironmentHook(hookPoint boil.HookPoint, environmentHook EnvironmentHook)

AddEnvironmentHook registers your hook function for all future operations.

func AddEventTypeHook

func AddEventTypeHook(hookPoint boil.HookPoint, eventTypeHook EventTypeHook)

AddEventTypeHook registers your hook function for all future operations.

func AddMemberHook

func AddMemberHook(hookPoint boil.HookPoint, memberHook MemberHook)

AddMemberHook registers your hook function for all future operations.

func AddMessageHook

func AddMessageHook(hookPoint boil.HookPoint, messageHook MessageHook)

AddMessageHook registers your hook function for all future operations.

func AddMessageSendAttemptHook

func AddMessageSendAttemptHook(hookPoint boil.HookPoint, messageSendAttemptHook MessageSendAttemptHook)

AddMessageSendAttemptHook registers your hook function for all future operations.

func AddOrganizationHook

func AddOrganizationHook(hookPoint boil.HookPoint, organizationHook OrganizationHook)

AddOrganizationHook registers your hook function for all future operations.

func AllEnvtype

func AllEnvtype() []string

func AllSendattemptstatus

func AllSendattemptstatus() []string

func ApplicationExists

func ApplicationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ApplicationExists checks if the Application row exists.

func Applications

func Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the records using an executor.

func EndpointExists

func EndpointExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

EndpointExists checks if the Endpoint row exists.

func Endpoints

func Endpoints(mods ...qm.QueryMod) endpointQuery

Endpoints retrieves all the records using an executor.

func EnvironmentExists

func EnvironmentExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

EnvironmentExists checks if the Environment row exists.

func Environments

func Environments(mods ...qm.QueryMod) environmentQuery

Environments retrieves all the records using an executor.

func EventTypeExists

func EventTypeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

EventTypeExists checks if the EventType row exists.

func EventTypes

func EventTypes(mods ...qm.QueryMod) eventTypeQuery

EventTypes retrieves all the records using an executor.

func MemberExists

func MemberExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

MemberExists checks if the Member row exists.

func Members

func Members(mods ...qm.QueryMod) memberQuery

Members retrieves all the records using an executor.

func MessageExists

func MessageExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

MessageExists checks if the Message row exists.

func MessageSendAttemptExists

func MessageSendAttemptExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

MessageSendAttemptExists checks if the MessageSendAttempt row exists.

func MessageSendAttempts

func MessageSendAttempts(mods ...qm.QueryMod) messageSendAttemptQuery

MessageSendAttempts retrieves all the records using an executor.

func Messages

func Messages(mods ...qm.QueryMod) messageQuery

Messages retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func OrganizationExists

func OrganizationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

OrganizationExists checks if the Organization row exists.

func Organizations

func Organizations(mods ...qm.QueryMod) organizationQuery

Organizations retrieves all the records using an executor.

Types

type APIKey

type APIKey struct {
	ID            string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	SecretKey     string    `boil:"secret_key" json:"secret_key" toml:"secret_key" yaml:"secret_key"`
	Suffix        string    `boil:"suffix" json:"suffix" toml:"suffix" yaml:"suffix"`
	OrgID         string    `boil:"org_id" json:"org_id" toml:"org_id" yaml:"org_id"`
	EnvironmentID string    `boil:"environment_id" json:"environment_id" toml:"environment_id" yaml:"environment_id"`
	Name          string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt     time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ExpiresAt     null.Time `boil:"expires_at" json:"expires_at,omitempty" toml:"expires_at" yaml:"expires_at,omitempty"`

	R *apiKeyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L apiKeyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

APIKey is an object representing the database table.

func FindAPIKey

func FindAPIKey(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*APIKey, error)

FindAPIKey retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*APIKey) Delete

func (o *APIKey) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single APIKey record with an executor. Delete will match against the primary key column to find the record to delete.

func (*APIKey) Environment

func (o *APIKey) Environment(mods ...qm.QueryMod) environmentQuery

Environment pointed to by the foreign key.

func (*APIKey) Exists

func (o *APIKey) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the APIKey row exists.

func (*APIKey) Insert

func (o *APIKey) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*APIKey) Org

func (o *APIKey) Org(mods ...qm.QueryMod) organizationQuery

Org pointed to by the foreign key.

func (*APIKey) Reload

func (o *APIKey) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*APIKey) SetEnvironment

func (o *APIKey) SetEnvironment(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Environment) error

SetEnvironment of the apiKey to the related item. Sets o.R.Environment to related. Adds o to related.R.APIKeys.

func (*APIKey) SetOrg

func (o *APIKey) SetOrg(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrg of the apiKey to the related item. Sets o.R.Org to related. Adds o to related.R.OrgAPIKeys.

func (*APIKey) Update

func (o *APIKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the APIKey. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*APIKey) Upsert

func (o *APIKey) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type APIKeyHook

type APIKeyHook func(context.Context, boil.ContextExecutor, *APIKey) error

APIKeyHook is the signature for custom APIKey hook methods

type APIKeySlice

type APIKeySlice []*APIKey

APIKeySlice is an alias for a slice of pointers to APIKey. This should almost always be used instead of []APIKey.

func (APIKeySlice) DeleteAll

func (o APIKeySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*APIKeySlice) ReloadAll

func (o *APIKeySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (APIKeySlice) UpdateAll

func (o APIKeySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Application

type Application struct {
	ID            string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	EnvironmentID string    `boil:"environment_id" json:"environment_id" toml:"environment_id" yaml:"environment_id"`
	Name          string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt     time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *applicationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Application is an object representing the database table.

func FindApplication

func FindApplication(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Application, error)

FindApplication retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Application) AddEndpoints

func (o *Application) AddEndpoints(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Endpoint) error

AddEndpoints adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.Endpoints. Sets related.R.Application appropriately.

func (*Application) AddMessages

func (o *Application) AddMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error

AddMessages adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.Messages. Sets related.R.Application appropriately.

func (*Application) Delete

func (o *Application) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Application record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Application) Endpoints

func (o *Application) Endpoints(mods ...qm.QueryMod) endpointQuery

Endpoints retrieves all the endpoint's Endpoints with an executor.

func (*Application) Environment

func (o *Application) Environment(mods ...qm.QueryMod) environmentQuery

Environment pointed to by the foreign key.

func (*Application) Exists

func (o *Application) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Application row exists.

func (*Application) Insert

func (o *Application) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Application) Messages

func (o *Application) Messages(mods ...qm.QueryMod) messageQuery

Messages retrieves all the message's Messages with an executor.

func (*Application) Reload

func (o *Application) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Application) SetEnvironment

func (o *Application) SetEnvironment(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Environment) error

SetEnvironment of the application to the related item. Sets o.R.Environment to related. Adds o to related.R.Applications.

func (*Application) Update

func (o *Application) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Application. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Application) Upsert

func (o *Application) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ApplicationHook

type ApplicationHook func(context.Context, boil.ContextExecutor, *Application) error

ApplicationHook is the signature for custom Application hook methods

type ApplicationSlice

type ApplicationSlice []*Application

ApplicationSlice is an alias for a slice of pointers to Application. This should almost always be used instead of []Application.

func (ApplicationSlice) DeleteAll

func (o ApplicationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ApplicationSlice) ReloadAll

func (o *ApplicationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ApplicationSlice) UpdateAll

func (o ApplicationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Endpoint

type Endpoint struct {
	ID            string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	ApplicationID string      `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	URL           string      `boil:"url" json:"url" toml:"url" yaml:"url"`
	Description   null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	SigningSecret string      `boil:"signing_secret" json:"signing_secret" toml:"signing_secret" yaml:"signing_secret"`
	CreatedAt     time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt     time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *endpointR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L endpointL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Endpoint is an object representing the database table.

func FindEndpoint

func FindEndpoint(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Endpoint, error)

FindEndpoint retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Endpoint) AddEventTypes

func (o *Endpoint) AddEventTypes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EventType) error

AddEventTypes adds the given related objects to the existing relationships of the endpoint, optionally inserting them as new records. Appends related to o.R.EventTypes. Sets related.R.Endpoints appropriately.

func (*Endpoint) AddMessageSendAttempts

func (o *Endpoint) AddMessageSendAttempts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MessageSendAttempt) error

AddMessageSendAttempts adds the given related objects to the existing relationships of the endpoint, optionally inserting them as new records. Appends related to o.R.MessageSendAttempts. Sets related.R.Endpoint appropriately.

func (*Endpoint) Application

func (o *Endpoint) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*Endpoint) Delete

func (o *Endpoint) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Endpoint record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Endpoint) EventTypes

func (o *Endpoint) EventTypes(mods ...qm.QueryMod) eventTypeQuery

EventTypes retrieves all the event_type's EventTypes with an executor.

func (*Endpoint) Exists

func (o *Endpoint) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Endpoint row exists.

func (*Endpoint) Insert

func (o *Endpoint) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Endpoint) MessageSendAttempts

func (o *Endpoint) MessageSendAttempts(mods ...qm.QueryMod) messageSendAttemptQuery

MessageSendAttempts retrieves all the message_send_attempt's MessageSendAttempts with an executor.

func (*Endpoint) Reload

func (o *Endpoint) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Endpoint) RemoveEventTypes

func (o *Endpoint) RemoveEventTypes(ctx context.Context, exec boil.ContextExecutor, related ...*EventType) error

RemoveEventTypes relationships from objects passed in. Removes related items from R.EventTypes (uses pointer comparison, removal does not keep order) Sets related.R.Endpoints.

func (*Endpoint) SetApplication

func (o *Endpoint) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the endpoint to the related item. Sets o.R.Application to related. Adds o to related.R.Endpoints.

func (*Endpoint) SetEventTypes

func (o *Endpoint) SetEventTypes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EventType) error

SetEventTypes removes all previously related items of the endpoint replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Endpoints's EventTypes accordingly. Replaces o.R.EventTypes with related. Sets related.R.Endpoints's EventTypes accordingly.

func (*Endpoint) Update

func (o *Endpoint) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Endpoint. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Endpoint) Upsert

func (o *Endpoint) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type EndpointHook

type EndpointHook func(context.Context, boil.ContextExecutor, *Endpoint) error

EndpointHook is the signature for custom Endpoint hook methods

type EndpointSlice

type EndpointSlice []*Endpoint

EndpointSlice is an alias for a slice of pointers to Endpoint. This should almost always be used instead of []Endpoint.

func (EndpointSlice) DeleteAll

func (o EndpointSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*EndpointSlice) ReloadAll

func (o *EndpointSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EndpointSlice) UpdateAll

func (o EndpointSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Environment

type Environment struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	OrganizationID string    `boil:"organization_id" json:"organization_id" toml:"organization_id" yaml:"organization_id"`
	Name           string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	EnvType        string    `boil:"env_type" json:"env_type" toml:"env_type" yaml:"env_type"`
	CreatedAt      time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ArchivedAt     null.Time `boil:"archived_at" json:"archived_at,omitempty" toml:"archived_at" yaml:"archived_at,omitempty"`

	R *environmentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L environmentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Environment is an object representing the database table.

func FindEnvironment

func FindEnvironment(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Environment, error)

FindEnvironment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Environment) APIKeys

func (o *Environment) APIKeys(mods ...qm.QueryMod) apiKeyQuery

APIKeys retrieves all the api_key's APIKeys with an executor.

func (*Environment) AddAPIKeys

func (o *Environment) AddAPIKeys(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*APIKey) error

AddAPIKeys adds the given related objects to the existing relationships of the environment, optionally inserting them as new records. Appends related to o.R.APIKeys. Sets related.R.Environment appropriately.

func (*Environment) AddApplications

func (o *Environment) AddApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

AddApplications adds the given related objects to the existing relationships of the environment, optionally inserting them as new records. Appends related to o.R.Applications. Sets related.R.Environment appropriately.

func (*Environment) Applications

func (o *Environment) Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the application's Applications with an executor.

func (*Environment) Delete

func (o *Environment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Environment record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Environment) Exists

func (o *Environment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Environment row exists.

func (*Environment) Insert

func (o *Environment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Environment) Organization

func (o *Environment) Organization(mods ...qm.QueryMod) organizationQuery

Organization pointed to by the foreign key.

func (*Environment) Reload

func (o *Environment) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Environment) SetOrganization

func (o *Environment) SetOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrganization of the environment to the related item. Sets o.R.Organization to related. Adds o to related.R.Environments.

func (*Environment) Update

func (o *Environment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Environment. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Environment) Upsert

func (o *Environment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type EnvironmentHook

type EnvironmentHook func(context.Context, boil.ContextExecutor, *Environment) error

EnvironmentHook is the signature for custom Environment hook methods

type EnvironmentSlice

type EnvironmentSlice []*Environment

EnvironmentSlice is an alias for a slice of pointers to Environment. This should almost always be used instead of []Environment.

func (EnvironmentSlice) DeleteAll

func (o EnvironmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*EnvironmentSlice) ReloadAll

func (o *EnvironmentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EnvironmentSlice) UpdateAll

func (o EnvironmentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type EventType

type EventType struct {
	ID            string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	OrgID         string      `boil:"org_id" json:"org_id" toml:"org_id" yaml:"org_id"`
	Name          string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description   null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	Schema        null.String `boil:"schema" json:"schema,omitempty" toml:"schema" yaml:"schema,omitempty"`
	SchemaExample null.String `boil:"schema_example" json:"schema_example,omitempty" toml:"schema_example" yaml:"schema_example,omitempty"`
	CreatedAt     time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	ArchivedAt    null.Time   `boil:"archived_at" json:"archived_at,omitempty" toml:"archived_at" yaml:"archived_at,omitempty"`

	R *eventTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L eventTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

EventType is an object representing the database table.

func FindEventType

func FindEventType(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*EventType, error)

FindEventType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*EventType) AddEndpoints

func (o *EventType) AddEndpoints(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Endpoint) error

AddEndpoints adds the given related objects to the existing relationships of the event_type, optionally inserting them as new records. Appends related to o.R.Endpoints. Sets related.R.EventTypes appropriately.

func (*EventType) AddMessages

func (o *EventType) AddMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error

AddMessages adds the given related objects to the existing relationships of the event_type, optionally inserting them as new records. Appends related to o.R.Messages. Sets related.R.EventType appropriately.

func (*EventType) Delete

func (o *EventType) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single EventType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*EventType) Endpoints

func (o *EventType) Endpoints(mods ...qm.QueryMod) endpointQuery

Endpoints retrieves all the endpoint's Endpoints with an executor.

func (*EventType) Exists

func (o *EventType) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the EventType row exists.

func (*EventType) Insert

func (o *EventType) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*EventType) Messages

func (o *EventType) Messages(mods ...qm.QueryMod) messageQuery

Messages retrieves all the message's Messages with an executor.

func (*EventType) Org

func (o *EventType) Org(mods ...qm.QueryMod) organizationQuery

Org pointed to by the foreign key.

func (*EventType) Reload

func (o *EventType) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*EventType) RemoveEndpoints

func (o *EventType) RemoveEndpoints(ctx context.Context, exec boil.ContextExecutor, related ...*Endpoint) error

RemoveEndpoints relationships from objects passed in. Removes related items from R.Endpoints (uses pointer comparison, removal does not keep order) Sets related.R.EventTypes.

func (*EventType) SetEndpoints

func (o *EventType) SetEndpoints(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Endpoint) error

SetEndpoints removes all previously related items of the event_type replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.EventTypes's Endpoints accordingly. Replaces o.R.Endpoints with related. Sets related.R.EventTypes's Endpoints accordingly.

func (*EventType) SetOrg

func (o *EventType) SetOrg(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrg of the eventType to the related item. Sets o.R.Org to related. Adds o to related.R.OrgEventTypes.

func (*EventType) Update

func (o *EventType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the EventType. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*EventType) Upsert

func (o *EventType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type EventTypeHook

type EventTypeHook func(context.Context, boil.ContextExecutor, *EventType) error

EventTypeHook is the signature for custom EventType hook methods

type EventTypeSlice

type EventTypeSlice []*EventType

EventTypeSlice is an alias for a slice of pointers to EventType. This should almost always be used instead of []EventType.

func (EventTypeSlice) DeleteAll

func (o EventTypeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*EventTypeSlice) ReloadAll

func (o *EventTypeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (EventTypeSlice) UpdateAll

func (o EventTypeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Member

type Member struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	FirstName      string    `boil:"first_name" json:"first_name" toml:"first_name" yaml:"first_name"`
	LastName       string    `boil:"last_name" json:"last_name" toml:"last_name" yaml:"last_name"`
	Email          string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Password       string    `boil:"password" json:"password" toml:"password" yaml:"password"`
	OrganizationID string    `boil:"organization_id" json:"organization_id" toml:"organization_id" yaml:"organization_id"`
	CreatedAt      time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *memberR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L memberL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Member is an object representing the database table.

func FindMember

func FindMember(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Member, error)

FindMember retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Member) Delete

func (o *Member) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Member record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Member) Exists

func (o *Member) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Member row exists.

func (*Member) Insert

func (o *Member) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Member) Organization

func (o *Member) Organization(mods ...qm.QueryMod) organizationQuery

Organization pointed to by the foreign key.

func (*Member) Reload

func (o *Member) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Member) SetOrganization

func (o *Member) SetOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrganization of the member to the related item. Sets o.R.Organization to related. Adds o to related.R.Members.

func (*Member) Update

func (o *Member) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Member. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Member) Upsert

func (o *Member) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MemberHook

type MemberHook func(context.Context, boil.ContextExecutor, *Member) error

MemberHook is the signature for custom Member hook methods

type MemberSlice

type MemberSlice []*Member

MemberSlice is an alias for a slice of pointers to Member. This should almost always be used instead of []Member.

func (MemberSlice) DeleteAll

func (o MemberSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MemberSlice) ReloadAll

func (o *MemberSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MemberSlice) UpdateAll

func (o MemberSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Message

type Message struct {
	ID            string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	OrgID         string    `boil:"org_id" json:"org_id" toml:"org_id" yaml:"org_id"`
	ApplicationID string    `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	EventTypeID   string    `boil:"event_type_id" json:"event_type_id" toml:"event_type_id" yaml:"event_type_id"`
	Payload       string    `boil:"payload" json:"payload" toml:"payload" yaml:"payload"`
	SentAt        time.Time `boil:"sent_at" json:"sent_at" toml:"sent_at" yaml:"sent_at"`

	R *messageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L messageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Message is an object representing the database table.

func FindMessage

func FindMessage(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Message, error)

FindMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Message) AddMessageSendAttempts

func (o *Message) AddMessageSendAttempts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MessageSendAttempt) error

AddMessageSendAttempts adds the given related objects to the existing relationships of the message, optionally inserting them as new records. Appends related to o.R.MessageSendAttempts. Sets related.R.Message appropriately.

func (*Message) Application

func (o *Message) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*Message) Delete

func (o *Message) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Message record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Message) EventType

func (o *Message) EventType(mods ...qm.QueryMod) eventTypeQuery

EventType pointed to by the foreign key.

func (*Message) Exists

func (o *Message) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Message row exists.

func (*Message) Insert

func (o *Message) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Message) MessageSendAttempts

func (o *Message) MessageSendAttempts(mods ...qm.QueryMod) messageSendAttemptQuery

MessageSendAttempts retrieves all the message_send_attempt's MessageSendAttempts with an executor.

func (*Message) Org

func (o *Message) Org(mods ...qm.QueryMod) organizationQuery

Org pointed to by the foreign key.

func (*Message) Reload

func (o *Message) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Message) SetApplication

func (o *Message) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the message to the related item. Sets o.R.Application to related. Adds o to related.R.Messages.

func (*Message) SetEventType

func (o *Message) SetEventType(ctx context.Context, exec boil.ContextExecutor, insert bool, related *EventType) error

SetEventType of the message to the related item. Sets o.R.EventType to related. Adds o to related.R.Messages.

func (*Message) SetOrg

func (o *Message) SetOrg(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrg of the message to the related item. Sets o.R.Org to related. Adds o to related.R.OrgMessages.

func (*Message) Update

func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Message. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Message) Upsert

func (o *Message) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MessageHook

type MessageHook func(context.Context, boil.ContextExecutor, *Message) error

MessageHook is the signature for custom Message hook methods

type MessageSendAttempt

type MessageSendAttempt struct {
	ID             string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	MessageID      string      `boil:"message_id" json:"message_id" toml:"message_id" yaml:"message_id"`
	EndpointID     string      `boil:"endpoint_id" json:"endpoint_id" toml:"endpoint_id" yaml:"endpoint_id"`
	AttemptedAt    time.Time   `boil:"attempted_at" json:"attempted_at" toml:"attempted_at" yaml:"attempted_at"`
	Status         string      `boil:"status" json:"status" toml:"status" yaml:"status"`
	Response       null.String `boil:"response" json:"response,omitempty" toml:"response" yaml:"response,omitempty"`
	StatusCode     null.Int16  `boil:"status_code" json:"status_code,omitempty" toml:"status_code" yaml:"status_code,omitempty"`
	RequestHeaders null.JSON   `boil:"request_headers" json:"request_headers,omitempty" toml:"request_headers" yaml:"request_headers,omitempty"`

	R *messageSendAttemptR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L messageSendAttemptL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MessageSendAttempt is an object representing the database table.

func FindMessageSendAttempt

func FindMessageSendAttempt(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*MessageSendAttempt, error)

FindMessageSendAttempt retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*MessageSendAttempt) Delete

Delete deletes a single MessageSendAttempt record with an executor. Delete will match against the primary key column to find the record to delete.

func (*MessageSendAttempt) Endpoint

func (o *MessageSendAttempt) Endpoint(mods ...qm.QueryMod) endpointQuery

Endpoint pointed to by the foreign key.

func (*MessageSendAttempt) Exists

Exists checks if the MessageSendAttempt row exists.

func (*MessageSendAttempt) Insert

func (o *MessageSendAttempt) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*MessageSendAttempt) Message

func (o *MessageSendAttempt) Message(mods ...qm.QueryMod) messageQuery

Message pointed to by the foreign key.

func (*MessageSendAttempt) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*MessageSendAttempt) SetEndpoint

func (o *MessageSendAttempt) SetEndpoint(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Endpoint) error

SetEndpoint of the messageSendAttempt to the related item. Sets o.R.Endpoint to related. Adds o to related.R.MessageSendAttempts.

func (*MessageSendAttempt) SetMessage

func (o *MessageSendAttempt) SetMessage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Message) error

SetMessage of the messageSendAttempt to the related item. Sets o.R.Message to related. Adds o to related.R.MessageSendAttempts.

func (*MessageSendAttempt) Update

func (o *MessageSendAttempt) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MessageSendAttempt. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*MessageSendAttempt) Upsert

func (o *MessageSendAttempt) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type MessageSendAttemptHook

type MessageSendAttemptHook func(context.Context, boil.ContextExecutor, *MessageSendAttempt) error

MessageSendAttemptHook is the signature for custom MessageSendAttempt hook methods

type MessageSendAttemptSlice

type MessageSendAttemptSlice []*MessageSendAttempt

MessageSendAttemptSlice is an alias for a slice of pointers to MessageSendAttempt. This should almost always be used instead of []MessageSendAttempt.

func (MessageSendAttemptSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*MessageSendAttemptSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MessageSendAttemptSlice) UpdateAll

func (o MessageSendAttemptSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type MessageSlice

type MessageSlice []*Message

MessageSlice is an alias for a slice of pointers to Message. This should almost always be used instead of []Message.

func (MessageSlice) DeleteAll

func (o MessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*MessageSlice) ReloadAll

func (o *MessageSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MessageSlice) UpdateAll

func (o MessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Organization

type Organization struct {
	ID         string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	DisabledAt null.Time `boil:"disabled_at" json:"disabled_at,omitempty" toml:"disabled_at" yaml:"disabled_at,omitempty"`

	R *organizationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L organizationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Organization is an object representing the database table.

func FindOrganization

func FindOrganization(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Organization, error)

FindOrganization retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Organization) AddEnvironments

func (o *Organization) AddEnvironments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Environment) error

AddEnvironments adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.Environments. Sets related.R.Organization appropriately.

func (*Organization) AddMembers

func (o *Organization) AddMembers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Member) error

AddMembers adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.Members. Sets related.R.Organization appropriately.

func (*Organization) AddOrgAPIKeys

func (o *Organization) AddOrgAPIKeys(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*APIKey) error

AddOrgAPIKeys adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.OrgAPIKeys. Sets related.R.Org appropriately.

func (*Organization) AddOrgEventTypes

func (o *Organization) AddOrgEventTypes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EventType) error

AddOrgEventTypes adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.OrgEventTypes. Sets related.R.Org appropriately.

func (*Organization) AddOrgMessages

func (o *Organization) AddOrgMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error

AddOrgMessages adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.OrgMessages. Sets related.R.Org appropriately.

func (*Organization) Delete

func (o *Organization) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single Organization record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Organization) Environments

func (o *Organization) Environments(mods ...qm.QueryMod) environmentQuery

Environments retrieves all the environment's Environments with an executor.

func (*Organization) Exists

func (o *Organization) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Organization row exists.

func (*Organization) Insert

func (o *Organization) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Organization) Members

func (o *Organization) Members(mods ...qm.QueryMod) memberQuery

Members retrieves all the member's Members with an executor.

func (*Organization) OrgAPIKeys

func (o *Organization) OrgAPIKeys(mods ...qm.QueryMod) apiKeyQuery

OrgAPIKeys retrieves all the api_key's APIKeys with an executor via org_id column.

func (*Organization) OrgEventTypes

func (o *Organization) OrgEventTypes(mods ...qm.QueryMod) eventTypeQuery

OrgEventTypes retrieves all the event_type's EventTypes with an executor via org_id column.

func (*Organization) OrgMessages

func (o *Organization) OrgMessages(mods ...qm.QueryMod) messageQuery

OrgMessages retrieves all the message's Messages with an executor via org_id column.

func (*Organization) Reload

func (o *Organization) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Organization) Update

func (o *Organization) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Organization. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Organization) Upsert

func (o *Organization) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type OrganizationHook

type OrganizationHook func(context.Context, boil.ContextExecutor, *Organization) error

OrganizationHook is the signature for custom Organization hook methods

type OrganizationSlice

type OrganizationSlice []*Organization

OrganizationSlice is an alias for a slice of pointers to Organization. This should almost always be used instead of []Organization.

func (OrganizationSlice) DeleteAll

func (o OrganizationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*OrganizationSlice) ReloadAll

func (o *OrganizationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (OrganizationSlice) UpdateAll

func (o OrganizationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

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

Jump to

Keyboard shortcuts

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