app

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayPrismHref

func ArrayPrismHref() string

ArrayPrismHref returns the resource href.

func HashPrismHref

func HashPrismHref() string

HashPrismHref returns the resource href.

func MountArrayPrismController

func MountArrayPrismController(service *goa.Service, ctrl ArrayPrismController)

MountArrayPrismController "mounts" a ArrayPrism resource controller on the given service.

func MountHashPrismController

func MountHashPrismController(service *goa.Service, ctrl HashPrismController)

MountHashPrismController "mounts" a HashPrism resource controller on the given service.

func MountPrismController

func MountPrismController(service *goa.Service, ctrl PrismController)

MountPrismController "mounts" a Prism resource controller on the given service.

func PrismHref

func PrismHref() string

PrismHref returns the resource href.

Types

type ArrayPrismController

type ArrayPrismController interface {
	goa.Muxer
	Create(*CreateArrayPrismContext) error
	Show(*ShowArrayPrismContext) error
}

ArrayPrismController is the controller interface for the ArrayPrism actions.

type CreateArrayPrismContext

type CreateArrayPrismContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *CreateArrayPrismPayload
}

CreateArrayPrismContext provides the array_prism create action context.

func NewCreateArrayPrismContext

func NewCreateArrayPrismContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreateArrayPrismContext, error)

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

type CreateArrayPrismPayload

type CreateArrayPrismPayload struct {
	// Any array member
	AnyArray []interface{} `form:"any_array,omitempty" json:"any_array,omitempty" yaml:"any_array,omitempty" xml:"any_array,omitempty"`
	// Boolean array member
	BoolArray []bool `form:"bool_array,omitempty" json:"bool_array,omitempty" yaml:"bool_array,omitempty" xml:"bool_array,omitempty"`
	// DateTime array member
	DateTimeArray []time.Time `` /* 130-byte string literal not displayed */
	// Integer array member
	IntArray []int `form:"int_array,omitempty" json:"int_array,omitempty" yaml:"int_array,omitempty" xml:"int_array,omitempty"`
	// Number array member
	NumArray []float64 `form:"num_array,omitempty" json:"num_array,omitempty" yaml:"num_array,omitempty" xml:"num_array,omitempty"`
	// String array member
	StringArray []string `form:"string_array,omitempty" json:"string_array,omitempty" yaml:"string_array,omitempty" xml:"string_array,omitempty"`
	// UUID array member
	UUIDArray []uuid.UUID `form:"uuid_array,omitempty" json:"uuid_array,omitempty" yaml:"uuid_array,omitempty" xml:"uuid_array,omitempty"`
}

CreateArrayPrismPayload is the array_prism create action payload.

type CreateHashPrismContext

type CreateHashPrismContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *CreateHashPrismPayload
}

CreateHashPrismContext provides the hash_prism create action context.

func NewCreateHashPrismContext

func NewCreateHashPrismContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreateHashPrismContext, error)

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

type CreateHashPrismPayload

type CreateHashPrismPayload struct {
	// Hash with Any value member
	AnyValHash map[string]interface{} `form:"any_val_hash,omitempty" json:"any_val_hash,omitempty" yaml:"any_val_hash,omitempty" xml:"any_val_hash,omitempty"`
	// Hash with Boolean value member
	BoolValHash map[string]bool `form:"bool_val_hash,omitempty" json:"bool_val_hash,omitempty" yaml:"bool_val_hash,omitempty" xml:"bool_val_hash,omitempty"`
	// Hash with DateTime value member
	DataTimeValHash map[string]time.Time `` /* 142-byte string literal not displayed */
	// Hash with Integer value member
	IntValHash map[string]int `form:"int_val_hash,omitempty" json:"int_val_hash,omitempty" yaml:"int_val_hash,omitempty" xml:"int_val_hash,omitempty"`
	// Hash with Number value member
	NumValHash map[string]float64 `form:"num_val_hash,omitempty" json:"num_val_hash,omitempty" yaml:"num_val_hash,omitempty" xml:"num_val_hash,omitempty"`
	// Hash with String value member
	StringValHash map[string]string `` /* 130-byte string literal not displayed */
	// Hash with UUID value member
	UUIDValHash map[string]uuid.UUID `form:"uuid_val_hash,omitempty" json:"uuid_val_hash,omitempty" yaml:"uuid_val_hash,omitempty" xml:"uuid_val_hash,omitempty"`
}

