Documentation
¶
Index ¶
- Constants
- Variables
- type Event
- type InDesc
- type MessageWrapper
- type Opts
- type TypeAndError
- type Wrapper
- func (g *Wrapper) CancelInvoke()
- func (g *Wrapper) Close()
- func (g *Wrapper) GetInputDescription(method string) <-chan InDesc
- func (g *Wrapper) Invoke(method string, request string) (<-chan Event, error)
- func (g *Wrapper) ListMethods(service string) <-chan TypeAndError[[]string]
- func (g *Wrapper) ListServices() <-chan TypeAndError[[]string]
Constants ¶
Variables ¶
View Source
var ( ProtoJSONMarshaler = &jsonpb.Marshaler{ EmitDefaults: true, Indent: " ", } )
Functions ¶
This section is empty.
Types ¶
type MessageWrapper ¶
type MessageWrapper struct {
Msg protoreflect.Message
}
func (MessageWrapper) ProtoReflect ¶
func (mw MessageWrapper) ProtoReflect() protoreflect.Message
type Opts ¶
type Opts struct { ConnectTimeout time.Duration KeepaliveTime time.Duration MaxMsgSize int Insecure bool }
func DefaultOpts ¶
func DefaultOpts() Opts
type TypeAndError ¶
type Wrapper ¶
type Wrapper struct { Target string // contains filtered or unexported fields }
func (*Wrapper) CancelInvoke ¶ added in v0.0.3
func (g *Wrapper) CancelInvoke()
func (*Wrapper) GetInputDescription ¶
func (*Wrapper) ListMethods ¶
func (g *Wrapper) ListMethods(service string) <-chan TypeAndError[[]string]
func (*Wrapper) ListServices ¶
func (g *Wrapper) ListServices() <-chan TypeAndError[[]string]
Click to show internal directories.
Click to hide internal directories.