Documentation ¶
Index ¶
- func BootstrapUIPath() string
- func CallbackAuthPath(provider string) string
- func CreateProposalPath(userID string) string
- func CreateReviewPath(proposalID string, userID string) string
- func CreateUserPath() string
- func DeleteProposalPath(proposalID int, userID string) string
- func DeleteReviewPath(proposalID string, reviewID int, userID string) string
- func DeleteUserPath(userID int) string
- func ListProposalPath(userID string) string
- func ListReviewPath(proposalID string, userID string) string
- func ListUserPath() string
- func OauthAuthPath(provider string) string
- func RefreshAuthPath() string
- func ShowProposalPath(proposalID int, userID string) string
- func ShowReviewPath(proposalID string, reviewID int, userID string) string
- func ShowUserPath(userID int) string
- func TokenAuthPath() string
- func UpdateProposalPath(proposalID int, userID string) string
- func UpdateReviewPath(proposalID string, reviewID int, userID string) string
- func UpdateUserPath(userID int) string
- type Authorize
- type Client
- func (c *Client) BootstrapUI(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) CallbackAuth(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) CreateProposal(ctx context.Context, path string, payload *CreateProposalPayload) (*http.Response, error)
- func (c *Client) CreateReview(ctx context.Context, path string, payload *CreateReviewPayload) (*http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, path string, payload *CreateUserPayload) (*http.Response, error)
- func (c *Client) DeleteProposal(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DeleteReview(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) DeleteUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListProposal(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListReview(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) OauthAuth(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) RefreshAuth(ctx context.Context, path string, payload *RefreshAuthPayload) (*http.Response, error)
- func (c *Client) ShowProposal(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowReview(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ShowUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) TokenAuth(ctx context.Context, path string, payload *TokenAuthPayload) (*http.Response, error)
- func (c *Client) UpdateProposal(ctx context.Context, path string, payload *UpdateProposalPayload) (*http.Response, error)
- func (c *Client) UpdateReview(ctx context.Context, path string, payload *UpdateReviewPayload) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, path string, payload *UpdateUserPayload) (*http.Response, error)
- type CreateProposalPayload
- type CreateReviewPayload
- type CreateUserPayload
- type Proposal
- type ProposalCollection
- type RefreshAuthPayload
- type Review
- type ReviewCollection
- type TokenAuthPayload
- type UpdateProposalPayload
- type UpdateReviewPayload
- type UpdateUserPayload
- type User
- type UserCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapUIPath ¶
func BootstrapUIPath() string
BootstrapUIPath computes a request path to the bootstrap action of ui.
func CallbackAuthPath ¶
CallbackAuthPath computes a request path to the callback action of auth.
func CreateProposalPath ¶
CreateProposalPath computes a request path to the create action of proposal.
func CreateReviewPath ¶
CreateReviewPath computes a request path to the create action of review.
func CreateUserPath ¶
func CreateUserPath() string
CreateUserPath computes a request path to the create action of user.
func DeleteProposalPath ¶
DeleteProposalPath computes a request path to the delete action of proposal.
func DeleteReviewPath ¶
DeleteReviewPath computes a request path to the delete action of review.
func DeleteUserPath ¶
DeleteUserPath computes a request path to the delete action of user.
func ListProposalPath ¶
ListProposalPath computes a request path to the list action of proposal.
func ListReviewPath ¶
ListReviewPath computes a request path to the list action of review.
func ListUserPath ¶
func ListUserPath() string
ListUserPath computes a request path to the list action of user.
func OauthAuthPath ¶
OauthAuthPath computes a request path to the oauth action of auth.
func RefreshAuthPath ¶
func RefreshAuthPath() string
RefreshAuthPath computes a request path to the refresh action of auth.
func ShowProposalPath ¶
ShowProposalPath computes a request path to the show action of proposal.
func ShowReviewPath ¶
ShowReviewPath computes a request path to the show action of review.
func ShowUserPath ¶
ShowUserPath computes a request path to the show action of user.
func TokenAuthPath ¶
func TokenAuthPath() string
TokenAuthPath computes a request path to the token action of auth.
func UpdateProposalPath ¶
UpdateProposalPath computes a request path to the update action of proposal.
func UpdateReviewPath ¶
UpdateReviewPath computes a request path to the update action of review.
func UpdateUserPath ¶
UpdateUserPath computes a request path to the update action of user.
Types ¶
type Authorize ¶
type Authorize struct { // access token AccessToken *string `json:"access_token,omitempty" xml:"access_token,omitempty"` // Time to expiration in seconds ExpiresIn *int `json:"expires_in,omitempty" xml:"expires_in,omitempty"` // type of token TokenType *string `json:"token_type,omitempty" xml:"token_type,omitempty"` }
Token authorization response
func DecodeAuthorize ¶
DecodeAuthorize decodes the Authorize instance encoded in r.
type Client ¶
Client is the congo service client.
func (*Client) BootstrapUI ¶
Render single page app HTML
func (*Client) CallbackAuth ¶
OAUTH2 callback endpoint
func (*Client) CreateProposal ¶
func (c *Client) CreateProposal(ctx context.Context, path string, payload *CreateProposalPayload) (*http.Response, error)
Create a new proposal
func (*Client) CreateReview ¶
func (c *Client) CreateReview(ctx context.Context, path string, payload *CreateReviewPayload) (*http.Response, error)
Create a new review
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, path string, payload *CreateUserPayload) (*http.Response, error)
Record new user
func (*Client) DeleteProposal ¶
DeleteProposal makes a request to the delete action endpoint of the proposal resource
func (*Client) DeleteReview ¶
DeleteReview makes a request to the delete action endpoint of the review resource
func (*Client) DeleteUser ¶
DeleteUser makes a request to the delete action endpoint of the user resource
func (*Client) ListProposal ¶
List all proposals for a user
func (*Client) ListReview ¶
List all reviews for a proposal
func (*Client) RefreshAuth ¶
func (c *Client) RefreshAuth(ctx context.Context, path string, payload *RefreshAuthPayload) (*http.Response, error)
Obtain a refreshed access token
func (*Client) ShowProposal ¶
Retrieve proposal with given id
func (*Client) ShowReview ¶
Retrieve review with given id
func (*Client) TokenAuth ¶
func (c *Client) TokenAuth(ctx context.Context, path string, payload *TokenAuthPayload) (*http.Response, error)
Obtain an access token
func (*Client) UpdateProposal ¶
func (c *Client) UpdateProposal(ctx context.Context, path string, payload *UpdateProposalPayload) (*http.Response, error)
UpdateProposal makes a request to the update action endpoint of the proposal resource
func (*Client) UpdateReview ¶
func (c *Client) UpdateReview(ctx context.Context, path string, payload *UpdateReviewPayload) (*http.Response, error)
UpdateReview makes a request to the update action endpoint of the review resource
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, path string, payload *UpdateUserPayload) (*http.Response, error)
UpdateUser makes a request to the update action endpoint of the user resource
type CreateProposalPayload ¶
type CreateProposalPayload struct { Abstract string `json:"abstract" xml:"abstract"` Detail string `json:"detail" xml:"detail"` Title string `json:"title" xml:"title"` Withdrawn *bool `json:"withdrawn,omitempty" xml:"withdrawn,omitempty"` }
CreateProposalPayload is the proposal create action payload.
type CreateReviewPayload ¶
type CreateReviewPayload struct { Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` Rating int `json:"rating" xml:"rating"` }
CreateReviewPayload is the review create action payload.
type CreateUserPayload ¶
type CreateUserPayload struct { Bio *string `json:"bio,omitempty" xml:"bio,omitempty"` City *string `json:"city,omitempty" xml:"city,omitempty"` Country *string `json:"country,omitempty" xml:"country,omitempty"` Email string `json:"email" xml:"email"` Firstname string `json:"firstname" xml:"firstname"` Lastname string `json:"lastname" xml:"lastname"` State *string `json:"state,omitempty" xml:"state,omitempty"` }
CreateUserPayload is the user create action payload.
type Proposal ¶
type Proposal struct { // Response abstract Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"` // Response detail Detail *string `json:"detail,omitempty" xml:"detail,omitempty"` // API href of user Href *string `json:"href,omitempty" xml:"href,omitempty"` // ID of user ID *int `json:"id,omitempty" xml:"id,omitempty"` // Reviews Reviews ReviewCollection `json:"reviews,omitempty" xml:"reviews,omitempty"` // Response title Title *string `json:"title,omitempty" xml:"title,omitempty"` }
A response to a CFP
func DecodeProposal ¶
DecodeProposal decodes the Proposal instance encoded in r.
type ProposalCollection ¶
type ProposalCollection []*Proposal
ProposalCollection media type is a collection of Proposal.
func DecodeProposalCollection ¶
func DecodeProposalCollection(r io.Reader, decoderFn goa.DecoderFunc) (ProposalCollection, error)
DecodeProposalCollection decodes the ProposalCollection instance encoded in r.
type RefreshAuthPayload ¶
type RefreshAuthPayload struct { // UUID of requesting application Application *string `json:"application,omitempty" xml:"application,omitempty"` // email Email *string `json:"email,omitempty" xml:"email,omitempty"` // password Password *string `json:"password,omitempty" xml:"password,omitempty"` }
RefreshAuthPayload is the auth refresh action payload.
type Review ¶
type Review struct { // Review comments Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` // API href of user Href *string `json:"href,omitempty" xml:"href,omitempty"` // ID of user ID *int `json:"id,omitempty" xml:"id,omitempty"` // Rating of proposal, from 1-5 Rating *int `json:"rating,omitempty" xml:"rating,omitempty"` }
A review is submitted by a reviewer
func DecodeReview ¶
DecodeReview decodes the Review instance encoded in r.
type ReviewCollection ¶
type ReviewCollection []*Review
ReviewCollection media type is a collection of Review.
func DecodeReviewCollection ¶
func DecodeReviewCollection(r io.Reader, decoderFn goa.DecoderFunc) (ReviewCollection, error)
DecodeReviewCollection decodes the ReviewCollection instance encoded in r.
type TokenAuthPayload ¶
type TokenAuthPayload struct { // UUID of requesting application Application *string `json:"application,omitempty" xml:"application,omitempty"` // email Email *string `json:"email,omitempty" xml:"email,omitempty"` // password Password *string `json:"password,omitempty" xml:"password,omitempty"` }
TokenAuthPayload is the auth token action payload.
type UpdateProposalPayload ¶
type UpdateProposalPayload struct { Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"` Detail *string `json:"detail,omitempty" xml:"detail,omitempty"` Title *string `json:"title,omitempty" xml:"title,omitempty"` Withdrawn *bool `json:"withdrawn,omitempty" xml:"withdrawn,omitempty"` }
UpdateProposalPayload is the proposal update action payload.
type UpdateReviewPayload ¶
type UpdateReviewPayload struct { Comment *string `json:"comment,omitempty" xml:"comment,omitempty"` Rating *int `json:"rating,omitempty" xml:"rating,omitempty"` }
UpdateReviewPayload is the review update action payload.
type UpdateUserPayload ¶
type UpdateUserPayload struct { Bio *string `json:"bio,omitempty" xml:"bio,omitempty"` City *string `json:"city,omitempty" xml:"city,omitempty"` Country *string `json:"country,omitempty" xml:"country,omitempty"` Email string `json:"email" xml:"email"` Firstname *string `json:"firstname,omitempty" xml:"firstname,omitempty"` Lastname *string `json:"lastname,omitempty" xml:"lastname,omitempty"` State *string `json:"state,omitempty" xml:"state,omitempty"` }
UpdateUserPayload is the user update action payload.
type User ¶
type User struct { // Biography of user Bio *string `json:"bio,omitempty" xml:"bio,omitempty"` // City of residence City *string `json:"city,omitempty" xml:"city,omitempty"` // Country of residence Country *string `json:"country,omitempty" xml:"country,omitempty"` // Email address of user Email *string `json:"email,omitempty" xml:"email,omitempty"` // First name of user Firstname *string `json:"firstname,omitempty" xml:"firstname,omitempty"` // API href of user Href *string `json:"href,omitempty" xml:"href,omitempty"` // ID of user ID *int `json:"id,omitempty" xml:"id,omitempty"` // Last name of user Lastname *string `json:"lastname,omitempty" xml:"lastname,omitempty"` // Role of user Role *string `json:"role,omitempty" xml:"role,omitempty"` // State of residence State *string `json:"state,omitempty" xml:"state,omitempty"` }
A user belonging to a tenant account
func DecodeUser ¶
DecodeUser decodes the User instance encoded in r.
type UserCollection ¶
type UserCollection []*User
UserCollection media type is a collection of User.
func DecodeUserCollection ¶
func DecodeUserCollection(r io.Reader, decoderFn goa.DecoderFunc) (UserCollection, error)
DecodeUserCollection decodes the UserCollection instance encoded in r.