Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SecretKey is the configuration name for Stripe secret key. SecretKey = "secretKey" // ResourceName is the configuration name for Stripe resource. ResourceName = "resourceName" // BatchSize is the configuration name for the number of objects in the batch returned from Stripe. BatchSize = "batchSize" // BatchSizeDefault is the default value of the batch size. BatchSizeDefault = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SecretKey string `validate:"required"` ResourceName string `validate:"required,resource_name"` BatchSize int `validate:"gte=1,lte=100,omitempty"` }
A Config represents the configuration needed for Stripe.
Click to show internal directories.
Click to hide internal directories.