Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceTypePreScreening = 1 ServiceTypePedigree = 2 ServiceTypeCPSCapsule = 3 ServiceTypeCPSCapsuleIndieMintGem = 4 ServiceTypeCPSCapsuleSignatureCollection = 5 ServiceTypeCPSCapsuleYouGrade = 6 )
The following were copied from `app/comicsub/datastore/datastore.go`.
View Source
const ( SectionA = 788346 SectionB = 26649 SectionD = 1 MaxCountPerSectionD = 9_999 MaxUserSubmissionsCountPerSeciton = 9_998 )
View Source
const (
UserRoleRoot = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { Classify(specialCollection int8, serviceType int8, userRoleID int8) (string, error) Generate(specialCollection int8, serviceType int8, userRoleID int8, count int64) (string, error) }
Provider provides an interface for abstracting `CPS Registry Number`.
func NewProvider ¶
func NewProvider() Provider
NewProvider function is a contructor that returns the default `CPS Registry Number` provider.
Click to show internal directories.
Click to hide internal directories.