Discover Packages
github.com/mister11/productive-cli
internal
productive
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Sep 1, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func ToJsonEmbedded(model interface{}) ([]byte , error )
type Client struct {
SessionService *sessionService
DealService *dealsService
ServiceService *serviceService
OrganizationMembershipService *organizationMembershipService
TimeEntryService *timeEntryService
}
type Deal struct {
ID string `jsonapi:"primary,deals"`
Name string `jsonapi:"attr,name"`
}
type OrganizationMembership struct {
ID string `jsonapi:"primary,organization_memberships"`
User *Person `jsonapi:"relation,person"`
}
type Person struct {
ID string `jsonapi:"primary,people"`
}
type Service struct {
ID string `jsonapi:"primary,services"`
Name string `jsonapi:"attr,name"`
}
type SessionRequest struct {
ID string `jsonapi:"primary,sessions"`
Otp string `jsonapi:"attr,otp"`
Email string `jsonapi:"attr,email,omitempty"`
Password string `jsonapi:"attr,password"`
Token string `jsonapi:"attr,token"`
User *User `jsonapi:"relation,user"`
}
type SessionResponse struct {
ID string `jsonapi:"primary,sessions"`
Token string `jsonapi:"attr,token"`
TokenExpirationDate string `jsonapi:"attr,token_expires_at"`
Is2FaAuthed bool `jsonapi:"attr,two_factor_auth"`
User *User `jsonapi:"relation,user"`
}
type TimeEntryRequest struct {
ID string `jsonapi:"primary,time-entries"`
Date string `jsonapi:"attr,date"`
Note string `jsonapi:"attr,note"`
Time string `jsonapi:"attr,time"`
Person *Person `jsonapi:"relation,person"`
Budget *Service `jsonapi:"relation,service"`
}
type User struct {
ID string `jsonapi:"primary,users"`
Is2FaEnabled bool `jsonapi:"attr,two_factor_auth"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.