app

package
Version: v0.0.0-...-68900ed Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminuserHref

func AdminuserHref(userID interface{}) string

AdminuserHref returns the resource href.

func ConfigureJWTSecurity

func ConfigureJWTSecurity(service *goa.Service, f goa.JWTSecurityConfigFunc)

func ConfigurePasswordSecurity

func ConfigurePasswordSecurity(service *goa.Service, f goa.BasicAuthSecurityConfigFunc)

func EventHref

func EventHref(tenantID, eventID interface{}) string

EventHref returns the resource href.

func MountAdminuserController

func MountAdminuserController(service *goa.Service, ctrl AdminuserController)

MountAdminuserController "mounts" a Adminuser resource controller on the given service.

func MountAuthController

func MountAuthController(service *goa.Service, ctrl AuthController)

MountAuthController "mounts" a Auth resource controller on the given service.

func MountEventController

func MountEventController(service *goa.Service, ctrl EventController)

MountEventController "mounts" a Event resource controller on the given service.

func MountHealthzController

func MountHealthzController(service *goa.Service, ctrl HealthzController)

MountHealthzController "mounts" a Healthz resource controller on the given service.

func MountPresentationController

func MountPresentationController(service *goa.Service, ctrl PresentationController)

MountPresentationController "mounts" a Presentation resource controller on the given service.

func MountSeriesController

func MountSeriesController(service *goa.Service, ctrl SeriesController)

MountSeriesController "mounts" a Series resource controller on the given service.

func MountSpeakerController

func MountSpeakerController(service *goa.Service, ctrl SpeakerController)

MountSpeakerController "mounts" a Speaker resource controller on the given service.

func MountTenantController

func MountTenantController(service *goa.Service, ctrl TenantController)

MountTenantController "mounts" a Tenant resource controller on the given service.

func MountUserController

func MountUserController(service *goa.Service, ctrl UserController)

MountUserController "mounts" a User resource controller on the given service.

func MountValidateController

func MountValidateController(service *goa.Service, ctrl ValidateController)

MountValidateController "mounts" a Validate resource controller on the given service.

func PresentationHref

func PresentationHref(tenantID, eventID, speakerID, presentationID interface{}) string

PresentationHref returns the resource href.

func SeriesHref

func SeriesHref(tenantID, seriesID interface{}) string

SeriesHref returns the resource href.

func SpeakerHref

func SpeakerHref(tenantID, eventID, speakerID interface{}) string

SpeakerHref returns the resource href.

func TenantHref

func TenantHref(tenantID interface{}) string

TenantHref returns the resource href.

func UserHref

func UserHref(tenantID, userID interface{}) string

UserHref returns the resource href.

Types

type AdminUserPayload

type AdminUserPayload struct {
	Email          *string `json:"email,omitempty" xml:"email,omitempty"`
	FirstName      *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Password       *string `json:"password,omitempty" xml:"password,omitempty"`
	Role           *string `json:"role,omitempty" xml:"role,omitempty"`
	TenantID       *int    `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

AdminUserPayload user type.

func (*AdminUserPayload) Validate

func (ut *AdminUserPayload) Validate() (err error)

Validate validates the AdminUserPayload type instance.

type AdminuserController

type AdminuserController interface {
	goa.Muxer
	Create(*CreateAdminuserContext) error
	Delete(*DeleteAdminuserContext) error
	List(*ListAdminuserContext) error
	Show(*ShowAdminuserContext) error
	Update(*UpdateAdminuserContext) error
}

AdminuserController is the controller interface for the Adminuser actions.

type AuthController

type AuthController interface {
	goa.Muxer
	Refresh(*RefreshAuthContext) error
	Token(*TokenAuthContext) error
}

AuthController is the controller interface for the Auth actions.

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"`
	// tenant
	Tenant *Tenant `json:"tenant,omitempty" xml:"tenant,omitempty"`
	// type of token
	TokenType *string `json:"token_type,omitempty" xml:"token_type,omitempty"`
	// user
	User *User `json:"user,omitempty" xml:"user,omitempty"`
}

Authorize media type.

Identifier: application/vnd.authorize+json

func (*Authorize) Validate

func (mt *Authorize) Validate() (err error)

Validate validates the Authorize media type instance.

type CreateAdminuserContext

type CreateAdminuserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
	Payload *CreateAdminuserPayload
}

CreateAdminuserContext provides the adminuser create action context.

func NewCreateAdminuserContext

func NewCreateAdminuserContext(ctx context.Context, service *goa.Service) (*CreateAdminuserContext, error)

NewCreateAdminuserContext parses the incoming request URL and body, performs validations and creates the context used by the adminuser controller create action.

func (*CreateAdminuserContext) Created

func (ctx *CreateAdminuserContext) Created() error

Created sends a HTTP response with status code 201.

type CreateAdminuserPayload

