cpsrn

package
v0.0.0-...-9d843bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL