Documentation
¶
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddItemOK
- type AddItemRequest
- func (s *AddItemRequest) Decode(d *jx.Decoder) error
- func (s *AddItemRequest) Encode(e *jx.Encoder)
- func (s *AddItemRequest) GetIdentifier() string
- func (s *AddItemRequest) GetSetSpecs() []string
- func (s *AddItemRequest) MarshalJSON() ([]byte, error)
- func (s *AddItemRequest) SetIdentifier(val string)
- func (s *AddItemRequest) SetSetSpecs(val []string)
- func (s *AddItemRequest) UnmarshalJSON(data []byte) error
- func (s *AddItemRequest) Validate() error
- type AddMetadataFormatOK
- type AddMetadataFormatRequest
- func (s *AddMetadataFormatRequest) Decode(d *jx.Decoder) error
- func (s *AddMetadataFormatRequest) Encode(e *jx.Encoder)
- func (s *AddMetadataFormatRequest) GetMetadataNamespace() string
- func (s *AddMetadataFormatRequest) GetMetadataPrefix() string
- func (s *AddMetadataFormatRequest) GetSchema() string
- func (s *AddMetadataFormatRequest) MarshalJSON() ([]byte, error)
- func (s *AddMetadataFormatRequest) SetMetadataNamespace(val string)
- func (s *AddMetadataFormatRequest) SetMetadataPrefix(val string)
- func (s *AddMetadataFormatRequest) SetSchema(val string)
- func (s *AddMetadataFormatRequest) UnmarshalJSON(data []byte) error
- func (s *AddMetadataFormatRequest) Validate() error
- type AddRecordOK
- type AddRecordRequest
- func (s *AddRecordRequest) Decode(d *jx.Decoder) error
- func (s *AddRecordRequest) Encode(e *jx.Encoder)
- func (s *AddRecordRequest) GetContent() string
- func (s *AddRecordRequest) GetIdentifier() string
- func (s *AddRecordRequest) GetMetadataPrefix() string
- func (s *AddRecordRequest) MarshalJSON() ([]byte, error)
- func (s *AddRecordRequest) SetContent(val string)
- func (s *AddRecordRequest) SetIdentifier(val string)
- func (s *AddRecordRequest) SetMetadataPrefix(val string)
- func (s *AddRecordRequest) UnmarshalJSON(data []byte) error
- func (s *AddRecordRequest) Validate() error
- type AddSetOK
- type AddSetRequest
- func (s *AddSetRequest) Decode(d *jx.Decoder) error
- func (s *AddSetRequest) Encode(e *jx.Encoder)
- func (s *AddSetRequest) GetSetDescription() OptString
- func (s *AddSetRequest) GetSetName() string
- func (s *AddSetRequest) GetSetSpec() string
- func (s *AddSetRequest) MarshalJSON() ([]byte, error)
- func (s *AddSetRequest) SetSetDescription(val OptString)
- func (s *AddSetRequest) SetSetName(val string)
- func (s *AddSetRequest) SetSetSpec(val string)
- func (s *AddSetRequest) UnmarshalJSON(data []byte) error
- func (s *AddSetRequest) Validate() error
- type ApiKey
- type Client
- func (c *Client) AddItem(ctx context.Context, request *AddItemRequest) error
- func (c *Client) AddMetadataFormat(ctx context.Context, request *AddMetadataFormatRequest) error
- func (c *Client) AddRecord(ctx context.Context, request *AddRecordRequest) error
- func (c *Client) AddSet(ctx context.Context, request *AddSetRequest) error
- func (c *Client) DeleteRecord(ctx context.Context, request *DeleteRecordRequest) error
- type ClientOption
- type DeleteRecordOK
- type DeleteRecordRequest
- func (s *DeleteRecordRequest) Decode(d *jx.Decoder) error
- func (s *DeleteRecordRequest) Encode(e *jx.Encoder)
- func (s *DeleteRecordRequest) GetIdentifier() string
- func (s *DeleteRecordRequest) GetMetadataPrefix() string
- func (s *DeleteRecordRequest) MarshalJSON() ([]byte, error)
- func (s *DeleteRecordRequest) SetIdentifier(val string)
- func (s *DeleteRecordRequest) SetMetadataPrefix(val string)
- func (s *DeleteRecordRequest) UnmarshalJSON(data []byte) error
- func (s *DeleteRecordRequest) Validate() error
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetCode() int64
- func (s *Error) GetMessage() string
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetCode(val int64)
- func (s *Error) SetMessage(val string)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorHandler
- type ErrorStatusCode
- type Handler
- type Middleware
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type SecurityHandler
- type SecuritySource
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type Service
- func (s *Service) AddItem(ctx context.Context, req *AddItemRequest) error
- func (s *Service) AddMetadataFormat(ctx context.Context, req *AddMetadataFormatRequest) error
- func (s *Service) AddRecord(ctx context.Context, req *AddRecordRequest) error
- func (s *Service) AddSet(ctx context.Context, req *AddSetRequest) error
- func (s *Service) DeleteRecord(ctx context.Context, req *DeleteRecordRequest) error
- func (s *Service) NewError(ctx context.Context, err error) *ErrorStatusCode
- type UnimplementedHandler
- func (UnimplementedHandler) AddItem(ctx context.Context, req *AddItemRequest) error
- func (UnimplementedHandler) AddMetadataFormat(ctx context.Context, req *AddMetadataFormatRequest) error
- func (UnimplementedHandler) AddRecord(ctx context.Context, req *AddRecordRequest) error
- func (UnimplementedHandler) AddSet(ctx context.Context, req *AddSetRequest) error
- func (UnimplementedHandler) DeleteRecord(ctx context.Context, req *DeleteRecordRequest) error
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddItemRequest ¶
type AddItemRequest struct { Identifier string `json:"identifier"` SetSpecs []string `json:"set_specs"` }
Ref: #/components/schemas/AddItemRequest
func (*AddItemRequest) Decode ¶
func (s *AddItemRequest) Decode(d *jx.Decoder) error
Decode decodes AddItemRequest from json.
func (*AddItemRequest) Encode ¶
func (s *AddItemRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddItemRequest) GetIdentifier ¶
func (s *AddItemRequest) GetIdentifier() string
GetIdentifier returns the value of Identifier.
func (*AddItemRequest) GetSetSpecs ¶
func (s *AddItemRequest) GetSetSpecs() []string
GetSetSpecs returns the value of SetSpecs.
func (*AddItemRequest) MarshalJSON ¶
func (s *AddItemRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddItemRequest) SetIdentifier ¶
func (s *AddItemRequest) SetIdentifier(val string)
SetIdentifier sets the value of Identifier.
func (*AddItemRequest) SetSetSpecs ¶
func (s *AddItemRequest) SetSetSpecs(val []string)
SetSetSpecs sets the value of SetSpecs.
func (*AddItemRequest) UnmarshalJSON ¶
func (s *AddItemRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddItemRequest) Validate ¶
func (s *AddItemRequest) Validate() error
type AddMetadataFormatOK ¶
type AddMetadataFormatOK struct{}
AddMetadataFormatOK is response for AddMetadataFormat operation.
type AddMetadataFormatRequest ¶
type AddMetadataFormatRequest struct { MetadataPrefix string `json:"metadata_prefix"` Schema string `json:"schema"` MetadataNamespace string `json:"metadata_namespace"` }
Ref: #/components/schemas/AddMetadataFormatRequest
func (*AddMetadataFormatRequest) Decode ¶
func (s *AddMetadataFormatRequest) Decode(d *jx.Decoder) error
Decode decodes AddMetadataFormatRequest from json.
func (*AddMetadataFormatRequest) Encode ¶
func (s *AddMetadataFormatRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddMetadataFormatRequest) GetMetadataNamespace ¶
func (s *AddMetadataFormatRequest) GetMetadataNamespace() string
GetMetadataNamespace returns the value of MetadataNamespace.
func (*AddMetadataFormatRequest) GetMetadataPrefix ¶
func (s *AddMetadataFormatRequest) GetMetadataPrefix() string
GetMetadataPrefix returns the value of MetadataPrefix.
func (*AddMetadataFormatRequest) GetSchema ¶
func (s *AddMetadataFormatRequest) GetSchema() string
GetSchema returns the value of Schema.
func (*AddMetadataFormatRequest) MarshalJSON ¶
func (s *AddMetadataFormatRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddMetadataFormatRequest) SetMetadataNamespace ¶
func (s *AddMetadataFormatRequest) SetMetadataNamespace(val string)
SetMetadataNamespace sets the value of MetadataNamespace.
func (*AddMetadataFormatRequest) SetMetadataPrefix ¶
func (s *AddMetadataFormatRequest) SetMetadataPrefix(val string)
SetMetadataPrefix sets the value of MetadataPrefix.
func (*AddMetadataFormatRequest) SetSchema ¶
func (s *AddMetadataFormatRequest) SetSchema(val string)
SetSchema sets the value of Schema.
func (*AddMetadataFormatRequest) UnmarshalJSON ¶
func (s *AddMetadataFormatRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddMetadataFormatRequest) Validate ¶
func (s *AddMetadataFormatRequest) Validate() error
type AddRecordRequest ¶
type AddRecordRequest struct { Identifier string `json:"identifier"` MetadataPrefix string `json:"metadata_prefix"` Content string `json:"content"` }
Ref: #/components/schemas/AddRecordRequest
func (*AddRecordRequest) Decode ¶
func (s *AddRecordRequest) Decode(d *jx.Decoder) error
Decode decodes AddRecordRequest from json.
func (*AddRecordRequest) Encode ¶
func (s *AddRecordRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddRecordRequest) GetContent ¶
func (s *AddRecordRequest) GetContent() string
GetContent returns the value of Content.
func (*AddRecordRequest) GetIdentifier ¶
func (s *AddRecordRequest) GetIdentifier() string
GetIdentifier returns the value of Identifier.
func (*AddRecordRequest) GetMetadataPrefix ¶
func (s *AddRecordRequest) GetMetadataPrefix() string
GetMetadataPrefix returns the value of MetadataPrefix.
func (*AddRecordRequest) MarshalJSON ¶
func (s *AddRecordRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddRecordRequest) SetContent ¶
func (s *AddRecordRequest) SetContent(val string)
SetContent sets the value of Content.
func (*AddRecordRequest) SetIdentifier ¶
func (s *AddRecordRequest) SetIdentifier(val string)
SetIdentifier sets the value of Identifier.
func (*AddRecordRequest) SetMetadataPrefix ¶
func (s *AddRecordRequest) SetMetadataPrefix(val string)
SetMetadataPrefix sets the value of MetadataPrefix.
func (*AddRecordRequest) UnmarshalJSON ¶
func (s *AddRecordRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddRecordRequest) Validate ¶
func (s *AddRecordRequest) Validate() error
type AddSetRequest ¶
type AddSetRequest struct { SetSpec string `json:"set_spec"` SetName string `json:"set_name"` SetDescription OptString `json:"set_description"` }
Ref: #/components/schemas/AddSetRequest
func (*AddSetRequest) Decode ¶
func (s *AddSetRequest) Decode(d *jx.Decoder) error
Decode decodes AddSetRequest from json.
func (*AddSetRequest) Encode ¶
func (s *AddSetRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddSetRequest) GetSetDescription ¶
func (s *AddSetRequest) GetSetDescription() OptString
GetSetDescription returns the value of SetDescription.
func (*AddSetRequest) GetSetName ¶
func (s *AddSetRequest) GetSetName() string
GetSetName returns the value of SetName.
func (*AddSetRequest) GetSetSpec ¶
func (s *AddSetRequest) GetSetSpec() string
GetSetSpec returns the value of SetSpec.
func (*AddSetRequest) MarshalJSON ¶
func (s *AddSetRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddSetRequest) SetSetDescription ¶
func (s *AddSetRequest) SetSetDescription(val OptString)
SetSetDescription sets the value of SetDescription.
func (*AddSetRequest) SetSetName ¶
func (s *AddSetRequest) SetSetName(val string)
SetSetName sets the value of SetName.
func (*AddSetRequest) SetSetSpec ¶
func (s *AddSetRequest) SetSetSpec(val string)
SetSetSpec sets the value of SetSpec.
func (*AddSetRequest) UnmarshalJSON ¶
func (s *AddSetRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddSetRequest) Validate ¶
func (s *AddSetRequest) Validate() error
type ApiKey ¶
type ApiKey struct {
APIKey string
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AddItem ¶
func (c *Client) AddItem(ctx context.Context, request *AddItemRequest) error
AddItem invokes addItem operation.
Add item.
POST /add-item
func (*Client) AddMetadataFormat ¶
func (c *Client) AddMetadataFormat(ctx context.Context, request *AddMetadataFormatRequest) error
AddMetadataFormat invokes addMetadataFormat operation.
Add a metadata format.
POST /add-metadata-format
func (*Client) AddRecord ¶
func (c *Client) AddRecord(ctx context.Context, request *AddRecordRequest) error
AddRecord invokes addRecord operation.
Add record.
POST /add-record
func (*Client) AddSet ¶
func (c *Client) AddSet(ctx context.Context, request *AddSetRequest) error
AddSet invokes addSet operation.
Add a set.
POST /add-set
func (*Client) DeleteRecord ¶
func (c *Client) DeleteRecord(ctx context.Context, request *DeleteRecordRequest) error
DeleteRecord invokes deleteRecord operation.
Delete a record.
POST /delete-record
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type DeleteRecordOK ¶
type DeleteRecordOK struct{}
DeleteRecordOK is response for DeleteRecord operation.
type DeleteRecordRequest ¶
type DeleteRecordRequest struct { Identifier string `json:"identifier"` MetadataPrefix string `json:"metadata_prefix"` }
Ref: #/components/schemas/DeleteRecordRequest
func (*DeleteRecordRequest) Decode ¶
func (s *DeleteRecordRequest) Decode(d *jx.Decoder) error
Decode decodes DeleteRecordRequest from json.
func (*DeleteRecordRequest) Encode ¶
func (s *DeleteRecordRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteRecordRequest) GetIdentifier ¶
func (s *DeleteRecordRequest) GetIdentifier() string
GetIdentifier returns the value of Identifier.
func (*DeleteRecordRequest) GetMetadataPrefix ¶
func (s *DeleteRecordRequest) GetMetadataPrefix() string
GetMetadataPrefix returns the value of MetadataPrefix.
func (*DeleteRecordRequest) MarshalJSON ¶
func (s *DeleteRecordRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteRecordRequest) SetIdentifier ¶
func (s *DeleteRecordRequest) SetIdentifier(val string)
SetIdentifier sets the value of Identifier.
func (*DeleteRecordRequest) SetMetadataPrefix ¶
func (s *DeleteRecordRequest) SetMetadataPrefix(val string)
SetMetadataPrefix sets the value of MetadataPrefix.
func (*DeleteRecordRequest) UnmarshalJSON ¶
func (s *DeleteRecordRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*DeleteRecordRequest) Validate ¶
func (s *DeleteRecordRequest) Validate() error
type Error ¶
Ref: #/components/schemas/Error
func (*Error) GetMessage ¶
GetMessage returns the value of Message.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetMessage ¶
SetMessage sets the value of Message.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type Handler ¶
type Handler interface { // AddItem implements addItem operation. // // Add item. // // POST /add-item AddItem(ctx context.Context, req *AddItemRequest) error // AddMetadataFormat implements addMetadataFormat operation. // // Add a metadata format. // // POST /add-metadata-format AddMetadataFormat(ctx context.Context, req *AddMetadataFormatRequest) error // AddRecord implements addRecord operation. // // Add record. // // POST /add-record AddRecord(ctx context.Context, req *AddRecordRequest) error // AddSet implements addSet operation. // // Add a set. // // POST /add-set AddSet(ctx context.Context, req *AddSetRequest) error // DeleteRecord implements deleteRecord operation. // // Delete a record. // // POST /delete-record DeleteRecord(ctx context.Context, req *DeleteRecordRequest) error // NewError creates *ErrorStatusCode from error returned by handler. // // Used for common default response. NewError(ctx context.Context, err error) *ErrorStatusCode }
Handler handles operations described by OpenAPI v3 specification.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SecurityHandler ¶
type SecurityHandler interface { // HandleApiKey handles apiKey security. HandleApiKey(ctx context.Context, operationName string, t ApiKey) (context.Context, error) }
SecurityHandler is handler for security parameters.
type SecuritySource ¶
type SecuritySource interface { // ApiKey provides apiKey security value. ApiKey(ctx context.Context, operationName string) (ApiKey, error) }
SecuritySource is provider of security values (tokens, passwords, etc.).
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, sec SecurityHandler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *repositories.Repo) *Service
func (*Service) AddMetadataFormat ¶
func (s *Service) AddMetadataFormat(ctx context.Context, req *AddMetadataFormatRequest) error
func (*Service) AddRecord ¶
func (s *Service) AddRecord(ctx context.Context, req *AddRecordRequest) error
func (*Service) DeleteRecord ¶
func (s *Service) DeleteRecord(ctx context.Context, req *DeleteRecordRequest) error
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AddItem ¶
func (UnimplementedHandler) AddItem(ctx context.Context, req *AddItemRequest) error
AddItem implements addItem operation.
Add item.
POST /add-item
func (UnimplementedHandler) AddMetadataFormat ¶
func (UnimplementedHandler) AddMetadataFormat(ctx context.Context, req *AddMetadataFormatRequest) error
AddMetadataFormat implements addMetadataFormat operation.
Add a metadata format.
POST /add-metadata-format
func (UnimplementedHandler) AddRecord ¶
func (UnimplementedHandler) AddRecord(ctx context.Context, req *AddRecordRequest) error
AddRecord implements addRecord operation.
Add record.
POST /add-record
func (UnimplementedHandler) AddSet ¶
func (UnimplementedHandler) AddSet(ctx context.Context, req *AddSetRequest) error
AddSet implements addSet operation.
Add a set.
POST /add-set
func (UnimplementedHandler) DeleteRecord ¶
func (UnimplementedHandler) DeleteRecord(ctx context.Context, req *DeleteRecordRequest) error
DeleteRecord implements deleteRecord operation.
Delete a record.
POST /delete-record
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
Source Files
¶
- generate.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_handlers_gen.go
- oas_json_gen.go
- oas_middleware_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_security_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go
- service.go