Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10472648
user.go
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
951 B
Subscribers
None
user.go
View Options
package
writeas
import
"time"
type
(
// AuthUser represents a just-authenticated user. It contains information
// that'll only be returned once (now) per user session.
AuthUser
struct
{
AccessToken
string
`json:"access_token,omitempty"`
Password
string
`json:"password,omitempty"`
User
*
User
`json:"user"`
}
// User represents a registered Write.as user.
User
struct
{
Username
string
`json:"username"`
Email
string
`json:"email"`
Created
time
.
Time
`json:"created"`
// Optional properties
Subscription
*
UserSubscription
`json:"subscription"`
}
// UserSubscription contains information about a user's Write.as
// subscription.
UserSubscription
struct
{
Name
string
`json:"name"`
Begin
time
.
Time
`json:"begin"`
End
time
.
Time
`json:"end"`
AutoRenew
bool
`json:"auto_renew"`
Active
bool
`json:"is_active"`
Delinquent
bool
`json:"is_delinquent"`
}
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 5:53 AM (14 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3155508
Attached To
rWCLI writeas-cli
Event Timeline
Log In to Comment