giro

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdRoot

func NewCmdRoot(ctx context.Context, version Version, revision Revision) (*cobra.Command, error)

func NewHostResolver

func NewHostResolver(contextContext context.Context, flagSet *pflag.FlagSet) (host.HostResolver, error)

func NewMessageNameResolver

func NewMessageNameResolver(contextContext context.Context, flagSet *pflag.FlagSet) (messagename.MessageNameResolver, error)

func NewMessageService

func NewMessageService(contextContext context.Context, flagSet *pflag.FlagSet) (message.MessageService, error)

func NewServerReflectionClient

func NewServerReflectionClient(ctx context.Context, conn *grpc.ClientConn) (*grpcreflect.Client, error)

func NewServerReflectionConn

func NewServerReflectionConn(ctx context.Context, reflectionAddr ReflectionAddr) (*grpc.ClientConn, error)

func NewServiceService

func NewServiceService(contextContext context.Context, flagSet *pflag.FlagSet) (service.ServiceService, error)

func ParseMetadata

func ParseMetadata(m string) (map[string]string, error)

func ProviderCmdRoot

func ProviderCmdRoot(lsCmd LsCmd, emptyJSONCmd EmptyJSONCmd, toJSONCmd ToJSONCmd, toBinaryCmd ToBinaryCmd, callCmd CallCmd, versionCmd VersionCmd, hostCmd HostCmd, requestExampleCmd RequestExampleCmd) (*cobra.Command, error)

func ProviderHostResolver

func ProviderHostResolver(conn *grpc.ClientConn, rpcAddr RPCAddr) (host.HostResolver, error)

func Run

func Run(version Version, revision Revision) error

Types

type CallCmd

type CallCmd *cobra.Command

func ProviderCallCmd

func ProviderCallCmd() CallCmd

type Config

type Config struct {
	ReflectionServer string `mapstructure:"reflection-server"`
	RpcServer        string `mapstructure:"rpc-server"`
	Debug            bool
	Verbose          bool
	Metadata         string
}

type EmptyJSONCmd

type EmptyJSONCmd *cobra.Command

func ProviderEmptyJSONCmd

func ProviderEmptyJSONCmd() EmptyJSONCmd

type HostCmd

type HostCmd *cobra.Command

func ProviderHostCmd

func ProviderHostCmd() (HostCmd, error)

type LsCmd

type LsCmd *cobra.Command

func ProviderLsCmd

func ProviderLsCmd() LsCmd

type Metadata

type Metadata map[string]string

type RPCAddr

type RPCAddr string

func ProviderRPCAddr

func ProviderRPCAddr() RPCAddr

type ReflectionAddr

type ReflectionAddr string

func ProviderReflectionAddr

func ProviderReflectionAddr() ReflectionAddr

type RequestExampleCmd

type RequestExampleCmd *cobra.Command

func ProviderRequestExampleCmd

func ProviderRequestExampleCmd() RequestExampleCmd

type Revision

type Revision string

type ToBinaryCmd

type ToBinaryCmd *cobra.Command

func ProviderToBinaryCmd

func ProviderToBinaryCmd() ToBinaryCmd

type ToJSONCmd

type ToJSONCmd *cobra.Command

func ProviderToJSONCmd

func ProviderToJSONCmd() ToJSONCmd

type Version

type Version string

type VersionCmd

type VersionCmd *cobra.Command

func ProviderVersionCmd

func ProviderVersionCmd(version Version, revision Revision) (VersionCmd, error)

Jump to

Keyboard shortcuts

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