type CreateAdminuserPayload struct {
	Email          string  `json:"email" xml:"email"`
	FirstName      string  `json:"first_name" xml:"first_name"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       string  `json:"last_name" xml:"last_name"`
	Password       string  `json:"password" xml:"password"`
	Role           string  `json:"role" xml:"role"`
	TenantID       *int    `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

CreateAdminuserPayload is the adminuser create action payload.

func (*CreateAdminuserPayload) Validate

func (payload *CreateAdminuserPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreateEventContext

type CreateEventContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	Payload  *CreateEventPayload
}

CreateEventContext provides the event create action context.

func NewCreateEventContext

func NewCreateEventContext(ctx context.Context, service *goa.Service) (*CreateEventContext, error)

NewCreateEventContext parses the incoming request URL and body, performs validations and creates the context used by the event controller create action.

func (*CreateEventContext) Created

func (ctx *CreateEventContext) Created() error

Created sends a HTTP response with status code 201.

type CreateEventPayload

type CreateEventPayload struct {
	EndDate   *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	Name      string     `json:"name" xml:"name"`
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	URL       *string    `json:"url,omitempty" xml:"url,omitempty"`
}

CreateEventPayload is the event create action payload.

func (*CreateEventPayload) Validate

func (payload *CreateEventPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreatePresentationContext

type CreatePresentationContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service   *goa.Service
	EventID   int
	SpeakerID int
	TenantID  int
	Payload   *CreatePresentationPayload
}

CreatePresentationContext provides the presentation create action context.

func NewCreatePresentationContext

func NewCreatePresentationContext(ctx context.Context, service *goa.Service) (*CreatePresentationContext, error)

NewCreatePresentationContext parses the incoming request URL and body, performs validations and creates the context used by the presentation controller create action.

func (*CreatePresentationContext) Created

func (ctx *CreatePresentationContext) Created() error

Created sends a HTTP response with status code 201.

type CreatePresentationPayload

type CreatePresentationPayload struct {
	Abstract string  `json:"abstract" xml:"abstract"`
	Detail   *string `json:"detail,omitempty" xml:"detail,omitempty"`
	Name     *string `json:"name,omitempty" xml:"name,omitempty"`
}

CreatePresentationPayload is the presentation create action payload.

func (*CreatePresentationPayload) Validate

func (payload *CreatePresentationPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreateSeriesContext

type CreateSeriesContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	Payload  *CreateSeriesPayload
}

CreateSeriesContext provides the series create action context.

func NewCreateSeriesContext

func NewCreateSeriesContext(ctx context.Context, service *goa.Service) (*CreateSeriesContext, error)

NewCreateSeriesContext parses the incoming request URL and body, performs validations and creates the context used by the series controller create action.

func (*CreateSeriesContext) Created

func (ctx *CreateSeriesContext) Created() error

Created sends a HTTP response with status code 201.

type CreateSeriesPayload

type CreateSeriesPayload struct {
	Name string `json:"name" xml:"name"`
}

CreateSeriesPayload is the series create action payload.

func (*CreateSeriesPayload) Validate

func (payload *CreateSeriesPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreateSpeakerContext

type CreateSpeakerContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	EventID  int
	TenantID int
	Payload  *CreateSpeakerPayload
}

CreateSpeakerContext provides the speaker create action context.

func NewCreateSpeakerContext

func NewCreateSpeakerContext(ctx context.Context, service *goa.Service) (*CreateSpeakerContext, error)

NewCreateSpeakerContext parses the incoming request URL and body, performs validations and creates the context used by the speaker controller create action.

func (*CreateSpeakerContext) Created

func (ctx *CreateSpeakerContext) Created() error

Created sends a HTTP response with status code 201.

type CreateSpeakerPayload

type CreateSpeakerPayload struct {
	Bio       *string `json:"bio,omitempty" xml:"bio,omitempty"`
	FirstName string  `json:"first_name" xml:"first_name"`
	Github    *string `json:"github,omitempty" xml:"github,omitempty"`
	ImageURL  *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	LastName  string  `json:"last_name" xml:"last_name"`
	Linkedin  *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	Twitter   *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

CreateSpeakerPayload is the speaker create action payload.

func (*CreateSpeakerPayload) Validate

func (payload *CreateSpeakerPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreateTenantContext

type CreateTenantContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
	Payload *CreateTenantPayload
}

CreateTenantContext provides the tenant create action context.

func NewCreateTenantContext

func NewCreateTenantContext(ctx context.Context, service *goa.Service) (*CreateTenantContext, error)

NewCreateTenantContext parses the incoming request URL and body, performs validations and creates the context used by the tenant controller create action.

func (*CreateTenantContext) Created

func (ctx *CreateTenantContext) Created() error

Created sends a HTTP response with status code 201.

type CreateTenantPayload

type CreateTenantPayload struct {
	Name string `json:"name" xml:"name"`
}

CreateTenantPayload is the tenant create action payload.

func (*CreateTenantPayload) Validate

func (payload *CreateTenantPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type CreateUserContext

type CreateUserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	Payload  *CreateUserPayload
}

CreateUserContext provides the user create action context.

func NewCreateUserContext

func NewCreateUserContext(ctx context.Context, service *goa.Service) (*CreateUserContext, error)

NewCreateUserContext parses the incoming request URL and body, performs validations and creates the context used by the user controller create action.

func (*CreateUserContext) Created

func (ctx *CreateUserContext) Created() error

Created sends a HTTP response with status code 201.

type CreateUserPayload

type CreateUserPayload struct {
	Email          string  `json:"email" xml:"email"`
	FirstName      string  `json:"first_name" xml:"first_name"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       string  `json:"last_name" xml:"last_name"`
	Password       string  `json:"password" xml:"password"`
	Role           string  `json:"role" xml:"role"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

CreateUserPayload is the user create action payload.

func (*CreateUserPayload) Validate

func (payload *CreateUserPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type DeleteAdminuserContext

type DeleteAdminuserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
	UserID  int
}

DeleteAdminuserContext provides the adminuser delete action context.

func NewDeleteAdminuserContext

func NewDeleteAdminuserContext(ctx context.Context, service *goa.Service) (*DeleteAdminuserContext, error)

NewDeleteAdminuserContext parses the incoming request URL and body, performs validations and creates the context used by the adminuser controller delete action.

func (*DeleteAdminuserContext) NoContent

func (ctx *DeleteAdminuserContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteAdminuserContext) NotFound

func (ctx *DeleteAdminuserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteEventContext

type DeleteEventContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	EventID  int
	TenantID int
}

DeleteEventContext provides the event delete action context.

func NewDeleteEventContext

func NewDeleteEventContext(ctx context.Context, service *goa.Service) (*DeleteEventContext, error)

NewDeleteEventContext parses the incoming request URL and body, performs validations and creates the context used by the event controller delete action.

func (*DeleteEventContext) NoContent

func (ctx *DeleteEventContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteEventContext) NotFound

func (ctx *DeleteEventContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeletePresentationContext

type DeletePresentationContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service        *goa.Service
	EventID        int
	PresentationID int
	SpeakerID      int
	TenantID       int
}

DeletePresentationContext provides the presentation delete action context.

func NewDeletePresentationContext

func NewDeletePresentationContext(ctx context.Context, service *goa.Service) (*DeletePresentationContext, error)

NewDeletePresentationContext parses the incoming request URL and body, performs validations and creates the context used by the presentation controller delete action.

func (*DeletePresentationContext) NoContent

func (ctx *DeletePresentationContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeletePresentationContext) NotFound

func (ctx *DeletePresentationContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteSeriesContext

type DeleteSeriesContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	SeriesID int
	TenantID int
}

DeleteSeriesContext provides the series delete action context.

func NewDeleteSeriesContext

func NewDeleteSeriesContext(ctx context.Context, service *goa.Service) (*DeleteSeriesContext, error)

NewDeleteSeriesContext parses the incoming request URL and body, performs validations and creates the context used by the series controller delete action.

func (*DeleteSeriesContext) NoContent

func (ctx *DeleteSeriesContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteSeriesContext) NotFound

func (ctx *DeleteSeriesContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteSpeakerContext

type DeleteSpeakerContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service   *goa.Service
	EventID   int
	SpeakerID int
	TenantID  int
}

DeleteSpeakerContext provides the speaker delete action context.

func NewDeleteSpeakerContext

func NewDeleteSpeakerContext(ctx context.Context, service *goa.Service) (*DeleteSpeakerContext, error)

NewDeleteSpeakerContext parses the incoming request URL and body, performs validations and creates the context used by the speaker controller delete action.

func (*DeleteSpeakerContext) NoContent

func (ctx *DeleteSpeakerContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteSpeakerContext) NotFound

func (ctx *DeleteSpeakerContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteTenantContext

type DeleteTenantContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
}

DeleteTenantContext provides the tenant delete action context.

func NewDeleteTenantContext

func NewDeleteTenantContext(ctx context.Context, service *goa.Service) (*DeleteTenantContext, error)

NewDeleteTenantContext parses the incoming request URL and body, performs validations and creates the context used by the tenant controller delete action.

func (*DeleteTenantContext) NoContent

func (ctx *DeleteTenantContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteTenantContext) NotFound

func (ctx *DeleteTenantContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type DeleteUserContext

type DeleteUserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	UserID   int
}

DeleteUserContext provides the user delete action context.

func NewDeleteUserContext

func NewDeleteUserContext(ctx context.Context, service *goa.Service) (*DeleteUserContext, error)

NewDeleteUserContext parses the incoming request URL and body, performs validations and creates the context used by the user controller delete action.

func (*DeleteUserContext) NoContent

func (ctx *DeleteUserContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*DeleteUserContext) NotFound

func (ctx *DeleteUserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type Event

type Event struct {
	// end_date
	EndDate *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// location
	Location *string `json:"location,omitempty" xml:"location,omitempty"`
	// name
	Name          *string                `json:"name,omitempty" xml:"name,omitempty"`
	Presentations PresentationCollection `json:"presentations,omitempty" xml:"presentations,omitempty"`
	Speakers      SpeakerCollection      `json:"speakers,omitempty" xml:"speakers,omitempty"`
	// start_date
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// event URL
	URL *string `json:"url,omitempty" xml:"url,omitempty"`
}

Event media type.

Identifier: application/vnd.event+json

type EventCollection

type EventCollection []*Event

EventCollection media type is a collection of Event.

Identifier: application/vnd.event+json; type=collection

type EventController

type EventController interface {
	goa.Muxer
	Create(*CreateEventContext) error
	Delete(*DeleteEventContext) error
	List(*ListEventContext) error
	Show(*ShowEventContext) error
	Update(*UpdateEventContext) error
}

EventController is the controller interface for the Event actions.

type EventPayload

type EventPayload struct {
	EndDate   *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	Name      *string    `json:"name,omitempty" xml:"name,omitempty"`
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	URL       *string    `json:"url,omitempty" xml:"url,omitempty"`
}

EventPayload user type.

func (*EventPayload) Validate

func (ut *EventPayload) Validate() (err error)

Validate validates the EventPayload type instance.

type HealthzController

type HealthzController interface {
	goa.Muxer
	Status(*StatusHealthzContext) error
}

HealthzController is the controller interface for the Healthz actions.

type ListAdminuserContext

type ListAdminuserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
}

ListAdminuserContext provides the adminuser list action context.

func NewListAdminuserContext

func NewListAdminuserContext(ctx context.Context, service *goa.Service) (*ListAdminuserContext, error)

NewListAdminuserContext parses the incoming request URL and body, performs validations and creates the context used by the adminuser controller list action.

func (*ListAdminuserContext) NotFound

func (ctx *ListAdminuserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListAdminuserContext) OK

OK sends a HTTP response with status code 200.

func (*ListAdminuserContext) OKTenant

OKTenant sends a HTTP response with status code 200.

type ListEventContext

type ListEventContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
}

ListEventContext provides the event list action context.

func NewListEventContext

func NewListEventContext(ctx context.Context, service *goa.Service) (*ListEventContext, error)

NewListEventContext parses the incoming request URL and body, performs validations and creates the context used by the event controller list action.

func (*ListEventContext) NotFound

func (ctx *ListEventContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListEventContext) OK

OK sends a HTTP response with status code 200.

type ListPresentationContext

type ListPresentationContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service   *goa.Service
	EventID   int
	SpeakerID int
	TenantID  int
}

ListPresentationContext provides the presentation list action context.

func NewListPresentationContext

func NewListPresentationContext(ctx context.Context, service *goa.Service) (*ListPresentationContext, error)

NewListPresentationContext parses the incoming request URL and body, performs validations and creates the context used by the presentation controller list action.

func (*ListPresentationContext) NotFound

func (ctx *ListPresentationContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListPresentationContext) OK

OK sends a HTTP response with status code 200.

func (*ListPresentationContext) OKAdmin

OKAdmin sends a HTTP response with status code 200.

type ListSeriesContext

type ListSeriesContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
}

ListSeriesContext provides the series list action context.

func NewListSeriesContext

func NewListSeriesContext(ctx context.Context, service *goa.Service) (*ListSeriesContext, error)

NewListSeriesContext parses the incoming request URL and body, performs validations and creates the context used by the series controller list action.

func (*ListSeriesContext) NotFound

func (ctx *ListSeriesContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListSeriesContext) OK

OK sends a HTTP response with status code 200.

type ListSpeakerContext

type ListSpeakerContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	EventID  int
	TenantID int
}

ListSpeakerContext provides the speaker list action context.

func NewListSpeakerContext

func NewListSpeakerContext(ctx context.Context, service *goa.Service) (*ListSpeakerContext, error)

NewListSpeakerContext parses the incoming request URL and body, performs validations and creates the context used by the speaker controller list action.

func (*ListSpeakerContext) NotFound

func (ctx *ListSpeakerContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListSpeakerContext) OK

OK sends a HTTP response with status code 200.

func (*ListSpeakerContext) OKAdmin

OKAdmin sends a HTTP response with status code 200.

type ListTenantContext

type ListTenantContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
}

ListTenantContext provides the tenant list action context.

func NewListTenantContext

func NewListTenantContext(ctx context.Context, service *goa.Service) (*ListTenantContext, error)

NewListTenantContext parses the incoming request URL and body, performs validations and creates the context used by the tenant controller list action.

func (*ListTenantContext) NotFound

func (ctx *ListTenantContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListTenantContext) OK

OK sends a HTTP response with status code 200.

type ListUserContext

type ListUserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
}

ListUserContext provides the user list action context.

func NewListUserContext

func NewListUserContext(ctx context.Context, service *goa.Service) (*ListUserContext, error)

NewListUserContext parses the incoming request URL and body, performs validations and creates the context used by the user controller list action.

func (*ListUserContext) NotFound

func (ctx *ListUserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ListUserContext) OK

OK sends a HTTP response with status code 200.

func (*ListUserContext) OKTenant

func (ctx *ListUserContext) OKTenant(r UserTenantCollection) error

OKTenant sends a HTTP response with status code 200.

type Login

type Login struct {
	// email
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// password
	Password *string `json:"password,omitempty" xml:"password,omitempty"`
}

Login media type.

Identifier: application/vnd.login+json

type Presentation

type Presentation struct {
	// short description of talk
	Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// Links to related resources
	Links *PresentationLinks `json:"links,omitempty" xml:"links,omitempty"`
	// name of presentation
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

Presentation media type.

Identifier: application/vnd.presentation+json

type PresentationAdmin

type PresentationAdmin struct {
	// short description of talk
	Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"`
	// detailed description of talk - not for public display
	Detail *string `json:"detail,omitempty" xml:"detail,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// Links to related resources
	Links *PresentationLinks `json:"links,omitempty" xml:"links,omitempty"`
	// name of presentation
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

PresentationAdmin media type.

Identifier: application/vnd.presentation+json

type PresentationAdminCollection

type PresentationAdminCollection []*PresentationAdmin

PresentationAdminCollection media type is a collection of PresentationAdmin.

Identifier: application/vnd.presentation+json; type=collection

type PresentationCollection

type PresentationCollection []*Presentation

PresentationCollection media type is a collection of Presentation.

Identifier: application/vnd.presentation+json; type=collection

type PresentationController

PresentationController is the controller interface for the Presentation actions.

type PresentationLinks struct {
	Speaker *SpeakerLink `json:"speaker,omitempty" xml:"speaker,omitempty"`
}

PresentationLinks contains links to related resources of Presentation.

type PresentationLinksArray

type PresentationLinksArray []*PresentationLinks

PresentationLinksArray contains links to related resources of PresentationCollection.

type PresentationPayload

type PresentationPayload struct {
	Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"`
	Detail   *string `json:"detail,omitempty" xml:"detail,omitempty"`
	Name     *string `json:"name,omitempty" xml:"name,omitempty"`
}

PresentationPayload user type.

func (*PresentationPayload) Validate

func (ut *PresentationPayload) Validate() (err error)

Validate validates the PresentationPayload type instance.

type RefreshAuthContext

type RefreshAuthContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
}