CreateHashPrismPayload is the hash_prism create action payload.

type CreatePrismContext

type CreatePrismContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	Payload *CreatePrismPayload
}

CreatePrismContext provides the prism create action context.

func NewCreatePrismContext

func NewCreatePrismContext(ctx context.Context, r *http.Request, service *goa.Service) (*CreatePrismContext, error)

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

type CreatePrismPayload

type CreatePrismPayload struct {
	// Any member
	AnyMember interface{} `form:"any_member,omitempty" json:"any_member,omitempty" yaml:"any_member,omitempty" xml:"any_member,omitempty"`
	// Boolean member
	BoolMember *bool `form:"bool_member,omitempty" json:"bool_member,omitempty" yaml:"bool_member,omitempty" xml:"bool_member,omitempty"`
	// DateTime member
	DateTimeMember *time.Time `` /* 134-byte string literal not displayed */
	// Integer member
	IntMember *int `form:"int_member,omitempty" json:"int_member,omitempty" yaml:"int_member,omitempty" xml:"int_member,omitempty"`
	// Number member
	NumMember *float64 `form:"num_member,omitempty" json:"num_member,omitempty" yaml:"num_member,omitempty" xml:"num_member,omitempty"`
	// String member
	StringMember *string `form:"string_member,omitempty" json:"string_member,omitempty" yaml:"string_member,omitempty" xml:"string_member,omitempty"`
	// UUID member
	UUIDMember *uuid.UUID `form:"uuid_member,omitempty" json:"uuid_member,omitempty" yaml:"uuid_member,omitempty" xml:"uuid_member,omitempty"`
}

CreatePrismPayload is the prism create action payload.

type GoadesignExamplesArrayprism

type GoadesignExamplesArrayprism struct {
	// Any attribute
	AnyAtt interface{} `form:"any_att,omitempty" json:"any_att,omitempty" yaml:"any_att,omitempty" xml:"any_att,omitempty"`
	// Boolean attribute
	BoolAtt *bool `form:"bool_att,omitempty" json:"bool_att,omitempty" yaml:"bool_att,omitempty" xml:"bool_att,omitempty"`
	// DateTime attribute
	DateTimeAtt *time.Time `form:"date_time_att,omitempty" json:"date_time_att,omitempty" yaml:"date_time_att,omitempty" xml:"date_time_att,omitempty"`
	// Integer attribute
	IntAtt *int `form:"int_att,omitempty" json:"int_att,omitempty" yaml:"int_att,omitempty" xml:"int_att,omitempty"`
	// Number attribute
	NumAtt *float64 `form:"num_att,omitempty" json:"num_att,omitempty" yaml:"num_att,omitempty" xml:"num_att,omitempty"`
	// String attribute
	StringAtt *string `form:"string_att,omitempty" json:"string_att,omitempty" yaml:"string_att,omitempty" xml:"string_att,omitempty"`
	// UUID attribute
	UUIDAtt *uuid.UUID `form:"uuid_att,omitempty" json:"uuid_att,omitempty" yaml:"uuid_att,omitempty" xml:"uuid_att,omitempty"`
}

ArrayPrismMedia is a media type with one attribute per primitive type (default view)

Identifier: application/vnd.goadesign.examples.arrayprism; view=default

type GoadesignExamplesHashprism

