Documentation ¶
Index ¶
Constants ¶
View Source
const ( IOS = sns.PlatformAPNS IOSSandbox = sns.PlatformAPNSSandbox Android = sns.PlatformGCM )
Ecosystem supported for a Platform.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct { Active bool AppID uint64 ARN string Deleted bool Ecosystem sns.Platform ID uint64 Name string Scheme string CreatedAt time.Time UpdatedAt time.Time }
Platform represents an ecosystem like Android or iOS for user device management.
type QueryOptions ¶
type QueryOptions struct { Active *bool ARNs []string AppIDs []uint64 Deleted *bool Ecosystems []sns.Platform IDs []uint64 }
QueryOptions to narrow-down platform queries.
type Service ¶
type Service interface { service.Lifecycle Put(namespace string, platform *Platform) (*Platform, error) Query(namespace string, opts QueryOptions) (List, error) }
Service for platform interactions.
func PostgresService ¶
PostgresService returns a Postgres based Service implementation.
type ServiceMiddleware ¶
ServiceMiddleware is a chainable behaviour modifier for Service.
Click to show internal directories.
Click to hide internal directories.