Documentation ¶
Index ¶
- Constants
- Variables
- func NewSearchEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
- type Auther
- type BadRequestT
- type Endpoints
- type InvalidParameterT
- type InvalidScopesT
- type LinkT
- type NotImplementedT
- type SearchListRT
- type SearchPayload
- type Service
- type ServiceNotAvailableT
- type UnauthorizedT
- type UnsupportedContentTypeT
Constants ¶
const APIName = "ivcap"
APIName is the name of the API as defined in the design.
const APIVersion = "0.43"
APIVersion is the version of the API as defined in the design.
const ServiceName = "search"
ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.
Variables ¶
var MethodNames = [1]string{"search"}
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 NewSearchEndpoint ¶
func NewSearchEndpoint(s Service, authJWTFn security.AuthJWTFunc) goa.Endpoint
NewSearchEndpoint returns an endpoint function that calls the method "search" of service "search".
Types ¶
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 BadRequestT ¶
type BadRequestT struct { // Information message Message string }
Something wasn't right with this request
func (*BadRequestT) Error ¶
func (e *BadRequestT) Error() string
Error returns an error description.
func (*BadRequestT) ErrorName
deprecated
func (e *BadRequestT) ErrorName() string
ErrorName returns "BadRequestT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*BadRequestT) GoaErrorName ¶
func (e *BadRequestT) GoaErrorName() string
GoaErrorName returns "BadRequestT".
type Endpoints ¶
Endpoints wraps the "search" service endpoints.
func NewEndpoints ¶
NewEndpoints wraps the methods of the "search" service with endpoints.
type InvalidParameterT ¶ added in v0.39.0
type InvalidParameterT struct { // message describing expected type or pattern. Message string // name of parameter. Name string // provided parameter value. Value *string }
InvalidParameterT is the error returned when a parameter has the wrong value.
func (*InvalidParameterT) Error ¶ added in v0.39.0
func (e *InvalidParameterT) Error() string
Error returns an error description.
func (*InvalidParameterT) ErrorName
deprecated
added in
v0.39.0
func (e *InvalidParameterT) ErrorName() string
ErrorName returns "InvalidParameterT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*InvalidParameterT) GoaErrorName ¶ added in v0.39.0
func (e *InvalidParameterT) GoaErrorName() string
GoaErrorName returns "InvalidParameterT".
type InvalidScopesT ¶
type InvalidScopesT struct { // ID of involved resource ID *string // Message of error Message string }
Caller not authorized to access required scope.
func (*InvalidScopesT) Error ¶
func (e *InvalidScopesT) Error() string
Error returns an error description.
func (*InvalidScopesT) ErrorName
deprecated
func (e *InvalidScopesT) ErrorName() string
ErrorName returns "InvalidScopesT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*InvalidScopesT) GoaErrorName ¶
func (e *InvalidScopesT) GoaErrorName() string
GoaErrorName returns "InvalidScopesT".
type NotImplementedT ¶
type NotImplementedT struct { // Information message Message string }
Method is not yet implemented.
func (*NotImplementedT) Error ¶
func (e *NotImplementedT) Error() string
Error returns an error description.
func (*NotImplementedT) ErrorName
deprecated
func (e *NotImplementedT) ErrorName() string
ErrorName returns "NotImplementedT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*NotImplementedT) GoaErrorName ¶
func (e *NotImplementedT) GoaErrorName() string
GoaErrorName returns "NotImplementedT".
type SearchListRT ¶
type SearchListRT struct { // List of search result Items []any // Time at which this list was valid AtTime string Links []*LinkT }
SearchListRT is the result type of the search service search method.
type SearchPayload ¶
type SearchPayload struct { // Query Query []byte // Content-Type header, MUST be of application/json. ContentType string `json:"content-type"` // Return search which where valid at that time [now] AtTime *string `json:"at-time,omitempty"` // The 'limit' system query option requests the number of items in the queried // collection to be included in the result. Limit int // The content of '$page' is returned in the 'links' part of a previous query // and // will when set, ALL other parameters, except for 'limit' are ignored. Page any // JWT used for authentication JWT string }
SearchPayload is the payload type of the search service search method.
type Service ¶
type Service interface { // Execute query provided in body and return a list of search result. Search(context.Context, *SearchPayload) (res *SearchListRT, err error) }
Provides a search capability across the entire system.
type ServiceNotAvailableT ¶
type ServiceNotAvailableT struct { }
Service necessary to fulfil the request is currently not available.
func (*ServiceNotAvailableT) Error ¶
func (e *ServiceNotAvailableT) Error() string
Error returns an error description.
func (*ServiceNotAvailableT) ErrorName
deprecated
func (e *ServiceNotAvailableT) ErrorName() string
ErrorName returns "ServiceNotAvailableT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*ServiceNotAvailableT) GoaErrorName ¶
func (e *ServiceNotAvailableT) GoaErrorName() string
GoaErrorName returns "ServiceNotAvailableT".
type UnauthorizedT ¶
type UnauthorizedT struct { }
Unauthorized access to resource
func (*UnauthorizedT) Error ¶
func (e *UnauthorizedT) Error() string
Error returns an error description.
func (*UnauthorizedT) ErrorName
deprecated
func (e *UnauthorizedT) ErrorName() string
ErrorName returns "UnauthorizedT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*UnauthorizedT) GoaErrorName ¶
func (e *UnauthorizedT) GoaErrorName() string
GoaErrorName returns "UnauthorizedT".
type UnsupportedContentTypeT ¶ added in v0.39.0
type UnsupportedContentTypeT struct { // message describing expected type or pattern. Message string }
UnsupportedContentType is the error returned when the provided content type is not supported.
func (*UnsupportedContentTypeT) Error ¶ added in v0.39.0
func (e *UnsupportedContentTypeT) Error() string
Error returns an error description.
func (*UnsupportedContentTypeT) ErrorName
deprecated
added in
v0.39.0
func (e *UnsupportedContentTypeT) ErrorName() string
ErrorName returns "UnsupportedContentTypeT".
Deprecated: Use GoaErrorName - https://github.com/goadesign/goa/issues/3105
func (*UnsupportedContentTypeT) GoaErrorName ¶ added in v0.39.0
func (e *UnsupportedContentTypeT) GoaErrorName() string
GoaErrorName returns "UnsupportedContentTypeT".