RefreshAuthContext provides the auth refresh action context.

func NewRefreshAuthContext

func NewRefreshAuthContext(ctx context.Context, service *goa.Service) (*RefreshAuthContext, error)

NewRefreshAuthContext parses the incoming request URL and body, performs validations and creates the context used by the auth controller refresh action.

func (*RefreshAuthContext) Created

func (ctx *RefreshAuthContext) Created(r *Authorize) error

Created sends a HTTP response with status code 201.

type Series

type Series struct {
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// name
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

Series media type.

Identifier: application/vnd.series+json

type SeriesCollection

type SeriesCollection []*Series

SeriesCollection media type is a collection of Series.

Identifier: application/vnd.series+json; type=collection

type SeriesController

type SeriesController interface {
	goa.Muxer
	Create(*CreateSeriesContext) error
	Delete(*DeleteSeriesContext) error
	List(*ListSeriesContext) error
	Show(*ShowSeriesContext) error
	Update(*UpdateSeriesContext) error
}

SeriesController is the controller interface for the Series actions.

type SeriesPayload

type SeriesPayload struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

SeriesPayload user type.

func (*SeriesPayload) Validate

func (ut *SeriesPayload) Validate() (err error)

Validate validates the SeriesPayload type instance.

type ShowAdminuserContext

type ShowAdminuserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
	UserID  int
}

ShowAdminuserContext provides the adminuser show action context.

func NewShowAdminuserContext

func NewShowAdminuserContext(ctx context.Context, service *goa.Service) (*ShowAdminuserContext, error)

NewShowAdminuserContext parses the incoming request URL and body, performs validations and creates the context used by the adminuser controller show action.

func (*ShowAdminuserContext) NotFound

func (ctx *ShowAdminuserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowAdminuserContext) OK

func (ctx *ShowAdminuserContext) OK(r *User) error

OK sends a HTTP response with status code 200.

func (*ShowAdminuserContext) OKTenant

func (ctx *ShowAdminuserContext) OKTenant(r *UserTenant) error

OKTenant sends a HTTP response with status code 200.

type ShowEventContext

type ShowEventContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	EventID  int
	TenantID int
}

ShowEventContext provides the event show action context.

func NewShowEventContext

func NewShowEventContext(ctx context.Context, service *goa.Service) (*ShowEventContext, error)

NewShowEventContext parses the incoming request URL and body, performs validations and creates the context used by the event controller show action.

func (*ShowEventContext) NotFound

func (ctx *ShowEventContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowEventContext) OK

func (ctx *ShowEventContext) OK(r *Event) error

OK sends a HTTP response with status code 200.

type ShowPresentationContext

type ShowPresentationContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service        *goa.Service
	EventID        int
	PresentationID int
	SpeakerID      int
	TenantID       int
}

ShowPresentationContext provides the presentation show action context.

func NewShowPresentationContext

func NewShowPresentationContext(ctx context.Context, service *goa.Service) (*ShowPresentationContext, error)

NewShowPresentationContext parses the incoming request URL and body, performs validations and creates the context used by the presentation controller show action.

func (*ShowPresentationContext) NotFound

func (ctx *ShowPresentationContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowPresentationContext) OK

OK sends a HTTP response with status code 200.

func (*ShowPresentationContext) OKAdmin

OKAdmin sends a HTTP response with status code 200.

type ShowSeriesContext

type ShowSeriesContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	SeriesID int
	TenantID int
}

ShowSeriesContext provides the series show action context.

func NewShowSeriesContext

func NewShowSeriesContext(ctx context.Context, service *goa.Service) (*ShowSeriesContext, error)

NewShowSeriesContext parses the incoming request URL and body, performs validations and creates the context used by the series controller show action.

func (*ShowSeriesContext) NotFound

func (ctx *ShowSeriesContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowSeriesContext) OK

func (ctx *ShowSeriesContext) OK(r *Series) error

OK sends a HTTP response with status code 200.

type ShowSpeakerContext

type ShowSpeakerContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service   *goa.Service
	EventID   int
	SpeakerID int
	TenantID  int
}

ShowSpeakerContext provides the speaker show action context.

func NewShowSpeakerContext

func NewShowSpeakerContext(ctx context.Context, service *goa.Service) (*ShowSpeakerContext, error)

NewShowSpeakerContext parses the incoming request URL and body, performs validations and creates the context used by the speaker controller show action.

func (*ShowSpeakerContext) NotFound

func (ctx *ShowSpeakerContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowSpeakerContext) OK

func (ctx *ShowSpeakerContext) OK(r *Speaker) error

OK sends a HTTP response with status code 200.

