cliclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FlagEndpoint = "endpoint"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(cmd *cobra.Command) (*kratos.APIClient, error)

func RegisterClientFlags

func RegisterClientFlags(flags *pflag.FlagSet)

Types

type CleanupHandler added in v0.11.0

type CleanupHandler struct{}

func NewCleanupHandler added in v0.11.0

func NewCleanupHandler() *CleanupHandler

func (*CleanupHandler) CleanupSQL added in v0.11.0

func (h *CleanupHandler) CleanupSQL(cmd *cobra.Command, args []string) error

type ClientContext added in v0.11.0

type ClientContext struct {
	Endpoint   string
	HTTPClient *http.Client
}

type ContextKey

type ContextKey int
const (
	ClientContextKey ContextKey = iota + 1
)

type MigrateHandler

type MigrateHandler struct{}

func NewMigrateHandler

func NewMigrateHandler() *MigrateHandler

func (*MigrateHandler) MigrateSQL

func (h *MigrateHandler) MigrateSQL(cmd *cobra.Command, args []string, opts ...driver.RegistryOption) error

Jump to

Keyboard shortcuts

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