server

package
v0.4.23 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeQueryOrgsRequest added in v0.4.0

func DecodeQueryOrgsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeQueryOrgsRequest returns a decoder for requests sent to the query-svc query-orgs endpoint.

func DecodeQueryResourcesCountRequest added in v0.4.5

func DecodeQueryResourcesCountRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeQueryResourcesCountRequest returns a decoder for requests sent to the query-svc query-resources-count endpoint.

func DecodeQueryResourcesRequest

func DecodeQueryResourcesRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeQueryResourcesRequest returns a decoder for requests sent to the query-svc query-resources endpoint.

func DecodeSuggestOrgsRequest added in v0.4.1

func DecodeSuggestOrgsRequest(mux goahttp.Muxer, decoder func(*http.Request) goahttp.Decoder) func(*http.Request) (any, error)

DecodeSuggestOrgsRequest returns a decoder for requests sent to the query-svc suggest-orgs endpoint.

func EncodeLivezResponse

func EncodeLivezResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeLivezResponse returns an encoder for responses returned by the query-svc livez endpoint.

func EncodeQueryOrgsError added in v0.4.0

func EncodeQueryOrgsError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeQueryOrgsError returns an encoder for errors returned by the query-orgs query-svc endpoint.

func EncodeQueryOrgsResponse added in v0.4.0

func EncodeQueryOrgsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeQueryOrgsResponse returns an encoder for responses returned by the query-svc query-orgs endpoint.

func EncodeQueryResourcesCountError added in v0.4.5

func EncodeQueryResourcesCountError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeQueryResourcesCountError returns an encoder for errors returned by the query-resources-count query-svc endpoint.

func EncodeQueryResourcesCountResponse added in v0.4.5

func EncodeQueryResourcesCountResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeQueryResourcesCountResponse returns an encoder for responses returned by the query-svc query-resources-count endpoint.

func EncodeQueryResourcesError

func EncodeQueryResourcesError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeQueryResourcesError returns an encoder for errors returned by the query-resources query-svc endpoint.

func EncodeQueryResourcesResponse

func EncodeQueryResourcesResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeQueryResourcesResponse returns an encoder for responses returned by the query-svc query-resources endpoint.

func EncodeReadyzError

func EncodeReadyzError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeReadyzError returns an encoder for errors returned by the readyz query-svc endpoint.

func EncodeReadyzResponse

func EncodeReadyzResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeReadyzResponse returns an encoder for responses returned by the query-svc readyz endpoint.

func EncodeSuggestOrgsError added in v0.4.1

func EncodeSuggestOrgsError(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder, formatter func(ctx context.Context, err error) goahttp.Statuser) func(context.Context, http.ResponseWriter, error) error

EncodeSuggestOrgsError returns an encoder for errors returned by the suggest-orgs query-svc endpoint.

func EncodeSuggestOrgsResponse added in v0.4.1

func EncodeSuggestOrgsResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error

EncodeSuggestOrgsResponse returns an encoder for responses returned by the query-svc suggest-orgs endpoint.

func LivezQuerySvcPath

func LivezQuerySvcPath() string

LivezQuerySvcPath returns the URL path to the query-svc service livez HTTP endpoint.

func Mount

func Mount(mux goahttp.Muxer, h *Server)

Mount configures the mux to serve the query-svc endpoints.

func MountGenHTTPOpenapi3JSON

func MountGenHTTPOpenapi3JSON(mux goahttp.Muxer, h http.Handler)

MountGenHTTPOpenapi3JSON configures the mux to serve GET request made to "/_query/openapi3.json".

func MountGenHTTPOpenapi3Yaml added in v0.3.1

func MountGenHTTPOpenapi3Yaml(mux goahttp.Muxer, h http.Handler)

MountGenHTTPOpenapi3Yaml configures the mux to serve GET request made to "/_query/openapi3.yaml".

func MountGenHTTPOpenapiJSON added in v0.3.1

func MountGenHTTPOpenapiJSON(mux goahttp.Muxer, h http.Handler)

MountGenHTTPOpenapiJSON configures the mux to serve GET request made to "/_query/openapi.json".

func MountGenHTTPOpenapiYaml added in v0.3.1

func MountGenHTTPOpenapiYaml(mux goahttp.Muxer, h http.Handler)