func (*ShowSpeakerContext) OKAdmin

func (ctx *ShowSpeakerContext) OKAdmin(r *SpeakerAdmin) error

OKAdmin sends a HTTP response with status code 200.

type ShowTenantContext

type ShowTenantContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
}

ShowTenantContext provides the tenant show action context.

func NewShowTenantContext

func NewShowTenantContext(ctx context.Context, service *goa.Service) (*ShowTenantContext, error)

NewShowTenantContext parses the incoming request URL and body, performs validations and creates the context used by the tenant controller show action.

func (*ShowTenantContext) NotFound

func (ctx *ShowTenantContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowTenantContext) OK

func (ctx *ShowTenantContext) OK(r *Tenant) error

OK sends a HTTP response with status code 200.

type ShowUserContext

type ShowUserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	UserID   int
}

ShowUserContext provides the user show action context.

func NewShowUserContext

func NewShowUserContext(ctx context.Context, service *goa.Service) (*ShowUserContext, error)

NewShowUserContext parses the incoming request URL and body, performs validations and creates the context used by the user controller show action.

func (*ShowUserContext) NotFound

func (ctx *ShowUserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowUserContext) OK

func (ctx *ShowUserContext) OK(r *User) error

OK sends a HTTP response with status code 200.

func (*ShowUserContext) OKTenant

func (ctx *ShowUserContext) OKTenant(r *UserTenant) error

OKTenant sends a HTTP response with status code 200.

type Speaker

