Versions in this module Expand all Collapse all v1 v1.0.1 Apr 23, 2018 Changes in this version + func MetadataFromHeaders(headers []string) metadata.MD + func ParseArgumentParam(argument string) (name string, value string, err error) + type ConnectionConnectionSupplier struct + Conn *grpc.ClientConn + func NewConnectionConnectionSupplier(conn *grpc.ClientConn) *ConnectionConnectionSupplier + func (d *ConnectionConnectionSupplier) GetConnection(ctx context.Context) (*grpc.ClientConn, error) + type ConnectionSupplier interface + GetConnection func(ctx context.Context) (*grpc.ClientConn, error) + type DMHOption func(*dmhOptions) + func WithDMHFieldValueGetters(getters ...DynMsgHelperFieldValueGetter) DMHOption + func WithDMHFieldValueParsers(setters ...DynMsgHelperFieldValueParser) DMHOption + type DefaultConnectionSupplier struct + Ctx context.Context + Opts []grpc.DialOption + Target string + func NewDefaultConnectionSupplier(ctx context.Context, target string, opts ...grpc.DialOption) *DefaultConnectionSupplier + func (d *DefaultConnectionSupplier) GetConnection(ctx context.Context) (*grpc.ClientConn, error) + type DefaultDescribeOutput struct + Out io.Writer + func NewDefaultDescribeOutput(out io.Writer) *DefaultDescribeOutput + func (d *DefaultDescribeOutput) DumpEnum(level int, enum *desc.EnumDescriptor) error + func (d *DefaultDescribeOutput) DumpField(level int, fld *desc.FieldDescriptor) error + func (d *DefaultDescribeOutput) DumpMessage(level int, msg *desc.MessageDescriptor) error + func (d *DefaultDescribeOutput) DumpMethod(level int, mtd *desc.MethodDescriptor, complete bool) error + func (d *DefaultDescribeOutput) DumpService(level int, svc *desc.ServiceDescriptor) error + func (d *DefaultDescribeOutput) OutputDescribe(descriptor desc.Descriptor) error + type DefaultInvokeOutput struct + Out io.Writer + func NewDefaultInvokeOutput(out io.Writer) *DefaultInvokeOutput + func (d *DefaultInvokeOutput) DumpMessage(dmh *DynMsgHelper, level int, msg *dynamic.Message) error + func (d *DefaultInvokeOutput) OutputInvoke(dmh *DynMsgHelper, value proto.Message) error + type DefaultServiceListOutput struct + Out io.Writer + func NewDefaultServiceListOutput(out io.Writer) *DefaultServiceListOutput + func (d *DefaultServiceListOutput) OutputServiceList(services []string) error + type DefaultServiceOutput struct + Out io.Writer + func NewDefaultServiceOutput(out io.Writer) *DefaultServiceOutput + func (d *DefaultServiceOutput) OutputService(service *desc.ServiceDescriptor) error + type DescribeOutput interface + OutputDescribe func(descriptor desc.Descriptor) error + type DynMsgHelper struct + func NewDynMsgHelper(opts ...DMHOption) *DynMsgHelper + func (h *DynMsgHelper) GetFieldValue(msg *dynamic.Message, fld *desc.FieldDescriptor) (ok bool, value string, err error) + func (h *DynMsgHelper) MustParseScalarFieldValue(fld *desc.FieldDescriptor, value string) (retval interface{}, err error) + func (h *DynMsgHelper) ParseFieldParamValue(fld *desc.FieldDescriptor, value string) (interface{}, error) + func (h *DynMsgHelper) ParseScalarFieldValue(fld *desc.FieldDescriptor, value string) (supported bool, retval interface{}, err error) + func (h *DynMsgHelper) SetParamValue(msg *dynamic.Message, name, value string) error + type DynMsgHelperFieldValueGetter interface + GetFieldValue func(msg *dynamic.Message, fld *desc.FieldDescriptor) (ok bool, value string, err error) + type DynMsgHelperFieldValueParser interface + ParseFieldValue func(fld *desc.FieldDescriptor, value string) (ok bool, retval interface{}, err error) + type GetOption func(*getOptions) + func WithConnection(conn *grpc.ClientConn) GetOption + func WithConnectionSupplier(supplier ConnectionSupplier) GetOption + func WithDMHOpts(opts ...DMHOption) GetOption + func WithDefaultConnection(ctx context.Context, target string, opts ...grpc.DialOption) GetOption + func WithDefaultOutputs(w io.Writer) GetOption + func WithOutputDescribe(output DescribeOutput) GetOption + func WithOutputInvoke(output InvokeOutput) GetOption + func WithOutputService(output ServiceOutput) GetOption + func WithOutputServiceList(output ServiceListOutput) GetOption + type GrpcGet struct + func NewGrpcGet(opts ...GetOption) *GrpcGet + func NewGrpcGet_Default(opts ...GetOption) *GrpcGet + func (g *GrpcGet) Describe(ctx context.Context, symbol string) error + func (g *GrpcGet) Invoke(ctx context.Context, method string, opts ...InvokeOption) error + func (g *GrpcGet) ListService(ctx context.Context, service string) error + func (g *GrpcGet) ListServices(ctx context.Context) error + func (g *GrpcGet) SetOpts(opts ...GetOption) *GrpcGet + type InvokeOption func(*invokeOptions) + func WithInvokeParams(params ...string) InvokeOption + type InvokeOutput interface + OutputInvoke func(dmh *DynMsgHelper, value proto.Message) error + type InvokeParamSetter interface + SetInvokeParam func(dmh *DynMsgHelper, req *dynamic.Message) error + type ParameterInvokeParamSetter struct + Params []string + func NewParameterInvokeParamSetter(params ...string) *ParameterInvokeParamSetter + func (i *ParameterInvokeParamSetter) SetInvokeParam(dmh *DynMsgHelper, req *dynamic.Message) error + type ServiceListOutput interface + OutputServiceList func(services []string) error + type ServiceOutput interface + OutputService func(service *desc.ServiceDescriptor) error v1.0.0 Apr 18, 2018