Documentation ¶
Index ¶
- Constants
- type GetLogInfo
- type GetLogInfoDefault
- func (o *GetLogInfoDefault) SetPayload(payload *models.Error)
- func (o *GetLogInfoDefault) SetStatusCode(code int)
- func (o *GetLogInfoDefault) WithPayload(payload *models.Error) *GetLogInfoDefault
- func (o *GetLogInfoDefault) WithStatusCode(code int) *GetLogInfoDefault
- func (o *GetLogInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLogInfoHandler
- type GetLogInfoHandlerFunc
- type GetLogInfoOK
- type GetLogInfoParams
- type GetLogInfoURL
- func (o *GetLogInfoURL) Build() (*url.URL, error)
- func (o *GetLogInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetLogInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetLogInfoURL) SetBasePath(bp string)
- func (o *GetLogInfoURL) String() string
- func (o *GetLogInfoURL) StringFull(scheme, host string) string
- func (o *GetLogInfoURL) WithBasePath(bp string) *GetLogInfoURL
- type GetLogProof
- type GetLogProofBadRequest
- type GetLogProofDefault
- func (o *GetLogProofDefault) SetPayload(payload *models.Error)
- func (o *GetLogProofDefault) SetStatusCode(code int)
- func (o *GetLogProofDefault) WithPayload(payload *models.Error) *GetLogProofDefault
- func (o *GetLogProofDefault) WithStatusCode(code int) *GetLogProofDefault
- func (o *GetLogProofDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetLogProofHandler
- type GetLogProofHandlerFunc
- type GetLogProofOK
- type GetLogProofParams
- type GetLogProofURL
- func (o *GetLogProofURL) Build() (*url.URL, error)
- func (o *GetLogProofURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetLogProofURL) Must(u *url.URL, err error) *url.URL
- func (o *GetLogProofURL) SetBasePath(bp string)
- func (o *GetLogProofURL) String() string
- func (o *GetLogProofURL) StringFull(scheme, host string) string
- func (o *GetLogProofURL) WithBasePath(bp string) *GetLogProofURL
Constants ¶
const GetLogInfoOKCode int = 200
GetLogInfoOKCode is the HTTP code returned for type GetLogInfoOK
const GetLogProofBadRequestCode int = 400
GetLogProofBadRequestCode is the HTTP code returned for type GetLogProofBadRequest
const GetLogProofOKCode int = 200
GetLogProofOKCode is the HTTP code returned for type GetLogProofOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetLogInfo ¶
type GetLogInfo struct { Context *middleware.Context Handler GetLogInfoHandler }
GetLogInfo swagger:route GET /api/v1/log tlog getLogInfo
Get information about the current state of the transparency log ¶
Returns the current root hash and size of the merkle tree used to store the log entries.
func NewGetLogInfo ¶
func NewGetLogInfo(ctx *middleware.Context, handler GetLogInfoHandler) *GetLogInfo
NewGetLogInfo creates a new http.Handler for the get log info operation
func (*GetLogInfo) ServeHTTP ¶
func (o *GetLogInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetLogInfoDefault ¶
type GetLogInfoDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetLogInfoDefault There was an internal error in the server while processing the request
swagger:response getLogInfoDefault
func NewGetLogInfoDefault ¶
func NewGetLogInfoDefault(code int) *GetLogInfoDefault
NewGetLogInfoDefault creates GetLogInfoDefault with default headers values
func (*GetLogInfoDefault) SetPayload ¶
func (o *GetLogInfoDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get log info default response
func (*GetLogInfoDefault) SetStatusCode ¶
func (o *GetLogInfoDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get log info default response
func (*GetLogInfoDefault) WithPayload ¶
func (o *GetLogInfoDefault) WithPayload(payload *models.Error) *GetLogInfoDefault
WithPayload adds the payload to the get log info default response
func (*GetLogInfoDefault) WithStatusCode ¶
func (o *GetLogInfoDefault) WithStatusCode(code int) *GetLogInfoDefault
WithStatusCode adds the status to the get log info default response
func (*GetLogInfoDefault) WriteResponse ¶
func (o *GetLogInfoDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogInfoHandler ¶
type GetLogInfoHandler interface {
Handle(GetLogInfoParams) middleware.Responder
}
GetLogInfoHandler interface for that can handle valid get log info params
type GetLogInfoHandlerFunc ¶
type GetLogInfoHandlerFunc func(GetLogInfoParams) middleware.Responder
GetLogInfoHandlerFunc turns a function with the right signature into a get log info handler
func (GetLogInfoHandlerFunc) Handle ¶
func (fn GetLogInfoHandlerFunc) Handle(params GetLogInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetLogInfoOK ¶
GetLogInfoOK A JSON object with the root hash and tree size as properties
swagger:response getLogInfoOK
func NewGetLogInfoOK ¶
func NewGetLogInfoOK() *GetLogInfoOK
NewGetLogInfoOK creates GetLogInfoOK with default headers values
func (*GetLogInfoOK) SetPayload ¶
func (o *GetLogInfoOK) SetPayload(payload *models.LogInfo)
SetPayload sets the payload to the get log info o k response
func (*GetLogInfoOK) WithPayload ¶
func (o *GetLogInfoOK) WithPayload(payload *models.LogInfo) *GetLogInfoOK
WithPayload adds the payload to the get log info o k response
func (*GetLogInfoOK) WriteResponse ¶
func (o *GetLogInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogInfoParams ¶
GetLogInfoParams contains all the bound params for the get log info operation typically these are obtained from a http.Request
swagger:parameters getLogInfo
func NewGetLogInfoParams ¶
func NewGetLogInfoParams() GetLogInfoParams
NewGetLogInfoParams creates a new GetLogInfoParams object
There are no default values defined in the spec.
func (*GetLogInfoParams) BindRequest ¶
func (o *GetLogInfoParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetLogInfoParams() beforehand.
type GetLogInfoURL ¶
type GetLogInfoURL struct {
// contains filtered or unexported fields
}
GetLogInfoURL generates an URL for the get log info operation
func (*GetLogInfoURL) Build ¶
func (o *GetLogInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetLogInfoURL) BuildFull ¶
func (o *GetLogInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetLogInfoURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetLogInfoURL) SetBasePath ¶
func (o *GetLogInfoURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetLogInfoURL) String ¶
func (o *GetLogInfoURL) String() string
String returns the string representation of the path with query string
func (*GetLogInfoURL) StringFull ¶
func (o *GetLogInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetLogInfoURL) WithBasePath ¶
func (o *GetLogInfoURL) WithBasePath(bp string) *GetLogInfoURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetLogProof ¶
type GetLogProof struct { Context *middleware.Context Handler GetLogProofHandler }
GetLogProof swagger:route GET /api/v1/log/proof tlog getLogProof
Get information required to generate a consistency proof for the transparency log ¶
Returns a list of hashes for specified tree sizes that can be used to confirm the consistency of the transparency log
func NewGetLogProof ¶
func NewGetLogProof(ctx *middleware.Context, handler GetLogProofHandler) *GetLogProof
NewGetLogProof creates a new http.Handler for the get log proof operation
func (*GetLogProof) ServeHTTP ¶
func (o *GetLogProof) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetLogProofBadRequest ¶
GetLogProofBadRequest The content supplied to the server was invalid
swagger:response getLogProofBadRequest
func NewGetLogProofBadRequest ¶
func NewGetLogProofBadRequest() *GetLogProofBadRequest
NewGetLogProofBadRequest creates GetLogProofBadRequest with default headers values
func (*GetLogProofBadRequest) SetPayload ¶
func (o *GetLogProofBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get log proof bad request response
func (*GetLogProofBadRequest) WithPayload ¶
func (o *GetLogProofBadRequest) WithPayload(payload *models.Error) *GetLogProofBadRequest
WithPayload adds the payload to the get log proof bad request response
func (*GetLogProofBadRequest) WriteResponse ¶
func (o *GetLogProofBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogProofDefault ¶
type GetLogProofDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetLogProofDefault There was an internal error in the server while processing the request
swagger:response getLogProofDefault
func NewGetLogProofDefault ¶
func NewGetLogProofDefault(code int) *GetLogProofDefault
NewGetLogProofDefault creates GetLogProofDefault with default headers values
func (*GetLogProofDefault) SetPayload ¶
func (o *GetLogProofDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get log proof default response
func (*GetLogProofDefault) SetStatusCode ¶
func (o *GetLogProofDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get log proof default response
func (*GetLogProofDefault) WithPayload ¶
func (o *GetLogProofDefault) WithPayload(payload *models.Error) *GetLogProofDefault
WithPayload adds the payload to the get log proof default response
func (*GetLogProofDefault) WithStatusCode ¶
func (o *GetLogProofDefault) WithStatusCode(code int) *GetLogProofDefault
WithStatusCode adds the status to the get log proof default response
func (*GetLogProofDefault) WriteResponse ¶
func (o *GetLogProofDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogProofHandler ¶
type GetLogProofHandler interface {
Handle(GetLogProofParams) middleware.Responder
}
GetLogProofHandler interface for that can handle valid get log proof params
type GetLogProofHandlerFunc ¶
type GetLogProofHandlerFunc func(GetLogProofParams) middleware.Responder
GetLogProofHandlerFunc turns a function with the right signature into a get log proof handler
func (GetLogProofHandlerFunc) Handle ¶
func (fn GetLogProofHandlerFunc) Handle(params GetLogProofParams) middleware.Responder
Handle executing the request and returning a response
type GetLogProofOK ¶
type GetLogProofOK struct { /* In: Body */ Payload *models.ConsistencyProof `json:"body,omitempty"` }
GetLogProofOK All hashes required to compute the consistency proof
swagger:response getLogProofOK
func NewGetLogProofOK ¶
func NewGetLogProofOK() *GetLogProofOK
NewGetLogProofOK creates GetLogProofOK with default headers values
func (*GetLogProofOK) SetPayload ¶
func (o *GetLogProofOK) SetPayload(payload *models.ConsistencyProof)
SetPayload sets the payload to the get log proof o k response
func (*GetLogProofOK) WithPayload ¶
func (o *GetLogProofOK) WithPayload(payload *models.ConsistencyProof) *GetLogProofOK
WithPayload adds the payload to the get log proof o k response
func (*GetLogProofOK) WriteResponse ¶
func (o *GetLogProofOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetLogProofParams ¶
type GetLogProofParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The size of the tree that you wish to prove consistency from (1 means the beginning of the log) Defaults to 1 if not specified Minimum: 1 In: query Default: 1 */ FirstSize *int64 /*The size of the tree that you wish to prove consistency to Required: true Minimum: 1 In: query */ LastSize int64 /*The tree ID of the tree that you wish to prove consistency for Pattern: ^[0-9]+$ In: query */ TreeID *string }
GetLogProofParams contains all the bound params for the get log proof operation typically these are obtained from a http.Request
swagger:parameters getLogProof
func NewGetLogProofParams ¶
func NewGetLogProofParams() GetLogProofParams
NewGetLogProofParams creates a new GetLogProofParams object with the default values initialized.
func (*GetLogProofParams) BindRequest ¶
func (o *GetLogProofParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetLogProofParams() beforehand.
type GetLogProofURL ¶
type GetLogProofURL struct { FirstSize *int64 LastSize int64 TreeID *string // contains filtered or unexported fields }
GetLogProofURL generates an URL for the get log proof operation
func (*GetLogProofURL) Build ¶
func (o *GetLogProofURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetLogProofURL) BuildFull ¶
func (o *GetLogProofURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetLogProofURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetLogProofURL) SetBasePath ¶
func (o *GetLogProofURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetLogProofURL) String ¶
func (o *GetLogProofURL) String() string
String returns the string representation of the path with query string
func (*GetLogProofURL) StringFull ¶
func (o *GetLogProofURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetLogProofURL) WithBasePath ¶
func (o *GetLogProofURL) WithBasePath(bp string) *GetLogProofURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string