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 AbusedCluster ¶
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"` AbuseTypeID string `json:"abuse_type_id"` AbuseTypeOther string `json:"abuse_type_other"` Abuser string `gorm:"index"` Description string `json:"description"` FromCountry string `json:"from_country"` FromCountryCode string `json:"from_country_code"` } //@name Abuse
Model of abuse struct with validation
type Service ¶
type Service interface { GetAbuses(output bool) (abuses []Model, err error) CreateAbuse(abuse *Model) (err error) GetAbuse(address string, output bool) (abuses []Model, err error) GetAbusedCluster(address string) (clusters []AbusedCluster, err error) GetAbusedClusterSet(address string) (clusters []Model, err error) }
Service interface exports available methods for block service
Click to show internal directories.
Click to hide internal directories.