Documentation ¶
Index ¶
- Variables
- func DailyStringToTime(s string) time.Time
- func GenerateBadge(leftText, leftBgColor, rightText, rightBgColor string, edgeFlat bool) badge.Badge
- func GetRoot() string
- func HourlyStringToTime(s string) time.Time
- func InitSentry(sentryDSN, environment, release, hostname string, stack, debug bool) error
- func MonthlyStringToTime(s string) time.Time
- func NewLogger(dir, filename string) (*log.Logger, error)
- func ParseURL(s string) (schema, host, port, path, query, fragment string, err error)
- func SentryError(err error)
- func SentryErrorWithContext(err error, ctx echo.Context, info map[string]string)
- func StringInSlice(str string, list []string) bool
- func StringToTime(s string) time.Time
- func TimeToDailyStringFormat(t time.Time) string
- func TimeToHourlyStringFormat(t time.Time) string
- func TimeToMonthlyStringFormat(t time.Time) string
- func TimeToString(t time.Time) string
- func TimeToYearlyStringFormat(t time.Time) string
- func TimestampByMaxTime() int64
- func YearlyStringToTime(s string) time.Time
Constants ¶
This section is empty.
Variables ¶
var (
ErrSentryEmptyParam = errors.New("[err] sentry empty params")
)
var (
ErrorEmptyParams = errors.New("[err] empty params")
)
Functions ¶
func DailyStringToTime ¶
DailyStringToTime converts string formatted daily layout to time.
func GenerateBadge ¶
func GenerateBadge(leftText, leftBgColor, rightText, rightBgColor string, edgeFlat bool) badge.Badge
GenerateBadge makes Flat-Badge struct which is used go-counter-badge/badge.
func HourlyStringToTime ¶
HourlyStringToTime converts string formatted hourly layout to time.
func InitSentry ¶
InitSentry is to initialize Sentry setting.
func MonthlyStringToTime ¶
MonthlyStringToTime converts string formatted monthly layout to time.
func SentryErrorWithContext ¶
ErrorWithEcho sends an error with the Echo of context information to the Sentry.
func StringInSlice ¶
StringInSlice checks a string element is included to string array.
func TimeToDailyStringFormat ¶
TimeToDailyStringFormat converts time to string formatted daily layout
func TimeToHourlyStringFormat ¶
TimeToHourlyStringFormat converts time to string formatted hourly layout
func TimeToMonthlyStringFormat ¶
TimeToMonthlyStringFormat converts time to string formatted monthly layout.
func TimeToYearlyStringFormat ¶
TimeToYearlyStringFormat converts time to string formatted yearly layout.
func YearlyStringToTime ¶
YearlyStringToTime converts string formatted yearly layout to time.
Types ¶
This section is empty.