MountGenHTTPOpenapiYaml configures the mux to serve GET request made to "/_query/openapi.yaml".

func MountLivezHandler

func MountLivezHandler(mux goahttp.Muxer, h http.Handler)

MountLivezHandler configures the mux to serve the "query-svc" service "livez" endpoint.

func MountQueryOrgsHandler added in v0.4.0

func MountQueryOrgsHandler(mux goahttp.Muxer, h http.Handler)

MountQueryOrgsHandler configures the mux to serve the "query-svc" service "query-orgs" endpoint.

func MountQueryResourcesCountHandler added in v0.4.5

func MountQueryResourcesCountHandler(mux goahttp.Muxer, h http.Handler)

MountQueryResourcesCountHandler configures the mux to serve the "query-svc" service "query-resources-count" endpoint.

func MountQueryResourcesHandler

func MountQueryResourcesHandler(mux goahttp.Muxer, h http.Handler)

MountQueryResourcesHandler configures the mux to serve the "query-svc" service "query-resources" endpoint.

func MountReadyzHandler

func MountReadyzHandler(mux goahttp.Muxer, h http.Handler)

MountReadyzHandler configures the mux to serve the "query-svc" service "readyz" endpoint.

func MountSuggestOrgsHandler added in v0.4.1

func MountSuggestOrgsHandler(mux goahttp.Muxer, h http.Handler)

MountSuggestOrgsHandler configures the mux to serve the "query-svc" service "suggest-orgs" endpoint.

func NewLivezHandler

func NewLivezHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewLivezHandler creates a HTTP handler which loads the HTTP request and calls the "query-svc" service "livez" endpoint.

func NewQueryOrgsHandler added in v0.4.0

func NewQueryOrgsHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewQueryOrgsHandler creates a HTTP handler which loads the HTTP request and calls the "query-svc" service "query-orgs" endpoint.

func NewQueryOrgsPayload added in v0.4.0

func NewQueryOrgsPayload(version string, name *string, domain *string, bearerToken string) *querysvc.QueryOrgsPayload

NewQueryOrgsPayload builds a query-svc service query-orgs endpoint payload.

func NewQueryResourcesCountHandler added in v0.4.5

func NewQueryResourcesCountHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewQueryResourcesCountHandler creates a HTTP handler which loads the HTTP request and calls the "query-svc" service "query-resources-count" endpoint.

func NewQueryResourcesCountPayload added in v0.4.5

func NewQueryResourcesCountPayload(version string, name *string, parent *string, type_ *string, tags []string, tagsAll []string, dateField *string, dateFrom *string, dateTo *string, filters []string, filtersAll []string, filtersOr []string, bearerToken string) *querysvc.QueryResourcesCountPayload

NewQueryResourcesCountPayload builds a query-svc service query-resources-count endpoint payload.

func NewQueryResourcesHandler

func NewQueryResourcesHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewQueryResourcesHandler creates a HTTP handler which loads the HTTP request and calls the "query-svc" service "query-resources" endpoint.

func NewQueryResourcesPayload

func NewQueryResourcesPayload(version string, name *string, parent *string, type_ *string, tags []string, tagsAll []string, dateField *string, dateFrom *string, dateTo *string, filters []string, filtersAll []string, filtersOr []string, celFilter *string, filterGrants *string, sort string, pageToken *string, pageSize int, bearerToken string) *querysvc.QueryResourcesPayload

NewQueryResourcesPayload builds a query-svc service query-resources endpoint payload.

func NewReadyzHandler

func NewReadyzHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewReadyzHandler creates a HTTP handler which loads the HTTP request and calls the "query-svc" service "readyz" endpoint.

func NewSuggestOrgsHandler added in v0.4.1

func NewSuggestOrgsHandler(
	endpoint goa.Endpoint,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
) http.Handler

NewSuggestOrgsHandler creates a HTTP handler which loads the HTTP request and calls the "query-svc" service "suggest-orgs" endpoint.

func NewSuggestOrgsPayload added in v0.4.1

func NewSuggestOrgsPayload(version string, query string, bearerToken string) *querysvc.SuggestOrgsPayload

NewSuggestOrgsPayload builds a query-svc service suggest-orgs endpoint payload.

func QueryOrgsQuerySvcPath added in v0.4.0

