Documentation
¶
Index ¶
- Constants
- func AmqpConfig() amqp.Config
- type CreateShortLink
- type CreateShortLinkResult
- type DeleteShortLink
- type Error
- type GetShortLink
- type PaginateShortLinks
- type Paginator
- type SendNotification
- type ShortLink
- type ShortLinksPagination
- type UpdateShortLink
- type UpdateShortLinkResult
- type ValidateShortLinkLocation
- type ValidateShortLinkToken
- type ValidationResult
Constants ¶
View Source
const ( AmqpShortLinkValidateToken = "short_link.validate.token" AmqpShortLinkValidateLocation = "short_link.validate.location" AmqpShortLinkWriteCreate = "short_link.write.create" AmqpShortLinkWriteUpdate = "short_link.write.update" AmqpShortLinkWriteDelete = "short_link.write.delete" AmqpShortLinkReadGet = "short_link.read.get" AmqpShortLinkReadPaginate = "short_link.read.paginate" )
View Source
const ( AppLigilo = "com.ligilo" AppJurnalo = "com.jurnalo" )
View Source
const (
RegexHttpUrl = "https?://(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)"
)
Variables ¶
This section is empty.
Functions ¶
func AmqpConfig ¶ added in v0.12.0
Types ¶
type CreateShortLink ¶ added in v0.4.0
type CreateShortLinkResult ¶ added in v0.9.0
type CreateShortLinkResult struct {
Success bool
Message string
TokenValidation ValidationResult
LocationValidation ValidationResult
ShortLink ShortLink
}
type DeleteShortLink ¶ added in v0.4.0
type DeleteShortLink struct {
WithToken string `json:"with_token"`
}
type GetShortLink ¶ added in v0.10.0
type GetShortLink struct {
WithToken string `json:"with_token"`
}
type PaginateShortLinks ¶ added in v0.10.0
type PaginateShortLinks struct {
Paginator `json:"paginator"`
}
type SendNotification ¶
type SendNotification struct {
Message string `json:"message"`
}
type ShortLinksPagination ¶ added in v0.10.0
type ShortLinksPagination struct {
Items []ShortLink `json:"items"`
}
type UpdateShortLink ¶ added in v0.4.0
type UpdateShortLinkResult ¶ added in v0.9.0
type UpdateShortLinkResult struct {
Success bool
Message string
LocationValidation ValidateShortLinkLocation
ShortLink ShortLink
}
type ValidateShortLinkLocation ¶ added in v0.9.0
type ValidateShortLinkLocation struct {
Location string `json:"location"`
}
type ValidateShortLinkToken ¶ added in v0.8.0
type ValidateShortLinkToken struct {
Token string `json:"token"`
}
type ValidationResult ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.