Versions in this module Expand all Collapse all v0 v0.1.0 Jul 24, 2026 Changes in this version + const EventAccountTokenExpired + const EventImportCompleted + const EventImportFailed + const EventPostError + const EventPostPublished + const EventTest + var AccountEncoderField = FieldAccounts + var DefaultFanout = map[App][]AccountID + var ErrEmptySecret = errors.New("outstand webhook: empty signing secret") + var ErrMalformedSig = errors.New(`outstand webhook: signature header not "sha256=<hex>"`) + var ErrMissingSig = errors.New("outstand webhook: missing signature header") + var ErrSignatureFailed = errors.New("outstand webhook: signature mismatch") + func IsSignatureError(err error) bool + type APIError struct + Body string + Op string + Status int + func (e *APIError) Error() string + type Account struct + ID AccountID + IsActive int + Network string + Username string + type AccountID string + const AccountMVFacebook + const AccountMVLinkedIn + const AccountPeterPersonalLinkedIn + const AccountPigfoxFacebook + const AccountPigfoxLinkedIn + type AccountResult struct + AccountID AccountID + Error string + PlatformPostID string + Status string + type App string + const AppMarketVerdict + const AppPigfox + func OwnedBy(id AccountID) (App, bool) + type Client struct + func NewClient(apiKey string) *Client + func (c *Client) CheckAccountHealth(ctx context.Context, id AccountID) (bool, error) + func (c *Client) CreatePost(ctx context.Context, in CreatePostInput) (Post, error) + func (c *Client) DeletePost(ctx context.Context, id string) error + func (c *Client) GetPost(ctx context.Context, id string) (Post, error) + func (c *Client) ListAccounts(ctx context.Context) ([]Account, error) + type Container struct + Content string + type CreatePostInput struct + AccountIDs []AccountID + Containers []Container + Facebook *FacebookOptions + LinkedIn *LinkedInOptions + ScheduledAt *time.Time + type Event struct + AccountID AccountID + PostID string + Raw json.RawMessage + Results []AccountResult + Timestamp string + Type string + func ConstructEvent(rawBody []byte, sigHeader, secret string) (Event, error) + func (e *Event) UnmarshalJSON(b []byte) error + type FacebookOptions struct + type FieldNameMode int + const FieldAccounts + const FieldSocialAccountIDs + type Gateway interface + CheckAccountHealth func(ctx context.Context, id AccountID) (bool, error) + CreatePost func(ctx context.Context, in CreatePostInput) (Post, error) + DeletePost func(ctx context.Context, id string) error + GetPost func(ctx context.Context, id string) (Post, error) + ListAccounts func(ctx context.Context) ([]Account, error) + type LinkedInOptions struct + Visibility string + type Post struct + ID string + SocialAccounts []PostAccount + Status string + TargetedAccounts []AccountID + type PostAccount struct + Error string + PlatformPostID string + PlatformPostURL string + PublishedAt string + Status string