Versions in this module Expand all Collapse all v0 v0.2.0 Oct 23, 2026 v0.1.0 Sep 22, 2026 Changes in this version + const HostURL + const Version + type App struct + CreatedAt time.Time + Environment string + ID string + Name string + UpdatedAt time.Time + type Client struct + HTTPClient *http.Client + HostURL string + Token string + func NewClient(host, token string) *Client + func (c *Client) CreateApp(ctx context.Context, input CreateAppInput) (*App, error) + func (c *Client) CreateAppLogSource(ctx context.Context, input CreateAppLogSourceInput) (*LogSource, error) + func (c *Client) CreateAppLogTrigger(ctx context.Context, input CreateAppLogTriggerInput) (*LogTrigger, error) + func (c *Client) CreateAppLogView(ctx context.Context, input CreateAppLogViewInput) (*LogView, error) + func (c *Client) DeleteApp(ctx context.Context, appID string) (*App, error) + func (c *Client) DeleteAppLogSource(ctx context.Context, input DeleteAppLogSourceInput) (*LogSource, error) + func (c *Client) DeleteAppLogTrigger(ctx context.Context, input DeleteAppLogTriggerInput) (*LogTrigger, error) + func (c *Client) DeleteAppLogView(ctx context.Context, input DeleteAppLogViewInput) (*LogView, error) + func (c *Client) GetApp(ctx context.Context, id string) (*App, error) + func (c *Client) GetAppLogSource(ctx context.Context, appID string, logSourceID string) (*LogSource, error) + func (c *Client) GetAppLogSources(ctx context.Context, appID string) ([]LogSource, error) + func (c *Client) GetAppLogTriggers(ctx context.Context, appID string) ([]LogTrigger, error) + func (c *Client) GetAppLogView(ctx context.Context, appID string, logViewID string) (*LogView, error) + func (c *Client) GetAppLogViews(ctx context.Context, appID string) ([]LogView, error) + func (c *Client) GetAppNotifiers(ctx context.Context, appID string) ([]Notifier, error) + func (c *Client) GetOrganization(ctx context.Context, slug string) (*Organization, error) + func (c *Client) GetOrganizationApps(ctx context.Context, slug string) ([]App, error) + func (c *Client) GetViewer(ctx context.Context) (*Viewer, error) + func (c *Client) Mutate(ctx context.Context, mutation string, variables map[string]any, out any) error + func (c *Client) Query(ctx context.Context, query string, variables map[string]any, out any) error + func (c *Client) UpdateAppLogSource(ctx context.Context, input UpdateAppLogSourceInput) (*LogSource, error) + func (c *Client) UpdateAppLogTrigger(ctx context.Context, input UpdateAppLogTriggerInput) (*LogTrigger, error) + func (c *Client) UpdateAppLogView(ctx context.Context, input UpdateAppLogViewInput) (*LogView, error) + type CreateAppInput struct + Environment string + Name string + OrganizationSlug string + type CreateAppLogSourceInput struct + AppID string + Fmt LogSourceFormat + Name string + Type string + type CreateAppLogTriggerInput struct + AppID string + Description *string + Name string + NotificationOptions *LogTriggerNotificationOption + NotificationTriggerValue *int32 + NotifierIDs []string + Query string + Severities []LogSeverity + SourceIDs []string + type CreateAppLogViewInput struct + AppID string + Columns []string + LineHeight *string + Name string + Query *string + Severities []LogSeverity + SourceIDs []string + type DeleteAppLogSourceInput struct + AppID string + LogSourceID string + type DeleteAppLogTriggerInput struct + AppID string + LogTriggerID string + type DeleteAppLogViewInput struct + AppID string + LogViewID string + type Error struct + Message string + type Errors []Error + func (e Errors) Error() string + type HTTPError struct + Body []byte + Header http.Header + Status string + StatusCode int + func (e *HTTPError) Error() string + type LogSeverity string + const SeverityAlert + const SeverityCritical + const SeverityDebug + const SeverityError + const SeverityFatal + const SeverityInfo + const SeverityNotice + const SeverityTrace + const SeverityUnknown + const SeverityWarn + type LogSource struct + Fmt LogSourceFormat + ID string + Key string + Name string + Type string + type LogSourceFormat string + const LogSourceFormatAutodetect + const LogSourceFormatJSON + const LogSourceFormatLogfmt + const LogSourceFormatPlaintext + type LogTrigger struct + ActionType LogTriggerActionType + Description string + ID string + Name string + NotificationOptions LogTriggerNotificationOption + NotificationTriggerValue int32 + Notifiers []Notifier + Order int32 + Query string + Severities []LogSeverity + SourceIDs []string + func (t *LogTrigger) UnmarshalJSON(data []byte) error + type LogTriggerActionType string + const ActionTypeFilter + const ActionTypeMetrics + const ActionTypeTrigger + type LogTriggerNotificationOption string + const NotificationOptionAlways + const NotificationOptionFirstAfterClose + const NotificationOptionFirstInDeploy + const NotificationOptionNever + const NotificationOptionNthInDay + const NotificationOptionNthInHour + type LogView struct + Columns []string + ID string + LineHeight string + Name string + Query string + Severities []LogSeverity + SourceIDs []string + func (v *LogView) UnmarshalJSON(data []byte) error + type Notifier struct + ID string + Icon string + Name string + type Organization struct + ID string + Name string + Slug string + type UpdateAppLogSourceInput struct + AppID string + Fmt LogSourceFormat + LogSourceID string + Name string + type UpdateAppLogTriggerInput struct + AppID string + Description *string + LogTriggerID string + Name *string + NotificationOptions *LogTriggerNotificationOption + NotificationTriggerValue *int32 + NotifierIDs []string + Query *string + Severities []LogSeverity + SourceIDs []string + type UpdateAppLogViewInput struct + AppID string + Columns []string + LineHeight *string + LogViewID string + Name *string + Query *string + Severities []LogSeverity + SourceIDs []string + type Viewer struct + Email string + ID string + Name string