Documentation ¶
Index ¶
- func CheckFilename(filename string) (err error)
- func CreateShortURL(ctx context.Context, isExist func(context.Context, string) bool) (shortURL string, err error)
- func CreateTLSCert(certPath, keyPath string) error
- func IsURL(str string) bool
- func NewShortURL() string
- func WriteCypherToFile(filepath string, cypherType string, cypher []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFilename ¶
func CreateShortURL ¶
func CreateShortURL(ctx context.Context, isExist func(context.Context, string) bool) (shortURL string, err error)
CreateShortID создает короткий ID с проверкой на валидность
func CreateTLSCert ¶
func NewShortURL ¶
func NewShortURL() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.