common

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindRPCFlags

func BindRPCFlags(cmd *cobra.Command)

BindRPCFlags binds the RPC flags to the given command. This includes an rpcserver flag, and the TLS flags. These flags can be used to create an admin service client. The flags will be bound to all subcommands of the given command.

func DefaultKwilAdminRoot

func DefaultKwilAdminRoot() string

func DefaultKwildRoot

func DefaultKwildRoot() string

func GetAdminSvcClient

func GetAdminSvcClient(ctx context.Context, cmd *cobra.Command) (*adminclient.AdminClient, error)

GetAdminSvcClient will return an admin service client based on the flags. The flags should be bound using the BindRPCFlags function.

func GetRPCServerFlag

func GetRPCServerFlag(cmd *cobra.Command) (string, error)

GetRPCServerFlag returns the RPC flag from the given command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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