func QueryOrgsQuerySvcPath() string

QueryOrgsQuerySvcPath returns the URL path to the query-svc service query-orgs HTTP endpoint.

func QueryResourcesCountQuerySvcPath added in v0.4.5

func QueryResourcesCountQuerySvcPath() string

QueryResourcesCountQuerySvcPath returns the URL path to the query-svc service query-resources-count HTTP endpoint.

func QueryResourcesQuerySvcPath

func QueryResourcesQuerySvcPath() string

QueryResourcesQuerySvcPath returns the URL path to the query-svc service query-resources HTTP endpoint.

func ReadyzQuerySvcPath

func ReadyzQuerySvcPath() string

ReadyzQuerySvcPath returns the URL path to the query-svc service readyz HTTP endpoint.

func SuggestOrgsQuerySvcPath added in v0.4.1

func SuggestOrgsQuerySvcPath() string

SuggestOrgsQuerySvcPath returns the URL path to the query-svc service suggest-orgs HTTP endpoint.

Types

type MountPoint

type MountPoint struct {
	// Method is the name of the service method served by the mounted HTTP handler.
	Method string
	// Verb is the HTTP method used to match requests to the mounted handler.
	Verb string
	// Pattern is the HTTP request path pattern used to match requests to the
	// mounted handler.
	Pattern string
}

MountPoint holds information about the mounted endpoints.

type OrganizationSuggestionResponseBody added in v0.4.1

type OrganizationSuggestionResponseBody struct {
	// Organization name
	Name string `form:"name" json:"name" xml:"name"`
	// Organization domain
	Domain string `form:"domain" json:"domain" xml:"domain"`
	Logo *string `form:"logo,omitempty" json:"logo,omitempty" xml:"logo,omitempty"`
}

OrganizationSuggestionResponseBody is used to define fields on response body types.

type QueryOrgsBadRequestResponseBody added in v0.4.0

type QueryOrgsBadRequestResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryOrgsBadRequestResponseBody is the type of the "query-svc" service "query-orgs" endpoint HTTP response body for the "BadRequest" error.

func NewQueryOrgsBadRequestResponseBody added in v0.4.0

func NewQueryOrgsBadRequestResponseBody(res *querysvc.BadRequestError) *QueryOrgsBadRequestResponseBody

NewQueryOrgsBadRequestResponseBody builds the HTTP response body from the result of the "query-orgs" endpoint of the "query-svc" service.

type QueryOrgsInternalServerErrorResponseBody added in v0.4.0

type QueryOrgsInternalServerErrorResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryOrgsInternalServerErrorResponseBody is the type of the "query-svc" service "query-orgs" endpoint HTTP response body for the "InternalServerError" error.

func NewQueryOrgsInternalServerErrorResponseBody added in v0.4.0

func NewQueryOrgsInternalServerErrorResponseBody(res *querysvc.InternalServerError) *QueryOrgsInternalServerErrorResponseBody

NewQueryOrgsInternalServerErrorResponseBody builds the HTTP response body from the result of the "query-orgs" endpoint of the "query-svc" service.

type QueryOrgsNotFoundResponseBody added in v0.4.0

type QueryOrgsNotFoundResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryOrgsNotFoundResponseBody is the type of the "query-svc" service "query-orgs" endpoint HTTP response body for the "NotFound" error.

func NewQueryOrgsNotFoundResponseBody added in v0.4.0

func NewQueryOrgsNotFoundResponseBody(res *querysvc.NotFoundError) *QueryOrgsNotFoundResponseBody

NewQueryOrgsNotFoundResponseBody builds the HTTP response body from the result of the "query-orgs" endpoint of the "query-svc" service.

type QueryOrgsResponseBody added in v0.4.0

type QueryOrgsResponseBody struct {
	// Organization name
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// Organization domain
	Domain *string `form:"domain,omitempty" json:"domain,omitempty" xml:"domain,omitempty"`
	// Organization industry classification
	Industry *string `form:"industry,omitempty" json:"industry,omitempty" xml:"industry,omitempty"`
	// Business sector classification
	Sector *string `form:"sector,omitempty" json:"sector,omitempty" xml:"sector,omitempty"`
	// Employee count or range
	Employees *string `form:"employees,omitempty" json:"employees,omitempty" xml:"employees,omitempty"`
}

