cmd

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2022 License: Apache-2.0 Imports: 37 Imported by: 2

Documentation

Index

Constants

View Source
const PresharedKeyFlag = "grpc-preshared-key"

Variables

This section is empty.

Functions

func HeadRevision added in v1.5.0

func HeadRevision(engine string) (string, error)

HeadRevision returns the latest migration revision for a given engine

func NewDevtoolsCommand added in v1.5.0

func NewDevtoolsCommand(programName string) *cobra.Command

func NewHeadCommand added in v1.5.0

func NewHeadCommand(programName string) *cobra.Command

func NewMigrateCommand added in v1.5.0

func NewMigrateCommand(programName string) *cobra.Command

func NewRootCommand added in v1.5.0

func NewRootCommand(programName string) *cobra.Command

func NewServeCommand added in v1.5.0

func NewServeCommand(programName string, config *server.Config) *cobra.Command

func NewTestingCommand added in v1.5.0

func NewTestingCommand(programName string, config *testserver.Config) *cobra.Command

func NewVersionCommand added in v1.5.0

func NewVersionCommand(programName string) *cobra.Command

func RegisterDevtoolsFlags added in v1.5.0

func RegisterDevtoolsFlags(cmd *cobra.Command)

func RegisterHeadFlags added in v1.5.0

func RegisterHeadFlags(cmd *cobra.Command)

func RegisterMigrateFlags added in v1.5.0

func RegisterMigrateFlags(cmd *cobra.Command)

func RegisterRootFlags added in v1.5.0

func RegisterRootFlags(cmd *cobra.Command)

func RegisterServeFlags added in v1.5.0

func RegisterServeFlags(cmd *cobra.Command, config *server.Config)

func RegisterTestingFlags added in v1.5.0

func RegisterTestingFlags(cmd *cobra.Command, config *testserver.Config)

func RegisterVersionFlags added in v1.5.0

func RegisterVersionFlags(cmd *cobra.Command)

func SignalContextWithGracePeriod

func SignalContextWithGracePeriod(ctx context.Context, gracePeriod time.Duration) context.Context

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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL