test

package
v0.0.0-...-f1b2c4c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Answer

type Answer struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Answer) Descriptor

func (*Answer) Descriptor() ([]byte, []int)

func (*Answer) GetMsg

func (m *Answer) GetMsg() string

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) Reset

func (m *Answer) Reset()

func (*Answer) String

func (m *Answer) String() string

func (*Answer) XXX_DiscardUnknown

func (m *Answer) XXX_DiscardUnknown()

func (*Answer) XXX_Marshal

func (m *Answer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Answer) XXX_Merge

func (m *Answer) XXX_Merge(src proto.Message)

func (*Answer) XXX_Size

func (m *Answer) XXX_Size() int

func (*Answer) XXX_Unmarshal

func (m *Answer) XXX_Unmarshal(b []byte) error

type QnA

type QnA struct {
	// contains filtered or unexported fields
}

func NewQnA

func NewQnA(name string, addr ...string) (as *QnA, err error)

func (*QnA) Ask

func (s *QnA) Ask(ctx context.Context, in *Question) (out *Answer, err error)

func (*QnA) Dispatch

func (d *QnA) Dispatch(ctx context.Context, imp interface{}, req *requestf.ReqPacket, rsp *requestf.RspPacket) (err error)

func (*QnA) RegisterServiceImp

func (c *QnA) RegisterServiceImp(name string, imp _qnA) error

type Question

type Question struct {
	Msg                  string   `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Question) Descriptor

func (*Question) Descriptor() ([]byte, []int)

func (*Question) GetMsg

func (m *Question) GetMsg() string

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) Reset

func (m *Question) Reset()

func (*Question) String

func (m *Question) String() string

func (*Question) XXX_DiscardUnknown

func (m *Question) XXX_DiscardUnknown()

func (*Question) XXX_Marshal

func (m *Question) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Question) XXX_Merge

func (m *Question) XXX_Merge(src proto.Message)

func (*Question) XXX_Size

func (m *Question) XXX_Size() int

func (*Question) XXX_Unmarshal

func (m *Question) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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