Documentation ¶
Index ¶
- type AccessToken
- type Account
- type CaptchaAns
- type CaptchaQue
- type DeviceInfo
- type FeatureFlag
- type FeatureRequest
- type PorterConnectionStatus
- type PorterFeatureSummary
- type PorterInstance
- type PorterInstancePrivilege
- type PorterInstanceStatus
- type PullAccountInfo
- type RefreshToken
- type ServerFeatureSummary
- type SystemType
- type User
- type UserCount
- type UserSession
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken string
type CaptchaAns ¶ added in v0.2.8
type CaptchaQue ¶ added in v0.2.8
type DeviceInfo ¶ added in v0.2.1
type DeviceInfo struct { ID model.InternalID DeviceName string SystemType SystemType SystemVersion string ClientName string ClientSourceCodeAddress string ClientVersion string }
type FeatureFlag ¶ added in v0.2.10
type FeatureFlag struct { ID string `json:"id"` Region string `json:"region"` Name string `json:"name"` Description string `json:"description"` ConfigJSONSchema string `json:"config_json_schema"` }
func (*FeatureFlag) Match ¶ added in v0.2.10
func (f *FeatureFlag) Match(request *FeatureRequest) bool
type FeatureRequest ¶ added in v0.2.10
type PorterConnectionStatus ¶ added in v0.2.3
type PorterConnectionStatus int
const ( PorterConnectionStatusUnspecified PorterConnectionStatus = iota PorterConnectionStatusConnected PorterConnectionStatusDisconnected PorterConnectionStatusActive PorterConnectionStatusActivationFailed )
type PorterFeatureSummary ¶ added in v0.2.0
type PorterFeatureSummary struct { AccountPlatforms []*FeatureFlag `json:"account_platforms"` AppInfoSources []*FeatureFlag `json:"app_info_sources"` FeedSources []*FeatureFlag `json:"feed_sources"` NotifyDestinations []*FeatureFlag `json:"notify_destinations"` FeedItemActions []*FeatureFlag `json:"feed_item_actions"` }
type PorterInstance ¶ added in v0.2.0
type PorterInstance struct { ID model.InternalID Name string Version string GlobalName string Address string FeatureSummary *PorterFeatureSummary Status PorterInstanceStatus ConnectionStatus PorterConnectionStatus }
type PorterInstancePrivilege ¶ added in v0.2.0
type PorterInstancePrivilege struct {
All bool `json:"all"`
}
type PorterInstanceStatus ¶ added in v0.2.0
type PorterInstanceStatus int
const ( PorterInstanceStatusUnspecified PorterInstanceStatus = iota PorterInstanceStatusActive PorterInstanceStatusBlocked )
type PullAccountInfo ¶
type PullAccountInfo struct { ID model.InternalID Platform string PlatformAccountID string }
type RefreshToken ¶
type RefreshToken string
type ServerFeatureSummary ¶ added in v0.2.0
type ServerFeatureSummary struct { AccountPlatforms []*FeatureFlag AppInfoSources []*FeatureFlag FeedSources []*FeatureFlag NotifyDestinations []*FeatureFlag FeedItemActions []*FeatureFlag }
type SystemType ¶ added in v0.2.3
type SystemType int
const ( SystemTypeUnspecified SystemType = iota SystemTypeAndroid SystemTypeIOS SystemTypeWindows SystemTypeMacOS SystemTypeLinux SystemTypeWeb )
type User ¶
type User struct { ID model.InternalID UserName string PassWord string Type libauth.UserType Status UserStatus }
type UserSession ¶ added in v0.2.1
type UserSession struct { ID model.InternalID UserID model.InternalID RefreshToken string DeviceInfo *DeviceInfo CreateAt time.Time ExpireAt time.Time }
type UserStatus ¶
type UserStatus int
const ( UserStatusUnspecified UserStatus = iota UserStatusActive UserStatusBlocked )
Click to show internal directories.
Click to hide internal directories.