QueryOrgsResponseBody is the type of the "query-svc" service "query-orgs" endpoint HTTP response body.

func NewQueryOrgsResponseBody added in v0.4.0

func NewQueryOrgsResponseBody(res *querysvc.Organization) *QueryOrgsResponseBody

NewQueryOrgsResponseBody builds the HTTP response body from the result of the "query-orgs" endpoint of the "query-svc" service.

type QueryOrgsServiceUnavailableResponseBody added in v0.4.0

type QueryOrgsServiceUnavailableResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryOrgsServiceUnavailableResponseBody is the type of the "query-svc" service "query-orgs" endpoint HTTP response body for the "ServiceUnavailable" error.

func NewQueryOrgsServiceUnavailableResponseBody added in v0.4.0

func NewQueryOrgsServiceUnavailableResponseBody(res *querysvc.ServiceUnavailableError) *QueryOrgsServiceUnavailableResponseBody

NewQueryOrgsServiceUnavailableResponseBody builds the HTTP response body from the result of the "query-orgs" endpoint of the "query-svc" service.

type QueryResourcesBadRequestResponseBody

type QueryResourcesBadRequestResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryResourcesBadRequestResponseBody is the type of the "query-svc" service "query-resources" endpoint HTTP response body for the "BadRequest" error.

func NewQueryResourcesBadRequestResponseBody

func NewQueryResourcesBadRequestResponseBody(res *querysvc.BadRequestError) *QueryResourcesBadRequestResponseBody

NewQueryResourcesBadRequestResponseBody builds the HTTP response body from the result of the "query-resources" endpoint of the "query-svc" service.

type QueryResourcesCountBadRequestResponseBody added in v0.4.5

type QueryResourcesCountBadRequestResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryResourcesCountBadRequestResponseBody is the type of the "query-svc" service "query-resources-count" endpoint HTTP response body for the "BadRequest" error.

func NewQueryResourcesCountBadRequestResponseBody added in v0.4.5

func NewQueryResourcesCountBadRequestResponseBody(res *querysvc.BadRequestError) *QueryResourcesCountBadRequestResponseBody

NewQueryResourcesCountBadRequestResponseBody builds the HTTP response body from the result of the "query-resources-count" endpoint of the "query-svc" service.

type QueryResourcesCountInternalServerErrorResponseBody added in v0.4.5

type QueryResourcesCountInternalServerErrorResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryResourcesCountInternalServerErrorResponseBody is the type of the "query-svc" service "query-resources-count" endpoint HTTP response body for the "InternalServerError" error.

func NewQueryResourcesCountInternalServerErrorResponseBody added in v0.4.5

func NewQueryResourcesCountInternalServerErrorResponseBody(res *querysvc.InternalServerError) *QueryResourcesCountInternalServerErrorResponseBody

NewQueryResourcesCountInternalServerErrorResponseBody builds the HTTP response body from the result of the "query-resources-count" endpoint of the "query-svc" service.

type QueryResourcesCountResponseBody added in v0.4.5

type QueryResourcesCountResponseBody struct {
	// Count of resources found
	Count uint64 `form:"count" json:"count" xml:"count"`
	// True if count is not guaranteed to be exhaustive: client should request a
	// narrower query
	HasMore bool `form:"has_more" json:"has_more" xml:"has_more"`
}

QueryResourcesCountResponseBody is the type of the "query-svc" service "query-resources-count" endpoint HTTP response body.

func NewQueryResourcesCountResponseBody added in v0.4.5

func NewQueryResourcesCountResponseBody(res *querysvc.QueryResourcesCountResult) *QueryResourcesCountResponseBody

NewQueryResourcesCountResponseBody builds the HTTP response body from the result of the "query-resources-count" endpoint of the "query-svc" service.

type QueryResourcesCountServiceUnavailableResponseBody added in v0.4.5

type QueryResourcesCountServiceUnavailableResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryResourcesCountServiceUnavailableResponseBody is the type of the "query-svc" service "query-resources-count" endpoint HTTP response body for the "ServiceUnavailable" error.

func NewQueryResourcesCountServiceUnavailableResponseBody added in v0.4.5

