Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
NewService instantiates a new Service layer for customer
Types ¶
type Model ¶
type Model struct { gorm.Model ID uuid.UUID `json:"id" gorm:"primarykey;index;unique"` Address string `json:"address" validate:"required,btc_addr|btc_addr_bech32" gorm:"size:64;index;not null"` Message string `json:"message" validate:"required" gorm:"not null"` Nickname string `json:"nickname,omitempty" validate:"" gorm:"index;not null"` Type string `json:"type,omitempty" validate:"" gorm:"index;not null"` Link string `json:"link,omitempty" validate:""` Verified bool `json:"verified,omitempty" validate:"" gorm:"default:false"` } //@name Tag
Model of tag struct with validation
type Service ¶
type Service interface { GetTags(output bool) (tags []Model, err error) CreateTag(t *Model) (err error) GetTag(address string, output bool) (tags []Model, err error) GetTaggedCluster(address string) (clusters []TaggedCluster, err error) GetTaggedClusterSet(address string) (clusters []Model, err error) }
Service interface exports available methods for block service
type TaggedCluster ¶
Click to show internal directories.
Click to hide internal directories.