test

package
v0.0.0-...-c687ad2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package hello_world is generated code used to make or handle TChannel calls using Thrift.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEchoClient

func NewEchoClient(client pb.TChanClient) *echoClient

func NewEchoServer

func NewEchoServer(handler Echo) pb.TChanServer

Types

type Echo

type Echo interface {
	Send(ctx pb.Context, arg *Request) (*Response, error)
	StreamTest(server Echo_StreamTest_Server) error
}

type Echo_StreamTest_Client

type Echo_StreamTest_Client interface {
	tchannel_go.ArgReader
	tchannel_go.ArgWriter
	pb.Context
	Send(*Request) error
	Recv() (*Response, error)
	Close() error
}

type Echo_StreamTest_Server

type Echo_StreamTest_Server interface {
	tchannel_go.ArgReader
	tchannel_go.ArgWriter
	pb.Context
	Send(*Response) error
	Recv() (*Request, error)
	Close() error
}

type Request

type Request struct {
	Action               string   `protobuf:"bytes,1,opt,name=Action,proto3" json:"Action,omitempty"`
	Field1               string   `protobuf:"bytes,2,opt,name=field1,proto3" json:"field1,omitempty"`
	Field2               string   `protobuf:"bytes,3,opt,name=field2,proto3" json:"field2,omitempty"`
	Field3               string   `protobuf:"bytes,4,opt,name=field3,proto3" json:"field3,omitempty"`
	Field4               string   `protobuf:"bytes,5,opt,name=field4,proto3" json:"field4,omitempty"`
	Field5               string   `protobuf:"bytes,6,opt,name=field5,proto3" json:"field5,omitempty"`
	Field6               string   `protobuf:"bytes,7,opt,name=field6,proto3" json:"field6,omitempty"`
	Field7               string   `protobuf:"bytes,8,opt,name=field7,proto3" json:"field7,omitempty"`
	Field8               string   `protobuf:"bytes,9,opt,name=field8,proto3" json:"field8,omitempty"`
	Field9               string   `protobuf:"bytes,10,opt,name=field9,proto3" json:"field9,omitempty"`
	Field10              string   `protobuf:"bytes,11,opt,name=field10,proto3" json:"field10,omitempty"`
	Time                 int64    `protobuf:"varint,12,opt,name=time,proto3" json:"time,omitempty"`
	Length               int64    `protobuf:"varint,13,opt,name=length,proto3" json:"length,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetAction

func (m *Request) GetAction() string

func (*Request) GetField1

func (m *Request) GetField1() string

func (*Request) GetField10

func (m *Request) GetField10() string

func (*Request) GetField2

func (m *Request) GetField2() string

func (*Request) GetField3

func (m *Request) GetField3() string

func (*Request) GetField4

func (m *Request) GetField4() string

func (*Request) GetField5

func (m *Request) GetField5() string

func (*Request) GetField6

func (m *Request) GetField6() string

func (*Request) GetField7

func (m *Request) GetField7() string

func (*Request) GetField8

func (m *Request) GetField8() string

func (*Request) GetField9

func (m *Request) GetField9() string

func (*Request) GetLength

func (m *Request) GetLength() int64

func (*Request) GetTime

func (m *Request) GetTime() int64

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type Response

type Response struct {
	Action               string   `protobuf:"bytes,1,opt,name=Action,proto3" json:"Action,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	IsEnd                bool     `protobuf:"varint,3,opt,name=isEnd,proto3" json:"isEnd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetAction

func (m *Response) GetAction() string

func (*Response) GetIsEnd

func (m *Response) GetIsEnd() bool

func (*Response) GetMsg

func (m *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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