Documentation ¶
Index ¶
- Variables
- type AuthorizationEvent
- type AuthorizationState
- type BaseModel
- type BlockStat
- type Config
- type DeleteEvent
- type EventInterface
- type MessageEvent
- type MessageState
- type MigrationState
- type SubnetEvent
- type SubnetState
- type SubscriptionEvent
- type SubscriptionState
- type TopicEvent
- type TopicState
- type WalletEvent
- type WalletState
Constants ¶
This section is empty.
Variables ¶
View Source
var Models = []interface{}{ Config{}, TopicState{}, TopicEvent{}, MessageState{}, MessageEvent{}, AuthorizationState{}, AuthorizationEvent{}, SubscriptionState{}, SubscriptionEvent{}, BlockStat{}, SubnetState{}, SubnetEvent{}, WalletState{}, WalletEvent{}, MigrationState{}, }
Functions ¶
This section is empty.
Types ¶
type AuthorizationEvent ¶
type AuthorizationEvent struct { // Event `msgpack:",noinline"` entities.Event `msgpack:",noinline"` //IsValid bool `gorm:"default:false" json:"isVal"` // EventType int16 `json:"t"` // Payload entities.ClientPayload `json:"pld" gorm:"serializer:json" msgpack:",noinline"` BaseModel `msgpack:",noinline"` }
type AuthorizationState ¶
type AuthorizationState struct { entities.Authorization `msgpack:",noinline"` BaseModel }
func (*AuthorizationState) BeforeCreate ¶
func (d *AuthorizationState) BeforeCreate(tx *gorm.DB) (err error)
type DeleteEvent ¶
type EventInterface ¶
type EventInterface interface { }
type MessageEvent ¶
type MessageState ¶
func (*MessageState) BeforeCreate ¶
func (d *MessageState) BeforeCreate(tx *gorm.DB) (err error)
type MigrationState ¶
type SubnetEvent ¶
type SubnetState ¶
func (*SubnetState) BeforeCreate ¶
func (d *SubnetState) BeforeCreate(tx *gorm.DB) (err error)
type SubscriptionEvent ¶
type SubscriptionState ¶
type SubscriptionState struct { BaseModel `msgpack:",noinline"` entities.Subscription `msgpack:",noinline"` }
func (*SubscriptionState) BeforeCreate ¶
func (d *SubscriptionState) BeforeCreate(tx *gorm.DB) (err error)
type TopicEvent ¶
type TopicState ¶
func (*TopicState) BeforeCreate ¶
func (d *TopicState) BeforeCreate(tx *gorm.DB) (err error)
type WalletEvent ¶
type WalletState ¶
func (*WalletState) BeforeCreate ¶
func (d *WalletState) BeforeCreate(tx *gorm.DB) (err error)
Click to show internal directories.
Click to hide internal directories.