Documentation ¶
Index ¶
- func AvgResponseTime(ctx context.Context) (float64, error)
- func DailyMonitorsCount(ctx context.Context) (int, error)
- func DailyRequestsCount(ctx context.Context) (int, error)
- func DailyUsersCount(ctx context.Context) (int, error)
- func DatabaseConnections(ctx context.Context) (int, error)
- func DisplayUserCounts(counts []UserCount)
- func DisplayUserTimes(users []UserTime)
- func DisplayUsers(users []User)
- func HourlyMonitorsCount(ctx context.Context) (int, error)
- func HourlyRequestsCount(ctx context.Context) (int, error)
- func HourlyUsersCount(ctx context.Context) (int, error)
- func MonitorsCount(ctx context.Context, interval string) (int, error)
- func MonthlyMonitorsCount(ctx context.Context) (int, error)
- func MonthlyRequestsCount(ctx context.Context) (int, error)
- func MonthlyUsersCount(ctx context.Context) (int, error)
- func RequestsCount(ctx context.Context, interval string) (int, error)
- func TableColumnSize(ctx context.Context, table, column string) (string, string, float64, error)
- func TableSize(ctx context.Context, table string) (string, error)
- func TestAvgResponseTime(t *testing.T)
- func TestDailyRequests(t *testing.T)
- func TestDailyRequestsCount(t *testing.T)
- func TestLocations(t *testing.T)
- func TestMonthlyRequests(t *testing.T)
- func TestMonthlyRequestsCount(t *testing.T)
- func TestMonthlyUserRequests(t *testing.T)
- func TestRequests(t *testing.T)
- func TestRequestsCount(t *testing.T)
- func TestTopFrameworks(t *testing.T)
- func TestTopIPAddresses(t *testing.T)
- func TestTopUserAgents(t *testing.T)
- func TestUserRequests(t *testing.T)
- func TestUserRequestsCount(t *testing.T)
- func TestWeeklyRequests(t *testing.T)
- func TestWeeklyRequestsCount(t *testing.T)
- func TestWeeklyUserRequests(t *testing.T)
- func TotalMonitorsCount(ctx context.Context) (int, error)
- func TotalRequestsCount(ctx context.Context) (int, error)
- func TotalUsersCount(ctx context.Context) (int, error)
- func UsersCount(ctx context.Context, interval string) (int, error)
- func WeeklyMonitorsCount(ctx context.Context) (int, error)
- func WeeklyRequestsCount(ctx context.Context) (int, error)
- func WeeklyUsersCount(ctx context.Context) (int, error)
- type ColumnValueCount
- func ColumnValuesCount[T any](ctx context.Context, column string) ([]ColumnValueCount[T], error)
- func TopFrameworks(ctx context.Context) ([]ColumnValueCount[int], error)
- func TopIPAddresses(ctx context.Context) ([]ColumnValueCount[string], error)
- func TopLocations(ctx context.Context) ([]ColumnValueCount[string], error)
- func TopUserAgents(ctx context.Context) ([]ColumnValueCount[string], error)
- type MonitorRow
- func DailyMonitors(ctx context.Context) ([]MonitorRow, error)
- func HourlyMonitors(ctx context.Context) ([]MonitorRow, error)
- func Monitors(ctx context.Context, interval string) ([]MonitorRow, error)
- func MonthlyMonitors(ctx context.Context) ([]MonitorRow, error)
- func TotalMonitors(ctx context.Context) ([]MonitorRow, error)
- func WeeklyMonitors(ctx context.Context) ([]MonitorRow, error)
- type RequestRow
- func DailyRequests(ctx context.Context) ([]RequestRow, error)
- func HourlyRequests(ctx context.Context) ([]RequestRow, error)
- func MonthlyRequests(ctx context.Context) ([]RequestRow, error)
- func Requests(ctx context.Context, interval string) ([]RequestRow, error)
- func TotalRequests(ctx context.Context) ([]RequestRow, error)
- func WeeklyRequests(ctx context.Context) ([]RequestRow, error)
- type RequestsColumnSizes
- type User
- type UserCount
- func DailyUserMonitors(ctx context.Context) ([]UserCount, error)
- func DailyUserRequests(ctx context.Context) ([]UserCount, error)
- func HourlyUserMonitors(ctx context.Context) ([]UserCount, error)
- func HourlyUserRequests(ctx context.Context) ([]UserCount, error)
- func MonthlyUserMonitors(ctx context.Context) ([]UserCount, error)
- func MonthlyUserRequests(ctx context.Context) ([]UserCount, error)
- func TotalUserMonitors(ctx context.Context) ([]UserCount, error)
- func TotalUserRequests(ctx context.Context) ([]UserCount, error)
- func UserMonitors(ctx context.Context, interval string) ([]UserCount, error)
- func UserRequests(ctx context.Context, interval string) ([]UserCount, error)
- func UserRequestsOverLimit(ctx context.Context, limit int) ([]UserCount, error)
- func WeeklyUserMonitors(ctx context.Context) ([]UserCount, error)
- func WeeklyUserRequests(ctx context.Context) ([]UserCount, error)
- type UserRow
- func DailyUsers(ctx context.Context) ([]UserRow, error)
- func HourlyUsers(ctx context.Context) ([]UserRow, error)
- func MonthlyUsers(ctx context.Context) ([]UserRow, error)
- func TotalUsers(ctx context.Context) ([]UserRow, error)
- func Users(ctx context.Context, interval string) ([]UserRow, error)
- func WeeklyUsers(ctx context.Context) ([]UserRow, error)
- type UserTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayUserCounts ¶
func DisplayUserCounts(counts []UserCount)
func DisplayUserTimes ¶
func DisplayUserTimes(users []UserTime)
func DisplayUsers ¶
func DisplayUsers(users []User)
func TableColumnSize ¶
func TestAvgResponseTime ¶
func TestDailyRequests ¶
func TestDailyRequestsCount ¶
func TestLocations ¶
func TestMonthlyRequests ¶
func TestMonthlyUserRequests ¶
func TestRequests ¶
func TestRequestsCount ¶
func TestTopFrameworks ¶
func TestTopIPAddresses ¶
func TestTopUserAgents ¶
func TestUserRequests ¶
func TestUserRequestsCount ¶
func TestWeeklyRequests ¶
func TestWeeklyRequestsCount ¶
func TestWeeklyUserRequests ¶
Types ¶
type ColumnValueCount ¶
func ColumnValuesCount ¶
func TopFrameworks ¶
func TopFrameworks(ctx context.Context) ([]ColumnValueCount[int], error)
func TopIPAddresses ¶
func TopIPAddresses(ctx context.Context) ([]ColumnValueCount[string], error)
func TopLocations ¶
func TopLocations(ctx context.Context) ([]ColumnValueCount[string], error)
func TopUserAgents ¶
func TopUserAgents(ctx context.Context) ([]ColumnValueCount[string], error)
type MonitorRow ¶
type MonitorRow struct { APIKey string `json:"api_key"` URL string `json:"url"` Secure bool `json:"secure"` Ping bool `json:"ping"` CreatedAt time.Time `json:"created_at"` }
func DailyMonitors ¶
func DailyMonitors(ctx context.Context) ([]MonitorRow, error)
func HourlyMonitors ¶
func HourlyMonitors(ctx context.Context) ([]MonitorRow, error)
func MonthlyMonitors ¶
func MonthlyMonitors(ctx context.Context) ([]MonitorRow, error)
func TotalMonitors ¶
func TotalMonitors(ctx context.Context) ([]MonitorRow, error)
func WeeklyMonitors ¶
func WeeklyMonitors(ctx context.Context) ([]MonitorRow, error)
type RequestRow ¶
type RequestRow struct { RequestID int `json:"request_id"` APIKey string `json:"api_key"` Path string `json:"path"` Hostname sql.NullString `json:"hostname"` IPAddress sql.NullString `json:"ip_address"` Location sql.NullString `json:"location"` UserAgentID sql.NullInt64 `json:"user_agent_id"` Method int16 `json:"method"` Status int16 `json:"status"` ResponseTime int16 `json:"response_time"` Framework int16 `json:"framework"` CreatedAt time.Time `json:"created_at"` }
func DailyRequests ¶
func DailyRequests(ctx context.Context) ([]RequestRow, error)
func HourlyRequests ¶
func HourlyRequests(ctx context.Context) ([]RequestRow, error)
func MonthlyRequests ¶
func MonthlyRequests(ctx context.Context) ([]RequestRow, error)
func TotalRequests ¶
func TotalRequests(ctx context.Context) ([]RequestRow, error)
func WeeklyRequests ¶
func WeeklyRequests(ctx context.Context) ([]RequestRow, error)
type RequestsColumnSizes ¶
type RequestsColumnSizes struct { RequestID string `json:"request_id"` APIKey string `json:"api_key"` Path string `json:"path"` Hostname string `json:"hostname"` IPAddress string `json:"ip_address"` Location string `json:"location"` UserAgent string `json:"user_agent"` Method string `json:"method"` Status string `json:"status"` ResponseTime string `json:"response_time"` Framework string `json:"framework"` CreatedAt string `json:"created_at"` }
func RequestsColumnSize ¶
func RequestsColumnSize(ctx context.Context) (RequestsColumnSizes, error)
func (RequestsColumnSizes) Display ¶
func (r RequestsColumnSizes) Display()
type User ¶
type UserCount ¶
func UserRequestsOverLimit ¶
type UserRow ¶
Click to show internal directories.
Click to hide internal directories.