func NewQueryResourcesCountServiceUnavailableResponseBody(res *querysvc.ServiceUnavailableError) *QueryResourcesCountServiceUnavailableResponseBody

NewQueryResourcesCountServiceUnavailableResponseBody builds the HTTP response body from the result of the "query-resources-count" endpoint of the "query-svc" service.

type QueryResourcesInternalServerErrorResponseBody

type QueryResourcesInternalServerErrorResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryResourcesInternalServerErrorResponseBody is the type of the "query-svc" service "query-resources" endpoint HTTP response body for the "InternalServerError" error.

func NewQueryResourcesInternalServerErrorResponseBody

func NewQueryResourcesInternalServerErrorResponseBody(res *querysvc.InternalServerError) *QueryResourcesInternalServerErrorResponseBody

NewQueryResourcesInternalServerErrorResponseBody builds the HTTP response body from the result of the "query-resources" endpoint of the "query-svc" service.

type QueryResourcesResponseBody

type QueryResourcesResponseBody struct {
	// Resources found
	Resources []*ResourceResponseBody `form:"resources" json:"resources" xml:"resources"`
	// Opaque token if more results are available
	PageToken *string `form:"page_token,omitempty" json:"page_token,omitempty" xml:"page_token,omitempty"`
}

QueryResourcesResponseBody is the type of the "query-svc" service "query-resources" endpoint HTTP response body.

func NewQueryResourcesResponseBody

func NewQueryResourcesResponseBody(res *querysvc.QueryResourcesResult) *QueryResourcesResponseBody

NewQueryResourcesResponseBody builds the HTTP response body from the result of the "query-resources" endpoint of the "query-svc" service.

type QueryResourcesServiceUnavailableResponseBody

type QueryResourcesServiceUnavailableResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

QueryResourcesServiceUnavailableResponseBody is the type of the "query-svc" service "query-resources" endpoint HTTP response body for the "ServiceUnavailable" error.

func NewQueryResourcesServiceUnavailableResponseBody

func NewQueryResourcesServiceUnavailableResponseBody(res *querysvc.ServiceUnavailableError) *QueryResourcesServiceUnavailableResponseBody

NewQueryResourcesServiceUnavailableResponseBody builds the HTTP response body from the result of the "query-resources" endpoint of the "query-svc" service.

type ReadyzNotReadyResponseBody

type ReadyzNotReadyResponseBody struct {
	// Name is the name of this class of errors.
	Name string `form:"name" json:"name" xml:"name"`
	// ID is a unique identifier for this particular occurrence of the problem.
	ID string `form:"id" json:"id" xml:"id"`
	// Message is a human-readable explanation specific to this occurrence of the
	// problem.
	Message string `form:"message" json:"message" xml:"message"`
	// Is the error temporary?
	Temporary bool `form:"temporary" json:"temporary" xml:"temporary"`
	// Is the error a timeout?
	Timeout bool `form:"timeout" json:"timeout" xml:"timeout"`
	// Is the error a server-side fault?
	Fault bool `form:"fault" json:"fault" xml:"fault"`
}

ReadyzNotReadyResponseBody is the type of the "query-svc" service "readyz" endpoint HTTP response body for the "NotReady" error.

func NewReadyzNotReadyResponseBody

func NewReadyzNotReadyResponseBody(res *goa.ServiceError) *ReadyzNotReadyResponseBody

NewReadyzNotReadyResponseBody builds the HTTP response body from the result of the "readyz" endpoint of the "query-svc" service.

type ResourceResponseBody

type ResourceResponseBody struct {
	// Resource type
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// Resource ID (within its resource collection)
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Resource data snapshot
	Data any `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"`
}

ResourceResponseBody is used to define fields on response body types.

type Server

type Server struct {
	Mounts              []*MountPoint
	QueryResources      http.Handler
	QueryResourcesCount http.Handler
	QueryOrgs           http.Handler
	SuggestOrgs         http.Handler
	Readyz              http.Handler
	Livez               http.Handler
	GenHTTPOpenapiJSON  http.Handler
	GenHTTPOpenapiYaml  http.Handler
	GenHTTPOpenapi3JSON http.Handler
	GenHTTPOpenapi3Yaml http.Handler
}

Server lists the query-svc service endpoint HTTP handlers.

func New