type GoadesignExamplesHashprism struct {
	// Hash with Any value member
	AnyValHash map[string]interface{} `form:"any_val_hash,omitempty" json:"any_val_hash,omitempty" yaml:"any_val_hash,omitempty" xml:"any_val_hash,omitempty"`
	// Hash with Boolean value member
	BoolValHash map[string]bool `form:"bool_val_hash,omitempty" json:"bool_val_hash,omitempty" yaml:"bool_val_hash,omitempty" xml:"bool_val_hash,omitempty"`
	// Hash with DateTime value member
	DateTimeValHash map[string]time.Time `` /* 142-byte string literal not displayed */
	// Hash with Integer value member
	IntValHash map[string]int `form:"int_val_hash,omitempty" json:"int_val_hash,omitempty" yaml:"int_val_hash,omitempty" xml:"int_val_hash,omitempty"`
	// Hash with Number value member
	NumValHash map[string]float64 `form:"num_val_hash,omitempty" json:"num_val_hash,omitempty" yaml:"num_val_hash,omitempty" xml:"num_val_hash,omitempty"`
	// Hash with String value member
	StringValHash map[string]string `` /* 130-byte string literal not displayed */
	// Hash with UUID value member
	UUIDValHash map[string]uuid.UUID `form:"uuid_val_hash,omitempty" json:"uuid_val_hash,omitempty" yaml:"uuid_val_hash,omitempty" xml:"uuid_val_hash,omitempty"`
}

HashPrismMedia is a media type with one hash member per primitive type: type as value, and string as key (default view)

Identifier: application/vnd.goadesign.examples.hashprism; view=default

type GoadesignExamplesPrism

type GoadesignExamplesPrism struct {
	// Any attribute
	AnyAtt interface{} `form:"any_att,omitempty" json:"any_att,omitempty" yaml:"any_att,omitempty" xml:"any_att,omitempty"`
	// Boolean attribute
	BoolAtt *bool `form:"bool_att,omitempty" json:"bool_att,omitempty" yaml:"bool_att,omitempty" xml:"bool_att,omitempty"`
	// DateTime attribute
	DateTimeAtt *time.Time `form:"date_time_att,omitempty" json:"date_time_att,omitempty" yaml:"date_time_att,omitempty" xml:"date_time_att,omitempty"`
	// Integer attribute
	IntAtt *int `form:"int_att,omitempty" json:"int_att,omitempty" yaml:"int_att,omitempty" xml:"int_att,omitempty"`
	// Number attribute
	NumAtt *float64 `form:"num_att,omitempty" json:"num_att,omitempty" yaml:"num_att,omitempty" xml:"num_att,omitempty"`
	// String attribute
	StringAtt *string `form:"string_att,omitempty" json:"string_att,omitempty" yaml:"string_att,omitempty" xml:"string_att,omitempty"`
	// UUID attribute
	UUIDAtt *uuid.UUID `form:"uuid_att,omitempty" json:"uuid_att,omitempty" yaml:"uuid_att,omitempty" xml:"uuid_att,omitempty"`
}

Prism media is a media type with ie attribute per primitive type (default view)

Identifier: application/vnd.goadesign.examples.prism; view=default

type HashPrismController

type HashPrismController interface {
	goa.Muxer
	Create(*CreateHashPrismContext) error
	Show(*ShowHashPrismContext) error
}

HashPrismController is the controller interface for the HashPrism actions.

type PrismController

type PrismController interface {
	goa.Muxer
	Create(*CreatePrismContext) error
	Show(*ShowPrismContext) error
}

PrismController is the controller interface for the Prism actions.

type ShowArrayPrismContext

type ShowArrayPrismContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	AnyArray      []interface{}
	BoolArray     []bool
	DateTimeArray []time.Time
	IntArray      []int
	NumArray      []float64
	StringArray   []string
	UUIDArray     []uuid.UUID
}

ShowArrayPrismContext provides the array_prism show action context.

func NewShowArrayPrismContext

func NewShowArrayPrismContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowArrayPrismContext, error)

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

func (*ShowArrayPrismContext) OK

OK sends a HTTP response with status code 200.

type ShowHashPrismContext

type ShowHashPrismContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

ShowHashPrismContext provides the hash_prism show action context.

func NewShowHashPrismContext

func NewShowHashPrismContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowHashPrismContext, error)

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

func (*ShowHashPrismContext) OK

OK sends a HTTP response with status code 200.

type ShowPrismContext

type ShowPrismContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	AnyParam      interface{}
	BoolParam     *bool
	DateTimeParam *time.Time
	IntParam      *int
	NumParam      *float64
	StringParam   *string
	UUIDParam     *uuid.UUID
}

ShowPrismContext provides the prism show action context.

func NewShowPrismContext

func NewShowPrismContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowPrismContext, error)

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

func (*ShowPrismContext) OK

OK sends a HTTP response with status code 200.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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