Documentation ¶
Index ¶
- Constants
- func HeadRevision(engine string) (string, error)
- func NewDevtoolsCommand(programName string) *cobra.Command
- func NewHeadCommand(programName string) *cobra.Command
- func NewMigrateCommand(programName string) *cobra.Command
- func NewRootCommand(programName string) *cobra.Command
- func NewServeCommand(programName string, config *server.Config) *cobra.Command
- func NewTestingCommand(programName string, config *testserver.Config) *cobra.Command
- func NewVersionCommand(programName string) *cobra.Command
- func RegisterDevtoolsFlags(cmd *cobra.Command)
- func RegisterHeadFlags(cmd *cobra.Command)
- func RegisterMigrateFlags(cmd *cobra.Command)
- func RegisterRootFlags(cmd *cobra.Command)
- func RegisterServeFlags(cmd *cobra.Command, config *server.Config)
- func RegisterTestingFlags(cmd *cobra.Command, config *testserver.Config)
- func RegisterVersionFlags(cmd *cobra.Command)
- func SignalContextWithGracePeriod(ctx context.Context, gracePeriod time.Duration) context.Context
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func HeadRevision ¶ added in v1.5.0
HeadRevision returns the latest migration revision for a given engine
func NewDevtoolsCommand ¶ added in v1.5.0
func NewHeadCommand ¶ added in v1.5.0
func NewMigrateCommand ¶ added in v1.5.0
func NewRootCommand ¶ added in v1.5.0
func NewServeCommand ¶ added in v1.5.0
func NewTestingCommand ¶ added in v1.5.0
func NewTestingCommand(programName string, config *testserver.Config) *cobra.Command
func NewVersionCommand ¶ added in v1.5.0
func RegisterDevtoolsFlags ¶ added in v1.5.0
func RegisterHeadFlags ¶ added in v1.5.0
func RegisterMigrateFlags ¶ added in v1.5.0
func RegisterRootFlags ¶ added in v1.5.0
func RegisterServeFlags ¶ added in v1.5.0
func RegisterTestingFlags ¶ added in v1.5.0
func RegisterTestingFlags(cmd *cobra.Command, config *testserver.Config)
func RegisterVersionFlags ¶ added in v1.5.0
func SignalContextWithGracePeriod ¶
SignalContextWithGracePeriod creates a new context that will be cancelled when an interrupt/SIGTERM signal is received and the provided grace period subsequently finishes.
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Code generated by github.com/ecordell/optgen.
|
Code generated by github.com/ecordell/optgen. |
Click to show internal directories.
Click to hide internal directories.