type Speaker struct {
	// speaker bio
	Bio *string `json:"bio,omitempty" xml:"bio,omitempty"`
	// first name
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	// github handle
	Github *string `json:"github,omitempty" xml:"github,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// url of speaker image
	ImageURL *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// last name
	LastName *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	// linkedin url
	Linkedin *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	// twitter handle - no @
	Twitter *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

Speaker media type.

Identifier: application/vnd.speaker+json

type SpeakerAdmin

type SpeakerAdmin struct {
	// speaker bio
	Bio *string `json:"bio,omitempty" xml:"bio,omitempty"`
	// email address
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// first name
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	// github handle
	Github *string `json:"github,omitempty" xml:"github,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// url of speaker image
	ImageURL *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// last name
	LastName *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	// linkedin url
	Linkedin *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	// twitter handle - no @
	Twitter *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

SpeakerAdmin media type.

Identifier: application/vnd.speaker+json

type SpeakerAdminCollection

type SpeakerAdminCollection []*SpeakerAdmin

SpeakerAdminCollection media type is a collection of SpeakerAdmin.

Identifier: application/vnd.speaker+json; type=collection

type SpeakerCollection

type SpeakerCollection []*Speaker

SpeakerCollection media type is a collection of Speaker.

Identifier: application/vnd.speaker+json; type=collection

type SpeakerController

type SpeakerController interface {
	goa.Muxer
	Create(*CreateSpeakerContext) error
	Delete(*DeleteSpeakerContext) error
	List(*ListSpeakerContext) error
	Show(*ShowSpeakerContext) error
	Update(*UpdateSpeakerContext) error
}

SpeakerController is the controller interface for the Speaker actions.

type SpeakerLink struct {
	Href *string `json:"href,omitempty" xml:"href,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
}

SpeakerLink media type.

Identifier: application/vnd.speaker+json

type SpeakerLinkCollection

type SpeakerLinkCollection []*SpeakerLink

SpeakerLinkCollection media type is a collection of SpeakerLink.

Identifier: application/vnd.speaker+json; type=collection

type SpeakerPayload

type SpeakerPayload struct {
	Bio       *string `json:"bio,omitempty" xml:"bio,omitempty"`
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	Github    *string `json:"github,omitempty" xml:"github,omitempty"`
	ImageURL  *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	LastName  *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Linkedin  *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	Twitter   *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

SpeakerPayload user type.

func (*SpeakerPayload) Validate

func (ut *SpeakerPayload) Validate() (err error)

Validate validates the SpeakerPayload type instance.

type StatusHealthzContext

type StatusHealthzContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
}

StatusHealthzContext provides the healthz status action context.

func NewStatusHealthzContext

func NewStatusHealthzContext(ctx context.Context, service *goa.Service) (*StatusHealthzContext, error)

NewStatusHealthzContext parses the incoming request URL and body, performs validations and creates the context used by the healthz controller status action.

type Tenant

type Tenant struct {
	// ID
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// name
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

Tenant media type.

Identifier: application/vnd.tenant+json

type TenantCollection

type TenantCollection []*Tenant

TenantCollection media type is a collection of Tenant.

Identifier: application/vnd.tenant+json; type=collection

type TenantController

type TenantController interface {
	goa.Muxer
	Create(*CreateTenantContext) error
	Delete(*DeleteTenantContext) error
	List(*ListTenantContext) error
	Show(*ShowTenantContext) error
	Update(*UpdateTenantContext) error
}

TenantController is the controller interface for the Tenant actions.

type TenantPayload

type TenantPayload struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

TenantPayload user type.

func (*TenantPayload) Validate

func (ut *TenantPayload) Validate() (err error)

Validate validates the TenantPayload type instance.

type TokenAuthContext

type TokenAuthContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
}

TokenAuthContext provides the auth token action context.

func NewTokenAuthContext

func NewTokenAuthContext(ctx context.Context, service *goa.Service) (*TokenAuthContext, error)

NewTokenAuthContext parses the incoming request URL and body, performs validations and creates the context used by the auth controller token action.

func (*TokenAuthContext) Created

func (ctx *TokenAuthContext) Created(r *Authorize) error

Created sends a HTTP response with status code 201.

type UpdateAdminuserContext

type UpdateAdminuserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
	UserID  int
	Payload *UpdateAdminuserPayload
}

UpdateAdminuserContext provides the adminuser update action context.

func NewUpdateAdminuserContext

func NewUpdateAdminuserContext(ctx context.Context, service *goa.Service) (*UpdateAdminuserContext, error)

NewUpdateAdminuserContext parses the incoming request URL and body, performs validations and creates the context used by the adminuser controller update action.

func (*UpdateAdminuserContext) NoContent

func (ctx *UpdateAdminuserContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdateAdminuserContext) NotFound

func (ctx *UpdateAdminuserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdateAdminuserPayload

type UpdateAdminuserPayload struct {
	Email          *string `json:"email,omitempty" xml:"email,omitempty"`
	FirstName      *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Password       *string `json:"password,omitempty" xml:"password,omitempty"`
	Role           *string `json:"role,omitempty" xml:"role,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

UpdateAdminuserPayload is the adminuser update action payload.

func (*UpdateAdminuserPayload) Validate

func (payload *UpdateAdminuserPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type UpdateEventContext

type UpdateEventContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	EventID  int
	TenantID int
	Payload  *UpdateEventPayload
}

UpdateEventContext provides the event update action context.

func NewUpdateEventContext

func NewUpdateEventContext(ctx context.Context, service *goa.Service) (*UpdateEventContext, error)

NewUpdateEventContext parses the incoming request URL and body, performs validations and creates the context used by the event controller update action.

func (*UpdateEventContext) NoContent

func (ctx *UpdateEventContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdateEventContext) NotFound

func (ctx *UpdateEventContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdateEventPayload

type UpdateEventPayload struct {
	EndDate   *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	Name      *string    `json:"name,omitempty" xml:"name,omitempty"`
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	URL       *string    `json:"url,omitempty" xml:"url,omitempty"`
}

UpdateEventPayload is the event update action payload.

func (*UpdateEventPayload) Validate

func (payload *UpdateEventPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type UpdatePresentationContext

type UpdatePresentationContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service        *goa.Service
	EventID        int
	PresentationID int
	SpeakerID      int
	TenantID       int
	Payload        *UpdatePresentationPayload
}

UpdatePresentationContext provides the presentation update action context.

func NewUpdatePresentationContext

func NewUpdatePresentationContext(ctx context.Context, service *goa.Service) (*UpdatePresentationContext, error)

NewUpdatePresentationContext parses the incoming request URL and body, performs validations and creates the context used by the presentation controller update action.

func (*UpdatePresentationContext) NoContent

func (ctx *UpdatePresentationContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdatePresentationContext) NotFound

func (ctx *UpdatePresentationContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdatePresentationPayload

type UpdatePresentationPayload struct {
	Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"`
	Detail   *string `json:"detail,omitempty" xml:"detail,omitempty"`
	Name     *string `json:"name,omitempty" xml:"name,omitempty"`
}

UpdatePresentationPayload is the presentation update action payload.

func (*UpdatePresentationPayload) Validate

func (payload *UpdatePresentationPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type UpdateSeriesContext

type UpdateSeriesContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	SeriesID int
	TenantID int
	Payload  *UpdateSeriesPayload
}

UpdateSeriesContext provides the series update action context.

func NewUpdateSeriesContext

func NewUpdateSeriesContext(ctx context.Context, service *goa.Service) (*UpdateSeriesContext, error)

NewUpdateSeriesContext parses the incoming request URL and body, performs validations and creates the context used by the series controller update action.

func (*UpdateSeriesContext) NoContent

func (ctx *UpdateSeriesContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdateSeriesContext) NotFound

func (ctx *UpdateSeriesContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdateSeriesPayload

type UpdateSeriesPayload struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

UpdateSeriesPayload is the series update action payload.

func (*UpdateSeriesPayload) Validate

func (payload *UpdateSeriesPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type UpdateSpeakerContext

type UpdateSpeakerContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service   *goa.Service
	EventID   int
	SpeakerID int
	TenantID  int
	Payload   *UpdateSpeakerPayload
}

UpdateSpeakerContext provides the speaker update action context.

func NewUpdateSpeakerContext

func NewUpdateSpeakerContext(ctx context.Context, service *goa.Service) (*UpdateSpeakerContext, error)

NewUpdateSpeakerContext parses the incoming request URL and body, performs validations and creates the context used by the speaker controller update action.

func (*UpdateSpeakerContext) NoContent

func (ctx *UpdateSpeakerContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdateSpeakerContext) NotFound

func (ctx *UpdateSpeakerContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdateSpeakerPayload

type UpdateSpeakerPayload struct {
	Bio       *string `json:"bio,omitempty" xml:"bio,omitempty"`
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	Github    *string `json:"github,omitempty" xml:"github,omitempty"`
	ImageURL  *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	LastName  *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Linkedin  *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	Twitter   *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

UpdateSpeakerPayload is the speaker update action payload.

func (*UpdateSpeakerPayload) Validate

func (payload *UpdateSpeakerPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type UpdateTenantContext

type UpdateTenantContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	Payload  *UpdateTenantPayload
}

UpdateTenantContext provides the tenant update action context.

func NewUpdateTenantContext

func NewUpdateTenantContext(ctx context.Context, service *goa.Service) (*UpdateTenantContext, error)

NewUpdateTenantContext parses the incoming request URL and body, performs validations and creates the context used by the tenant controller update action.

func (*UpdateTenantContext) NoContent

func (ctx *UpdateTenantContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdateTenantContext) NotFound

func (ctx *UpdateTenantContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdateTenantPayload

type UpdateTenantPayload struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

UpdateTenantPayload is the tenant update action payload.

func (*UpdateTenantPayload) Validate

func (payload *UpdateTenantPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type UpdateUserContext

type UpdateUserContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service  *goa.Service
	TenantID int
	UserID   int
	Payload  *UpdateUserPayload
}

UpdateUserContext provides the user update action context.

func NewUpdateUserContext

func NewUpdateUserContext(ctx context.Context, service *goa.Service) (*UpdateUserContext, error)

NewUpdateUserContext parses the incoming request URL and body, performs validations and creates the context used by the user controller update action.

func (*UpdateUserContext) NoContent

func (ctx *UpdateUserContext) NoContent() error

NoContent sends a HTTP response with status code 204.

func (*UpdateUserContext) NotFound

func (ctx *UpdateUserContext) NotFound() error

NotFound sends a HTTP response with status code 404.

type UpdateUserPayload

type UpdateUserPayload struct {
	Email          *string `json:"email,omitempty" xml:"email,omitempty"`
	FirstName      *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Password       *string `json:"password,omitempty" xml:"password,omitempty"`
	Role           *string `json:"role,omitempty" xml:"role,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

UpdateUserPayload is the user update action payload.

func (*UpdateUserPayload) Validate

func (payload *UpdateUserPayload) Validate() (err error)

Validate runs the validation rules defined in the design.

type User

type User struct {
	// Email address of user
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// First name of user
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	// API href of record
	Href *string `json:"href,omitempty" xml:"href,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// Last name of user
	LastName *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	// User's role
	Role     *string `json:"role,omitempty" xml:"role,omitempty"`
	TenantID *int    `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
}

User media type.

Identifier: application/vnd.user+json

func (*User) Validate

func (mt *User) Validate() (err error)

Validate validates the User media type instance.

type UserCollection

type UserCollection []*User

UserCollection media type is a collection of User.

Identifier: application/vnd.user+json; type=collection

func (UserCollection) Validate

func (mt UserCollection) Validate() (err error)

Validate validates the UserCollection media type instance.

type UserController

type UserController interface {
	goa.Muxer
	Create(*CreateUserContext) error
	Delete(*DeleteUserContext) error
	List(*ListUserContext) error
	Show(*ShowUserContext) error
	Update(*UpdateUserContext) error
}

UserController is the controller interface for the User actions.

type UserLink struct {
	// Email address of user
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// API href of record
	Href *string `json:"href,omitempty" xml:"href,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
}

UserLink media type.

Identifier: application/vnd.user+json

func (*UserLink) Validate

func (mt *UserLink) Validate() (err error)

Validate validates the UserLink media type instance.

type UserPayload

type UserPayload struct {
	Email          *string `json:"email,omitempty" xml:"email,omitempty"`
	FirstName      *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Password       *string `json:"password,omitempty" xml:"password,omitempty"`
	Role           *string `json:"role,omitempty" xml:"role,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

UserPayload user type.

func (*UserPayload) Validate

func (ut *UserPayload) Validate() (err error)

Validate validates the UserPayload type instance.

type UserTenant

type UserTenant struct {
	// Activation status
	Active *bool `json:"active,omitempty" xml:"active,omitempty"`
	// Email address of user
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// First name of user
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	// API href of record
	Href *string `json:"href,omitempty" xml:"href,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// Last name of user
	LastName *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	// User's role
	Role     *string `json:"role,omitempty" xml:"role,omitempty"`
	TenantID *int    `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// Validation status
	Validated *bool `json:"validated,omitempty" xml:"validated,omitempty"`
}

UserTenant media type.

Identifier: application/vnd.user+json

func (*UserTenant) Validate

func (mt *UserTenant) Validate() (err error)

Validate validates the UserTenant media type instance.

type UserTenantCollection

type UserTenantCollection []*UserTenant

UserTenantCollection media type is a collection of UserTenant.

Identifier: application/vnd.user+json; type=collection

func (UserTenantCollection) Validate

func (mt UserTenantCollection) Validate() (err error)

Validate validates the UserTenantCollection media type instance.

type ValidateController

type ValidateController interface {
	goa.Muxer
	Validate(*ValidateValidateContext) error
}

ValidateController is the controller interface for the Validate actions.

type ValidateValidateContext

type ValidateValidateContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Service *goa.Service
	UserID  string
	V       *string
}

ValidateValidateContext provides the validate validate action context.

func NewValidateValidateContext

func NewValidateValidateContext(ctx context.Context, service *goa.Service) (*ValidateValidateContext, error)

NewValidateValidateContext parses the incoming request URL and body, performs validations and creates the context used by the validate controller validate action.

func (*ValidateValidateContext) NotFound

func (ctx *ValidateValidateContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ValidateValidateContext) OK

func (ctx *ValidateValidateContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

Jump to

Keyboard shortcuts

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