project

package
v0.0.0-...-b9360c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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

type AcceptInvitePayload struct {
	Auth  string
	ID    int64
	Token *string
}

AcceptInvitePayload is the payload type of the project service accept invite method.

type AcceptProjectInvitePayload

type AcceptProjectInvitePayload struct {
	Auth      string
	ProjectID int32
}

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 AddProjectFields struct {
	Name         string
	Description  string
	Goal         *string
	Location     *string
	Tags         *string
	Privacy      *int32
	StartTime    *string
	EndTime      *string
	Bounds       *ProjectBounds
	ShowStations *bool
}

type AddStationPayload

type AddStationPayload struct {
	Auth      string
	ProjectID int32
	StationID int32
}

AddStationPayload is the payload type of the project service add station method.

type AddUpdatePayload

type AddUpdatePayload struct {
	Auth      string
	ProjectID int32
	Body      string
}

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) Add

func (c *Client) Add(ctx context.Context, p *AddPayload) (res *Project, err error)

Add calls the "add" 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) Get

func (c *Client) Get(ctx context.Context, p *GetPayload) (res *Project, err error)

Get calls the "get" 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) ListMine

func (c *Client) ListMine(ctx context.Context, p *ListMinePayload) (res *Projects, err error)

ListMine calls the "list mine" 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) Update

func (c *Client) Update(ctx context.Context, p *UpdatePayload) (res *Project, err error)

Update calls the "update" 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

type DeletePayload struct {
	Auth      string
	ProjectID int32
}

DeletePayload is the payload type of the project service delete method.

type DeleteUpdatePayload

type DeleteUpdatePayload struct {
	Auth      string
	ProjectID int32
	UpdateID  int64
}

DeleteUpdatePayload is the payload type of the project service delete update method.

type DownloadPhotoPayload

type DownloadPhotoPayload struct {
	Auth        *string
	ProjectID   int32
	Size        *int32
	IfNoneMatch *string
}

DownloadPhotoPayload is the payload type of the project service download photo method.

type DownloadedPhoto

type DownloadedPhoto struct {
	Length      int64
	ContentType string
	Etag        string
	Body        []byte
}

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 EditUserFields struct {
	Email string
	Role  int32
}

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

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "project" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "project" service endpoints.

type GetPayload

type GetPayload struct {
	Auth      *string
	ProjectID int32
}

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 InviteUserFields struct {
	Email string
	Role  int32
}

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

type LookupInvitePayload struct {
	Auth  string
	Token string
}

LookupInvitePayload is the payload type of the project service lookup invite method.

type ModifyUpdatePayload

type ModifyUpdatePayload struct {
	Auth      string
	ProjectID int32
	UpdateID  int64
	Body      string
}

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 ProjectBounds struct {
	Min []float64
	Max []float64
}

type ProjectCollection

type ProjectCollection []*Project

type ProjectFollowing

type ProjectFollowing struct {
	Total     int32
	Following bool
}

type ProjectSummary

type ProjectSummary struct {
	ID   int64
	Name string
}

type ProjectUpdate

type ProjectUpdate struct {
	ID        int64
	Body      string
	CreatedAt int64
}

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

type ProjectsStationPayload struct {
	Auth string
	ID   int32
}

ProjectsStationPayload is the payload type of the project service projects station method.

type RejectInvitePayload

type RejectInvitePayload struct {
	Auth  string
	ID    int64
	Token *string
}

RejectInvitePayload is the payload type of the project service reject invite method.

type RejectProjectInvitePayload

type RejectProjectInvitePayload struct {
	Auth      string
	ProjectID int32
}

RejectProjectInvitePayload is the payload type of the project service reject project invite method.

type RemoveStationPayload

type RemoveStationPayload struct {
	Auth      string
	ProjectID int32
	StationID int32
}

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL