Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
gorm.Model
MessageID string `gorm:"index:message_id,not null"`
ClientID string `gorm:"index:message_fetch,not null,default:''"`
ProjectID uint64 `gorm:"index:message_fetch,not null"`
ProjectVersion string `gorm:"index:message_fetch,not null,default:'0.0'"`
Data []byte `gorm:"size:4096"`
InternalTaskID string `gorm:"index:internal_task_id,not null,default:''"`
}
type Persistence ¶
type Persistence struct {
// contains filtered or unexported fields
}
func NewPersistence ¶
func NewPersistence(pgEndpoint string) (*Persistence, error)
func (*Persistence) FetchMessage ¶
func (p *Persistence) FetchMessage(messageID string) ([]*Message, error)
func (*Persistence) FetchTask ¶
func (p *Persistence) FetchTask(internalTaskID string) ([]*Task, error)
func (*Persistence) Save ¶
func (p *Persistence) Save(msg *Message, aggregationAmount uint, sk *ecdsa.PrivateKey) error
Click to show internal directories.
Click to hide internal directories.