Documentation ¶
Index ¶
- Constants
- Variables
- func MakeBadRequest(err error) *goa.ServiceError
- func MakeForbidden(err error) *goa.ServiceError
- func MakeNotFound(err error) *goa.ServiceError
- func MakeUnauthorized(err error) *goa.ServiceError
- func NewAcceptInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewAcceptProjectInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewAddEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewAddStationEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewAddUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewDeleteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewDeleteUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewDownloadPhotoEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewEditUserEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewGetEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewInvitesEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewListCommunityEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewListMineEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewLookupInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewModifyUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewProjectsStationEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewRejectInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewRejectProjectInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewRemoveStationEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewRemoveUserEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewUploadPhotoEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- func NewViewedDownloadedPhoto(res *DownloadedPhoto, view string) *projectviews.DownloadedPhoto
- func NewViewedPendingInvites(res *PendingInvites, view string) *projectviews.PendingInvites
- func NewViewedProject(res *Project, view string) *projectviews.Project
- func NewViewedProjectUpdate(res *ProjectUpdate, view string) *projectviews.ProjectUpdate
- func NewViewedProjects(res *Projects, view string) *projectviews.Projects
- type AcceptInvitePayload
- type AcceptProjectInvitePayload
- type AddPayload
- type AddProjectFields
- type AddStationPayload
- type AddUpdatePayload
- type Auther
- type Client
- func (c *Client) AcceptInvite(ctx context.Context, p *AcceptInvitePayload) (err error)
- func (c *Client) AcceptProjectInvite(ctx context.Context, p *AcceptProjectInvitePayload) (err error)
- func (c *Client) Add(ctx context.Context, p *AddPayload) (res *Project, err error)
- func (c *Client) AddStation(ctx context.Context, p *AddStationPayload) (err error)
- func (c *Client) AddUpdate(ctx context.Context, p *AddUpdatePayload) (res *ProjectUpdate, err error)
- func (c *Client) Delete(ctx context.Context, p *DeletePayload) (err error)
- func (c *Client) DeleteUpdate(ctx context.Context, p *DeleteUpdatePayload) (err error)
- func (c *Client) DownloadPhoto(ctx context.Context, p *DownloadPhotoPayload) (res *DownloadedPhoto, err error)
- func (c *Client) EditUser(ctx context.Context, p *EditUserPayload) (err error)
- func (c *Client) Get(ctx context.Context, p *GetPayload) (res *Project, err error)
- func (c *Client) Invite(ctx context.Context, p *InvitePayload) (err error)
- func (c *Client) Invites(ctx context.Context, p *InvitesPayload) (res *PendingInvites, err error)
- func (c *Client) ListCommunity(ctx context.Context, p *ListCommunityPayload) (res *Projects, err error)
- func (c *Client) ListMine(ctx context.Context, p *ListMinePayload) (res *Projects, err error)
- func (c *Client) LookupInvite(ctx context.Context, p *LookupInvitePayload) (res *PendingInvites, err error)
- func (c *Client) ModifyUpdate(ctx context.Context, p *ModifyUpdatePayload) (res *ProjectUpdate, err error)
- func (c *Client) ProjectsStation(ctx context.Context, p *ProjectsStationPayload) (res *Projects, err error)
- func (c *Client) RejectInvite(ctx context.Context, p *RejectInvitePayload) (err error)
- func (c *Client) RejectProjectInvite(ctx context.Context, p *RejectProjectInvitePayload) (err error)
- func (c *Client) RemoveStation(ctx context.Context, p *RemoveStationPayload) (err error)
- func (c *Client) RemoveUser(ctx context.Context, p *RemoveUserPayload) (err error)
- func (c *Client) Update(ctx context.Context, p *UpdatePayload) (res *Project, err error)
- func (c *Client) UploadPhoto(ctx context.Context, p *UploadPhotoPayload, req io.ReadCloser) (err error)
- type DeletePayload
- type DeleteUpdatePayload
- type DownloadPhotoPayload
- type DownloadedPhoto
- type EditUserFields
- type EditUserPayload
- type Endpoints
- type GetPayload
- type InvitePayload
- type InviteUserFields
- type InvitesPayload
- type ListCommunityPayload
- type ListMinePayload
- type LookupInvitePayload
- type ModifyUpdatePayload
- type PendingInvite
- type PendingInvites
- type Project
- type ProjectBounds
- type ProjectCollection
- type ProjectFollowing
- type ProjectSummary
- type ProjectUpdate
- type Projects
- type ProjectsStationPayload
- type RejectInvitePayload
- type RejectProjectInvitePayload
- type RemoveStationPayload
- type RemoveUserFields
- type RemoveUserPayload
- type Service
- type UpdatePayload
- type UploadPhotoPayload
- type UploadPhotoRequestData
Constants ¶
const ServiceName = "project"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [23]string{"add update", "delete update", "modify update", "invites", "lookup invite", "accept project invite", "reject project invite", "accept invite", "reject invite", "add", "update", "get", "list community", "list mine", "invite", "edit user", "remove user", "add station", "remove station", "delete", "upload photo", "download photo", "projects station"}
MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.
Functions ¶
func MakeBadRequest ¶
func MakeBadRequest(err error) *goa.ServiceError
MakeBadRequest builds a goa.ServiceError from an error.
func MakeForbidden ¶
func MakeForbidden(err error) *goa.ServiceError
MakeForbidden builds a goa.ServiceError from an error.
func MakeNotFound ¶
func MakeNotFound(err error) *goa.ServiceError
MakeNotFound builds a goa.ServiceError from an error.
func MakeUnauthorized ¶
func MakeUnauthorized(err error) *goa.ServiceError
MakeUnauthorized builds a goa.ServiceError from an error.
func NewAcceptInviteEndpoint ¶
func NewAcceptInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewAcceptInviteEndpoint returns an endpoint function that calls the method "accept invite" of service "project".
func NewAcceptProjectInviteEndpoint ¶
func NewAcceptProjectInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewAcceptProjectInviteEndpoint returns an endpoint function that calls the method "accept project invite" of service "project".
func NewAddEndpoint ¶
func NewAddEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewAddEndpoint returns an endpoint function that calls the method "add" of service "project".
func NewAddStationEndpoint ¶
func NewAddStationEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewAddStationEndpoint returns an endpoint function that calls the method "add station" of service "project".
func NewAddUpdateEndpoint ¶
func NewAddUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewAddUpdateEndpoint returns an endpoint function that calls the method "add update" of service "project".
func NewDeleteEndpoint ¶
func NewDeleteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewDeleteEndpoint returns an endpoint function that calls the method "delete" of service "project".
func NewDeleteUpdateEndpoint ¶
func NewDeleteUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewDeleteUpdateEndpoint returns an endpoint function that calls the method "delete update" of service "project".
func NewDownloadPhotoEndpoint ¶
func NewDownloadPhotoEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewDownloadPhotoEndpoint returns an endpoint function that calls the method "download photo" of service "project".
func NewEditUserEndpoint ¶
func NewEditUserEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewEditUserEndpoint returns an endpoint function that calls the method "edit user" of service "project".
func NewGetEndpoint ¶
func NewGetEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewGetEndpoint returns an endpoint function that calls the method "get" of service "project".
func NewInviteEndpoint ¶
func NewInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewInviteEndpoint returns an endpoint function that calls the method "invite" of service "project".
func NewInvitesEndpoint ¶
func NewInvitesEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewInvitesEndpoint returns an endpoint function that calls the method "invites" of service "project".
func NewListCommunityEndpoint ¶
func NewListCommunityEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewListCommunityEndpoint returns an endpoint function that calls the method "list community" of service "project".
func NewListMineEndpoint ¶
func NewListMineEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewListMineEndpoint returns an endpoint function that calls the method "list mine" of service "project".
func NewLookupInviteEndpoint ¶
func NewLookupInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewLookupInviteEndpoint returns an endpoint function that calls the method "lookup invite" of service "project".
func NewModifyUpdateEndpoint ¶
func NewModifyUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewModifyUpdateEndpoint returns an endpoint function that calls the method "modify update" of service "project".
func NewProjectsStationEndpoint ¶
func NewProjectsStationEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewProjectsStationEndpoint returns an endpoint function that calls the method "projects station" of service "project".
func NewRejectInviteEndpoint ¶
func NewRejectInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewRejectInviteEndpoint returns an endpoint function that calls the method "reject invite" of service "project".
func NewRejectProjectInviteEndpoint ¶
func NewRejectProjectInviteEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewRejectProjectInviteEndpoint returns an endpoint function that calls the method "reject project invite" of service "project".
func NewRemoveStationEndpoint ¶
func NewRemoveStationEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewRemoveStationEndpoint returns an endpoint function that calls the method "remove station" of service "project".
func NewRemoveUserEndpoint ¶
func NewRemoveUserEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewRemoveUserEndpoint returns an endpoint function that calls the method "remove user" of service "project".
func NewUpdateEndpoint ¶
func NewUpdateEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewUpdateEndpoint returns an endpoint function that calls the method "update" of service "project".
func NewUploadPhotoEndpoint ¶
func NewUploadPhotoEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewUploadPhotoEndpoint returns an endpoint function that calls the method "upload photo" of service "project".
func NewViewedDownloadedPhoto ¶
func NewViewedDownloadedPhoto(res *DownloadedPhoto, view string) *projectviews.DownloadedPhoto
NewViewedDownloadedPhoto initializes viewed result type DownloadedPhoto from result type DownloadedPhoto using the given view.
func NewViewedPendingInvites ¶
func NewViewedPendingInvites(res *PendingInvites, view string) *projectviews.PendingInvites
NewViewedPendingInvites initializes viewed result type PendingInvites from result type PendingInvites using the given view.
func NewViewedProject ¶
func NewViewedProject(res *Project, view string) *projectviews.Project
NewViewedProject initializes viewed result type Project from result type Project using the given view.
func NewViewedProjectUpdate ¶
func NewViewedProjectUpdate(res *ProjectUpdate, view string) *projectviews.ProjectUpdate
NewViewedProjectUpdate initializes viewed result type ProjectUpdate from result type ProjectUpdate using the given view.
func NewViewedProjects ¶
func NewViewedProjects(res *Projects, view string) *projectviews.Projects
NewViewedProjects initializes viewed result type Projects from result type Projects using the given view.
Types ¶
type AcceptInvitePayload ¶
AcceptInvitePayload is the payload type of the project service accept invite method.
type AcceptProjectInvitePayload ¶
AcceptProjectInvitePayload is the payload type of the project service accept project invite method.
type AddPayload ¶
type AddPayload struct { Auth string Project *AddProjectFields }
AddPayload is the payload type of the project service add method.
type AddProjectFields ¶
type AddStationPayload ¶
AddStationPayload is the payload type of the project service add station method.
type AddUpdatePayload ¶
AddUpdatePayload is the payload type of the project service add update method.
type Auther ¶
type Auther interface { // JWTAuth implements the authorization logic for the JWT security scheme. JWTAuth(ctx context.Context, token string, schema *security.JWTScheme) (context.Context, error) }
Auther defines the authorization functions to be implemented by the service.
type Client ¶
type Client struct { AddUpdateEndpoint goa.Endpoint DeleteUpdateEndpoint goa.Endpoint ModifyUpdateEndpoint goa.Endpoint InvitesEndpoint goa.Endpoint LookupInviteEndpoint goa.Endpoint AcceptProjectInviteEndpoint goa.Endpoint RejectProjectInviteEndpoint goa.Endpoint AcceptInviteEndpoint goa.Endpoint RejectInviteEndpoint goa.Endpoint AddEndpoint goa.Endpoint UpdateEndpoint goa.Endpoint GetEndpoint goa.Endpoint ListCommunityEndpoint goa.Endpoint ListMineEndpoint goa.Endpoint InviteEndpoint goa.Endpoint EditUserEndpoint goa.Endpoint RemoveUserEndpoint goa.Endpoint AddStationEndpoint goa.Endpoint RemoveStationEndpoint goa.Endpoint DeleteEndpoint goa.Endpoint UploadPhotoEndpoint goa.Endpoint DownloadPhotoEndpoint goa.Endpoint ProjectsStationEndpoint goa.Endpoint }
Client is the "project" service client.
func NewClient ¶
func NewClient(addUpdate, deleteUpdate, modifyUpdate, invites, lookupInvite, acceptProjectInvite, rejectProjectInvite, acceptInvite, rejectInvite, add, update, get, listCommunity, listMine, invite, editUser, removeUser, addStation, removeStation, delete_, uploadPhoto, downloadPhoto, projectsStation goa.Endpoint) *Client
NewClient initializes a "project" service client given the endpoints.
func (*Client) AcceptInvite ¶
func (c *Client) AcceptInvite(ctx context.Context, p *AcceptInvitePayload) (err error)
AcceptInvite calls the "accept invite" endpoint of the "project" service.
func (*Client) AcceptProjectInvite ¶
func (c *Client) AcceptProjectInvite(ctx context.Context, p *AcceptProjectInvitePayload) (err error)
AcceptProjectInvite calls the "accept project invite" endpoint of the "project" service.
func (*Client) AddStation ¶
func (c *Client) AddStation(ctx context.Context, p *AddStationPayload) (err error)
AddStation calls the "add station" endpoint of the "project" service.
func (*Client) AddUpdate ¶
func (c *Client) AddUpdate(ctx context.Context, p *AddUpdatePayload) (res *ProjectUpdate, err error)
AddUpdate calls the "add update" endpoint of the "project" service.
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, p *DeletePayload) (err error)
Delete calls the "delete" endpoint of the "project" service.
func (*Client) DeleteUpdate ¶
func (c *Client) DeleteUpdate(ctx context.Context, p *DeleteUpdatePayload) (err error)
DeleteUpdate calls the "delete update" endpoint of the "project" service.
func (*Client) DownloadPhoto ¶
func (c *Client) DownloadPhoto(ctx context.Context, p *DownloadPhotoPayload) (res *DownloadedPhoto, err error)
DownloadPhoto calls the "download photo" endpoint of the "project" service.
func (*Client) EditUser ¶
func (c *Client) EditUser(ctx context.Context, p *EditUserPayload) (err error)
EditUser calls the "edit user" endpoint of the "project" service.
func (*Client) Invite ¶
func (c *Client) Invite(ctx context.Context, p *InvitePayload) (err error)
Invite calls the "invite" endpoint of the "project" service.
func (*Client) Invites ¶
func (c *Client) Invites(ctx context.Context, p *InvitesPayload) (res *PendingInvites, err error)
Invites calls the "invites" endpoint of the "project" service.
func (*Client) ListCommunity ¶
func (c *Client) ListCommunity(ctx context.Context, p *ListCommunityPayload) (res *Projects, err error)
ListCommunity calls the "list community" endpoint of the "project" service.
func (*Client) LookupInvite ¶
func (c *Client) LookupInvite(ctx context.Context, p *LookupInvitePayload) (res *PendingInvites, err error)
LookupInvite calls the "lookup invite" endpoint of the "project" service.
func (*Client) ModifyUpdate ¶
func (c *Client) ModifyUpdate(ctx context.Context, p *ModifyUpdatePayload) (res *ProjectUpdate, err error)
ModifyUpdate calls the "modify update" endpoint of the "project" service.
func (*Client) ProjectsStation ¶
func (c *Client) ProjectsStation(ctx context.Context, p *ProjectsStationPayload) (res *Projects, err error)
ProjectsStation calls the "projects station" endpoint of the "project" service.
func (*Client) RejectInvite ¶
func (c *Client) RejectInvite(ctx context.Context, p *RejectInvitePayload) (err error)
RejectInvite calls the "reject invite" endpoint of the "project" service.
func (*Client) RejectProjectInvite ¶
func (c *Client) RejectProjectInvite(ctx context.Context, p *RejectProjectInvitePayload) (err error)
RejectProjectInvite calls the "reject project invite" endpoint of the "project" service.
func (*Client) RemoveStation ¶
func (c *Client) RemoveStation(ctx context.Context, p *RemoveStationPayload) (err error)
RemoveStation calls the "remove station" endpoint of the "project" service.
func (*Client) RemoveUser ¶
func (c *Client) RemoveUser(ctx context.Context, p *RemoveUserPayload) (err error)
RemoveUser calls the "remove user" endpoint of the "project" service.
func (*Client) UploadPhoto ¶
func (c *Client) UploadPhoto(ctx context.Context, p *UploadPhotoPayload, req io.ReadCloser) (err error)
UploadPhoto calls the "upload photo" endpoint of the "project" service.
type DeletePayload ¶
DeletePayload is the payload type of the project service delete method.
type DeleteUpdatePayload ¶
DeleteUpdatePayload is the payload type of the project service delete update method.
type DownloadPhotoPayload ¶
DownloadPhotoPayload is the payload type of the project service download photo method.
type DownloadedPhoto ¶
DownloadedPhoto is the result type of the project service download photo method.
func NewDownloadedPhoto ¶
func NewDownloadedPhoto(vres *projectviews.DownloadedPhoto) *DownloadedPhoto
NewDownloadedPhoto initializes result type DownloadedPhoto from viewed result type DownloadedPhoto.
type EditUserFields ¶
type EditUserPayload ¶
type EditUserPayload struct { Auth string ProjectID int32 Edit *EditUserFields }
EditUserPayload is the payload type of the project service edit user method.
type Endpoints ¶
type Endpoints struct { AddUpdate goa.Endpoint DeleteUpdate goa.Endpoint ModifyUpdate goa.Endpoint Invites goa.Endpoint LookupInvite goa.Endpoint AcceptProjectInvite goa.Endpoint RejectProjectInvite goa.Endpoint AcceptInvite goa.Endpoint RejectInvite goa.Endpoint Add goa.Endpoint Update goa.Endpoint Get goa.Endpoint ListCommunity goa.Endpoint ListMine goa.Endpoint Invite goa.Endpoint EditUser goa.Endpoint RemoveUser goa.Endpoint AddStation goa.Endpoint RemoveStation goa.Endpoint Delete goa.Endpoint UploadPhoto goa.Endpoint DownloadPhoto goa.Endpoint ProjectsStation goa.Endpoint }
Endpoints wraps the "project" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "project" service with endpoints.
type GetPayload ¶
GetPayload is the payload type of the project service get method.
type InvitePayload ¶
type InvitePayload struct { Auth string ProjectID int32 Invite *InviteUserFields }
InvitePayload is the payload type of the project service invite method.
type InviteUserFields ¶
type InvitesPayload ¶
type InvitesPayload struct {
Auth string
}
InvitesPayload is the payload type of the project service invites method.
type ListCommunityPayload ¶
type ListCommunityPayload struct {
Auth *string
}
ListCommunityPayload is the payload type of the project service list community method.
type ListMinePayload ¶
type ListMinePayload struct {
Auth string
}
ListMinePayload is the payload type of the project service list mine method.
type LookupInvitePayload ¶
LookupInvitePayload is the payload type of the project service lookup invite method.
type ModifyUpdatePayload ¶
ModifyUpdatePayload is the payload type of the project service modify update method.
type PendingInvite ¶
type PendingInvite struct { ID int64 Project *ProjectSummary Time int64 Role int32 }
type PendingInvites ¶
type PendingInvites struct { Pending []*PendingInvite Projects ProjectCollection }
PendingInvites is the result type of the project service invites method.
func NewPendingInvites ¶
func NewPendingInvites(vres *projectviews.PendingInvites) *PendingInvites
NewPendingInvites initializes result type PendingInvites from viewed result type PendingInvites.
type Project ¶
type Project struct { ID int32 Name string Description string Goal string Location string Tags string Privacy int32 StartTime *string EndTime *string Photo *string ReadOnly bool ShowStations bool Bounds *ProjectBounds Following *ProjectFollowing }
Project is the result type of the project service add method.
func NewProject ¶
func NewProject(vres *projectviews.Project) *Project
NewProject initializes result type Project from viewed result type Project.
type ProjectBounds ¶
type ProjectCollection ¶
type ProjectCollection []*Project
type ProjectFollowing ¶
type ProjectSummary ¶
type ProjectUpdate ¶
ProjectUpdate is the result type of the project service add update method.
func NewProjectUpdate ¶
func NewProjectUpdate(vres *projectviews.ProjectUpdate) *ProjectUpdate
NewProjectUpdate initializes result type ProjectUpdate from viewed result type ProjectUpdate.
type Projects ¶
type Projects struct {
Projects ProjectCollection
}
Projects is the result type of the project service list community method.
func NewProjects ¶
func NewProjects(vres *projectviews.Projects) *Projects
NewProjects initializes result type Projects from viewed result type Projects.
type ProjectsStationPayload ¶
ProjectsStationPayload is the payload type of the project service projects station method.
type RejectInvitePayload ¶
RejectInvitePayload is the payload type of the project service reject invite method.
type RejectProjectInvitePayload ¶
RejectProjectInvitePayload is the payload type of the project service reject project invite method.
type RemoveStationPayload ¶
RemoveStationPayload is the payload type of the project service remove station method.
type RemoveUserFields ¶
type RemoveUserFields struct {
Email string
}
type RemoveUserPayload ¶
type RemoveUserPayload struct { Auth string ProjectID int32 Remove *RemoveUserFields }
RemoveUserPayload is the payload type of the project service remove user method.
type Service ¶
type Service interface { // AddUpdate implements add update. AddUpdate(context.Context, *AddUpdatePayload) (res *ProjectUpdate, err error) // DeleteUpdate implements delete update. DeleteUpdate(context.Context, *DeleteUpdatePayload) (err error) // ModifyUpdate implements modify update. ModifyUpdate(context.Context, *ModifyUpdatePayload) (res *ProjectUpdate, err error) // Invites implements invites. Invites(context.Context, *InvitesPayload) (res *PendingInvites, err error) // LookupInvite implements lookup invite. LookupInvite(context.Context, *LookupInvitePayload) (res *PendingInvites, err error) // AcceptProjectInvite implements accept project invite. AcceptProjectInvite(context.Context, *AcceptProjectInvitePayload) (err error) // RejectProjectInvite implements reject project invite. RejectProjectInvite(context.Context, *RejectProjectInvitePayload) (err error) // AcceptInvite implements accept invite. AcceptInvite(context.Context, *AcceptInvitePayload) (err error) // RejectInvite implements reject invite. RejectInvite(context.Context, *RejectInvitePayload) (err error) // Add implements add. Add(context.Context, *AddPayload) (res *Project, err error) // Update implements update. Update(context.Context, *UpdatePayload) (res *Project, err error) // Get implements get. Get(context.Context, *GetPayload) (res *Project, err error) // ListCommunity implements list community. ListCommunity(context.Context, *ListCommunityPayload) (res *Projects, err error) // ListMine implements list mine. ListMine(context.Context, *ListMinePayload) (res *Projects, err error) // Invite implements invite. Invite(context.Context, *InvitePayload) (err error) // EditUser implements edit user. EditUser(context.Context, *EditUserPayload) (err error) // RemoveUser implements remove user. RemoveUser(context.Context, *RemoveUserPayload) (err error) // AddStation implements add station. AddStation(context.Context, *AddStationPayload) (err error) // RemoveStation implements remove station. RemoveStation(context.Context, *RemoveStationPayload) (err error) // Delete implements delete. Delete(context.Context, *DeletePayload) (err error) // UploadPhoto implements upload photo. UploadPhoto(context.Context, *UploadPhotoPayload, io.ReadCloser) (err error) // DownloadPhoto implements download photo. DownloadPhoto(context.Context, *DownloadPhotoPayload) (res *DownloadedPhoto, err error) // ProjectsStation implements projects station. ProjectsStation(context.Context, *ProjectsStationPayload) (res *Projects, err error) }
Service is the project service interface.
type UpdatePayload ¶
type UpdatePayload struct { Auth string ProjectID int32 Project *AddProjectFields }
UpdatePayload is the payload type of the project service update method.
type UploadPhotoPayload ¶
type UploadPhotoPayload struct { Auth string ProjectID int32 ContentLength int64 ContentType string }
UploadPhotoPayload is the payload type of the project service upload photo method.
type UploadPhotoRequestData ¶
type UploadPhotoRequestData struct { // Payload is the method payload. Payload *UploadPhotoPayload // Body streams the HTTP request body. Body io.ReadCloser }
UploadPhotoRequestData holds both the payload and the HTTP request body reader of the "upload photo" method.