Documentation ¶
Index ¶
- Constants
- Variables
- func DirNormalize(path string) (string, error)
- func MessageSplit(message string, chunkLimit int) []string
- func MultiReaderCreate(inReader io.Reader, outReadersCount int, errch chan error) []io.Reader
- func PathNormalize(path string) (string, error)
- func TemplateExec(tpl string, d interface{}) (string, error)
- type IDName
- type IDNameLocale
- type MultiCloser
Constants ¶
View Source
const IDNameLocaleDefaultLang = "default"
View Source
const OnPageDefault = 5
Variables ¶
View Source
var ( ErrNotFound = errors.New("entity not found") ErrUserCtxExtract = errors.New("can not extract user context in schedule message handler") ErrAPIKey = errors.New("incorrect api key") ErrZeroLen = errors.New("zero len payload") ErrForbidden = errors.New("forbidden") ErrMalformedData = errors.New("malformed data") ErrUserNotSet = errors.New("user not set") ErrArgSuccessExit = errors.New("arg success exit") )
Functions ¶
func DirNormalize ¶
DirNormalize normalizes the directory path
func MessageSplit ¶
MessageSplit splits message to chunks each limited by chunkLimit
func MultiReaderCreate ¶
func PathNormalize ¶
PathNormalize normalizes the path
func TemplateExec ¶
TemplateExec makes message from given template `tpl` and data `d`
Types ¶
type IDNameLocale ¶ added in v1.3.0
func (*IDNameLocale) ValueGet ¶ added in v1.3.0
func (idn *IDNameLocale) ValueGet(lang string) *string
type MultiCloser ¶
type MultiCloser struct {
// contains filtered or unexported fields
}
func NewMultiCloser ¶
func NewMultiCloser(closers []io.Closer) *MultiCloser
func (*MultiCloser) Close ¶
func (m *MultiCloser) Close() error
Click to show internal directories.
Click to hide internal directories.