Versions in this module Expand all Collapse all v0 v0.5.0 Feb 2, 2024 Changes in this version type Paste + func PasteContentsByID(client *gqlclient.Client, ctx context.Context, id string) (paste *Paste, err error) v0.4.0 Nov 22, 2023 Changes in this version type Entity + Value EntityValue + func (base *Entity) UnmarshalJSON(b []byte) error + type EntityValue interface type WebhookPayload + Value WebhookPayloadValue + func (base *WebhookPayload) UnmarshalJSON(b []byte) error + type WebhookPayloadValue interface type WebhookSubscription + Value WebhookSubscriptionValue + func (base *WebhookSubscription) UnmarshalJSON(b []byte) error + type WebhookSubscriptionValue interface v0.3.0 Apr 12, 2023 v0.2.0 Jul 25, 2022 Changes in this version + type OAuthClient struct + Uuid string type PasteCursor + func PasteContents(client *gqlclient.Client, ctx context.Context) (pastes *PasteCursor, err error) + type PasteEvent struct + Date time.Time + Event WebhookEvent + Paste *Paste + Uuid string + type UserWebhookInput struct + Events []WebhookEvent + Query string + Url string + type UserWebhookSubscription struct + Client *OAuthClient + Deliveries *WebhookDeliveryCursor + Events []WebhookEvent + Id int32 + Query string + Sample string + Url string + type WebhookDelivery struct + Date time.Time + Event WebhookEvent + RequestBody string + ResponseBody *string + ResponseHeaders *string + ResponseStatus *int32 + Subscription *WebhookSubscription + Uuid string + type WebhookDeliveryCursor struct + Cursor *Cursor + Results []WebhookDelivery + type WebhookEvent string + const WebhookEventPasteCreated + const WebhookEventPasteDeleted + const WebhookEventPasteUpdated + func ParseEvents(events []string) ([]WebhookEvent, error) + type WebhookPayload struct + Date time.Time + Event WebhookEvent + Uuid string + type WebhookSubscription struct + Client *OAuthClient + Deliveries *WebhookDeliveryCursor + Events []WebhookEvent + Id int32 + Query string + Sample string + Url string + func CreateUserWebhook(client *gqlclient.Client, ctx context.Context, config UserWebhookInput) (createUserWebhook *WebhookSubscription, err error) + func DeleteUserWebhook(client *gqlclient.Client, ctx context.Context, id int32) (deleteUserWebhook *WebhookSubscription, err error) + type WebhookSubscriptionCursor struct + Cursor *Cursor + Results []WebhookSubscription + func UserWebhooks(client *gqlclient.Client, ctx context.Context) (userWebhooks *WebhookSubscriptionCursor, err error) v0.1.0 Mar 30, 2022 Changes in this version + type AccessKind string + const AccessKindRo + const AccessKindRw + type AccessScope string + const AccessScopePastes + const AccessScopeProfile + type Cursor string + type Entity struct + CanonicalName string + Created time.Time + Id int32 + Pastes *PasteCursor + type File struct + Contents URL + Filename *string + Hash string + type Paste struct + Created time.Time + Files []*File + Id string + User *Entity + Visibility Visibility + func CreatePaste(client *gqlclient.Client, ctx context.Context, files []gqlclient.Upload, ...) (create *Paste, err error) + func Delete(client *gqlclient.Client, ctx context.Context, id string) (delete *Paste, err error) + func ShowPaste(client *gqlclient.Client, ctx context.Context, id string) (paste *Paste, err error) + func Update(client *gqlclient.Client, ctx context.Context, id string, ...) (update *Paste, err error) + type PasteCursor struct + Cursor *Cursor + Results []Paste + func PasteCompletionList(client *gqlclient.Client, ctx context.Context) (pastes *PasteCursor, err error) + func Pastes(client *gqlclient.Client, ctx context.Context) (pastes *PasteCursor, err error) + type URL string + type User struct + CanonicalName string + Created time.Time + Id int32 + Pastes *PasteCursor + Username string + type Version struct + DeprecationDate time.Time + Major int32 + Minor int32 + Patch int32 + type Visibility string + const VisibilityPrivate + const VisibilityPublic + const VisibilityUnlisted + func ParseVisibility(s string) (Visibility, error) + func (visibility Visibility) TermString() string