func New(
	e *querysvc.Endpoints,
	mux goahttp.Muxer,
	decoder func(*http.Request) goahttp.Decoder,
	encoder func(context.Context, http.ResponseWriter) goahttp.Encoder,
	errhandler func(context.Context, http.ResponseWriter, error),
	formatter func(ctx context.Context, err error) goahttp.Statuser,
	fileSystemGenHTTPOpenapiJSON http.FileSystem,
	fileSystemGenHTTPOpenapiYaml http.FileSystem,
	fileSystemGenHTTPOpenapi3JSON http.FileSystem,
	fileSystemGenHTTPOpenapi3Yaml http.FileSystem,
) *Server

New instantiates HTTP handlers for all the query-svc service endpoints using the provided encoder and decoder. The handlers are mounted on the given mux using the HTTP verb and path defined in the design. errhandler is called whenever a response fails to be encoded. formatter is used to format errors returned by the service methods prior to encoding. Both errhandler and formatter are optional and can be nil.

func (*Server) MethodNames

func (s *Server) MethodNames() []string

MethodNames returns the methods served.

func (*Server) Mount

func (s *Server) Mount(mux goahttp.Muxer)

Mount configures the mux to serve the query-svc endpoints.

func (*Server) Service

func (s *Server) Service() string

Service returns the name of the service served.

func (*Server) Use

func (s *Server) Use(m func(http.Handler) http.Handler)

Use wraps the server handlers with the given middleware.

type SuggestOrgsBadRequestResponseBody added in v0.4.1

type SuggestOrgsBadRequestResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

SuggestOrgsBadRequestResponseBody is the type of the "query-svc" service "suggest-orgs" endpoint HTTP response body for the "BadRequest" error.

func NewSuggestOrgsBadRequestResponseBody added in v0.4.1

func NewSuggestOrgsBadRequestResponseBody(res *querysvc.BadRequestError) *SuggestOrgsBadRequestResponseBody

NewSuggestOrgsBadRequestResponseBody builds the HTTP response body from the result of the "suggest-orgs" endpoint of the "query-svc" service.

type SuggestOrgsInternalServerErrorResponseBody added in v0.4.1

type SuggestOrgsInternalServerErrorResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

SuggestOrgsInternalServerErrorResponseBody is the type of the "query-svc" service "suggest-orgs" endpoint HTTP response body for the "InternalServerError" error.

func NewSuggestOrgsInternalServerErrorResponseBody added in v0.4.1

func NewSuggestOrgsInternalServerErrorResponseBody(res *querysvc.InternalServerError) *SuggestOrgsInternalServerErrorResponseBody

NewSuggestOrgsInternalServerErrorResponseBody builds the HTTP response body from the result of the "suggest-orgs" endpoint of the "query-svc" service.

type SuggestOrgsResponseBody added in v0.4.1

type SuggestOrgsResponseBody struct {
	// Organization suggestions
	Suggestions []*OrganizationSuggestionResponseBody `form:"suggestions" json:"suggestions" xml:"suggestions"`
}

SuggestOrgsResponseBody is the type of the "query-svc" service "suggest-orgs" endpoint HTTP response body.

func NewSuggestOrgsResponseBody added in v0.4.1

func NewSuggestOrgsResponseBody(res *querysvc.SuggestOrgsResult) *SuggestOrgsResponseBody

NewSuggestOrgsResponseBody builds the HTTP response body from the result of the "suggest-orgs" endpoint of the "query-svc" service.

type SuggestOrgsServiceUnavailableResponseBody added in v0.4.1

type SuggestOrgsServiceUnavailableResponseBody struct {
	// Error message
	Message string `form:"message" json:"message" xml:"message"`
}

SuggestOrgsServiceUnavailableResponseBody is the type of the "query-svc" service "suggest-orgs" endpoint HTTP response body for the "ServiceUnavailable" error.

func NewSuggestOrgsServiceUnavailableResponseBody added in v0.4.1

func NewSuggestOrgsServiceUnavailableResponseBody(res *querysvc.ServiceUnavailableError) *SuggestOrgsServiceUnavailableResponseBody

NewSuggestOrgsServiceUnavailableResponseBody builds the HTTP response body from the result of the "suggest-orgs" endpoint of the "query-svc" service.

Jump to

Keyboard shortcuts

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