Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MigrateRequest ¶
type MigrateRequest struct { Database string `json:"database,omitempty"` Version uint64 `json:"version,omitempty"` }
MigrateRequest for a specific database and version.
type MigrateResponse ¶
type MigrateResponse struct { Meta map[string]string `json:"meta,omitempty"` Error *Error `json:"error,omitempty"` Migration *Migration `json:"migration,omitempty"` }
MigrateResponse for a specific database and version.
type Migration ¶
type Migration struct { Database string `json:"database,omitempty"` Logs []string `json:"logs,omitempty"` Version uint64 `json:"version,omitempty"` }
Migration for a specific database and version with logs.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server for HTTP.
func (*Server) Migrate ¶
func (s *Server) Migrate(ctx context.Context, req *MigrateRequest) (*MigrateResponse, error)
Migrate for HTTP.
Click to show internal directories.
Click to hide internal directories.