models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: BSD-3-Clause Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapPonzuModelNameSpace

func WrapPonzuModelNameSpace(name tokens.RepositoryToken) string

Types

type AnalyticsHTTPRequestMetadataDocument

type AnalyticsHTTPRequestMetadataDocument struct {
	*entities.AnalyticsHTTPRequestMetadata
}

func (*AnalyticsHTTPRequestMetadataDocument) Scan

func (document *AnalyticsHTTPRequestMetadataDocument) Scan(src interface{}) error

func (*AnalyticsHTTPRequestMetadataDocument) Value

func (document *AnalyticsHTTPRequestMetadataDocument) Value() (interface{}, error)

type AnalyticsHTTPRequestMetadataModel

type AnalyticsHTTPRequestMetadataModel struct{}

func (*AnalyticsHTTPRequestMetadataModel) Name

func (*AnalyticsHTTPRequestMetadataModel) NewEntity

func (*AnalyticsHTTPRequestMetadataModel) NewEntity() interface{}

func (*AnalyticsHTTPRequestMetadataModel) ToDocument

func (model *AnalyticsHTTPRequestMetadataModel) ToDocument(entity interface{}) DocumentInterface

type AnalyticsMetricDocument

type AnalyticsMetricDocument struct {
	*entities.AnalyticsMetric
}

func (*AnalyticsMetricDocument) Scan

func (document *AnalyticsMetricDocument) Scan(src interface{}) error

func (*AnalyticsMetricDocument) Value

func (document *AnalyticsMetricDocument) Value() (interface{}, error)

type AnalyticsMetricModel

type AnalyticsMetricModel struct{}

func (*AnalyticsMetricModel) Name

func (*AnalyticsMetricModel) Name() string

func (*AnalyticsMetricModel) NewEntity

func (*AnalyticsMetricModel) NewEntity() interface{}

func (*AnalyticsMetricModel) ToDocument

func (model *AnalyticsMetricModel) ToDocument(entity interface{}) DocumentInterface

type ConfigDocument

type ConfigDocument struct {
	*entities.Config
}

func (*ConfigDocument) Scan

func (document *ConfigDocument) Scan(src interface{}) error

func (*ConfigDocument) Value

func (document *ConfigDocument) Value() (interface{}, error)

type ConfigModel

type ConfigModel struct{}

func (*ConfigModel) Name

func (*ConfigModel) Name() string

func (*ConfigModel) NewEntity

func (*ConfigModel) NewEntity() interface{}

func (*ConfigModel) ToDocument

func (model *ConfigModel) ToDocument(entity interface{}) DocumentInterface

type CredentialHashDocument

type CredentialHashDocument struct {
	*entities.CredentialHash
}

func (*CredentialHashDocument) Scan

func (document *CredentialHashDocument) Scan(src interface{}) error

func (*CredentialHashDocument) Value

func (document *CredentialHashDocument) Value() (interface{}, error)

type CredentialHashModel

type CredentialHashModel struct{}

func (*CredentialHashModel) Name

func (*CredentialHashModel) Name() string

func (*CredentialHashModel) NewEntity

func (*CredentialHashModel) NewEntity() interface{}

func (*CredentialHashModel) ToDocument

func (model *CredentialHashModel) ToDocument(entity interface{}) DocumentInterface

type DocumentInterface

type DocumentInterface interface {
	Value() (interface{}, error)
	Scan(src interface{}) error
}

type Model

type Model struct {
	ID        uuid.UUID         `json:"id"`
	CreatedAt time.Time         `json:"created_at"`
	UpdatedAt time.Time         `json:"updated_at"`
	DeletedAt time.Time         `json:"deleted_at"`
	Document  DocumentInterface `json:"document"`
}

type ModelInterface

type ModelInterface interface {
	Name() string
	ToDocument(entity interface{}) DocumentInterface
	NewEntity() interface{}
}

func GetPonzuModels

func GetPonzuModels() []ModelInterface

type RecoveryKeyDocument

type RecoveryKeyDocument struct {
	*entities.RecoveryKey
}

func (*RecoveryKeyDocument) Scan

func (document *RecoveryKeyDocument) Scan(src interface{}) error

func (*RecoveryKeyDocument) Value

func (document *RecoveryKeyDocument) Value() (interface{}, error)

type RecoveryKeyModel

type RecoveryKeyModel struct{}

func (*RecoveryKeyModel) Name

func (*RecoveryKeyModel) Name() string

func (*RecoveryKeyModel) NewEntity

func (*RecoveryKeyModel) NewEntity() interface{}

func (*RecoveryKeyModel) ToDocument

func (model *RecoveryKeyModel) ToDocument(entity interface{}) DocumentInterface

type SlugDocument

type SlugDocument struct {
	*entities.Slug
}

func (*SlugDocument) Scan

func (document *SlugDocument) Scan(src interface{}) error

func (*SlugDocument) Value

func (document *SlugDocument) Value() (interface{}, error)

type SlugModel

type SlugModel struct{}

func (*SlugModel) Name

func (*SlugModel) Name() string

func (*SlugModel) NewEntity

func (*SlugModel) NewEntity() interface{}

func (*SlugModel) ToDocument

func (model *SlugModel) ToDocument(entity interface{}) DocumentInterface

type UploadDocument

type UploadDocument struct {
	*entities.FileUpload
}

func (*UploadDocument) Scan

func (document *UploadDocument) Scan(src interface{}) error

func (*UploadDocument) Value

func (document *UploadDocument) Value() (interface{}, error)

type UploadModel

type UploadModel struct{}

func (*UploadModel) Name

func (*UploadModel) Name() string

func (*UploadModel) NewEntity

func (*UploadModel) NewEntity() interface{}

func (*UploadModel) ToDocument

func (model *UploadModel) ToDocument(entity interface{}) DocumentInterface

type UserDocument

type UserDocument struct {
	*entities.User
}

func (*UserDocument) Scan

func (document *UserDocument) Scan(src interface{}) error

func (*UserDocument) Value

func (document *UserDocument) Value() (interface{}, error)

type UserModel

type UserModel struct{}

func (*UserModel) Name

func (*UserModel) Name() string

func (*UserModel) NewEntity

func (*UserModel) NewEntity() interface{}

func (*UserModel) ToDocument

func (model *UserModel) ToDocument(entity interface{}) DocumentInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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