func (r *GetDatabaseRequest) Verify() error {
	return r.Header.Verify()
}
Verify checks hash and signature in request header.
package types
import (
	"github.com/SQLess/SQLess/crypto/asymmetric"
	"github.com/SQLess/SQLess/crypto/verifier"
	"github.com/SQLess/SQLess/proto"
)
type CreateDatabaseRequestHeader struct {
	ResourceMeta ResourceMeta
}
type SignedCreateDatabaseRequestHeader struct {
	CreateDatabaseRequestHeader
	verifier.DefaultHashSignVerifierImpl
}
func (sh *SignedCreateDatabaseRequestHeader) Verify() (err error) {
	return sh.DefaultHashSignVerifierImpl.Verify(&sh.CreateDatabaseRequestHeader)
}
func (sh *SignedCreateDatabaseRequestHeader) Sign(signer *asymmetric.PrivateKey) (err error) {
	return sh.DefaultHashSignVerifierImpl.Sign(&sh.CreateDatabaseRequestHeader, signer)
}
type CreateDatabaseRequest struct {
	proto.Envelope
	Header SignedCreateDatabaseRequestHeader
}
func (r *CreateDatabaseRequest) Verify() error {
	return r.Header.Verify()
}
func (r *CreateDatabaseRequest) Sign(signer *asymmetric.PrivateKey) (err error) {
	return r.Header.Sign(signer)
}
type CreateDatabaseResponseHeader struct {
	InstanceMeta ServiceInstance
}
type SignedCreateDatabaseResponseHeader struct {
	CreateDatabaseResponseHeader
	verifier.DefaultHashSignVerifierImpl
}
func (sh *SignedCreateDatabaseResponseHeader) Verify() (err error) {
	return sh.DefaultHashSignVerifierImpl.Verify(&sh.CreateDatabaseResponseHeader)
}
func (sh *SignedCreateDatabaseResponseHeader) Sign(signer *asymmetric.PrivateKey) (err error) {
	return sh.DefaultHashSignVerifierImpl.Sign(&sh.CreateDatabaseResponseHeader, signer)
}
type CreateDatabaseResponse struct {
	proto.Envelope
	Header SignedCreateDatabaseResponseHeader
}
func (r *CreateDatabaseResponse) Verify() error {
	return r.Header.Verify()
}
func (r *CreateDatabaseResponse) Sign(signer *asymmetric.PrivateKey) (err error) {
	return r.Header.Sign(signer)
}
type DropDatabaseRequestHeader struct {
	DatabaseID proto.DatabaseID
}
type SignedDropDatabaseRequestHeader struct {
	DropDatabaseRequestHeader
	verifier.DefaultHashSignVerifierImpl
}
func (sh *SignedDropDatabaseRequestHeader) Verify() (err error) {
	return sh.DefaultHashSignVerifierImpl.Verify(&sh.DropDatabaseRequestHeader)
}
func (sh *SignedDropDatabaseRequestHeader) Sign(signer *asymmetric.PrivateKey) (err error) {
	return sh.DefaultHashSignVerifierImpl.Sign(&sh.DropDatabaseRequestHeader, signer)
}
type DropDatabaseRequest struct {
	proto.Envelope
	Header SignedDropDatabaseRequestHeader
}
func (r *DropDatabaseRequest) Verify() error {
	return r.Header.Verify()
}
func (r *DropDatabaseRequest) Sign(signer *asymmetric.PrivateKey) error {
	return r.Header.Sign(signer)
}
type DropDatabaseResponse struct{}
type GetDatabaseRequestHeader struct {
	DatabaseID proto.DatabaseID
}
type SignedGetDatabaseRequestHeader struct {
	GetDatabaseRequestHeader
	verifier.DefaultHashSignVerifierImpl
}
func (sh *SignedGetDatabaseRequestHeader) Verify() (err error) {
	return sh.DefaultHashSignVerifierImpl.Verify(&sh.GetDatabaseRequestHeader)
}
func (sh *SignedGetDatabaseRequestHeader) Sign(signer *asymmetric.PrivateKey) (err error) {
	return sh.DefaultHashSignVerifierImpl.Sign(&sh.GetDatabaseRequestHeader, signer)
}
type GetDatabaseRequest struct {
	proto.Envelope
	Header SignedGetDatabaseRequestHeader
}