SYMBOL INDEX (1003 symbols across 108 files) FILE: _testutils/arith_service.go constant _ (line 32) | _ = proto.GoGoProtoPackageIsVersion2 type ProtoArgs (line 34) | type ProtoArgs struct method Reset (line 39) | func (m *ProtoArgs) Reset() { *m = ProtoArgs{} } method String (line 40) | func (m *ProtoArgs) String() string { return proto.CompactT... method ProtoMessage (line 41) | func (*ProtoArgs) ProtoMessage() {} method Descriptor (line 42) | func (*ProtoArgs) Descriptor() ([]byte, []int) { return fileDescriptor... method GetA (line 44) | func (m *ProtoArgs) GetA() int32 { method GetB (line 51) | func (m *ProtoArgs) GetB() int32 { method Marshal (line 78) | func (m *ProtoArgs) Marshal() (dAtA []byte, err error) { method MarshalTo (line 88) | func (m *ProtoArgs) MarshalTo(dAtA []byte) (int, error) { method Size (line 156) | func (m *ProtoArgs) Size() (n int) { method Unmarshal (line 190) | func (m *ProtoArgs) Unmarshal(dAtA []byte) error { type ProtoReply (line 58) | type ProtoReply struct method Reset (line 62) | func (m *ProtoReply) Reset() { *m = ProtoReply{} } method String (line 63) | func (m *ProtoReply) String() string { return proto.Compact... method ProtoMessage (line 64) | func (*ProtoReply) ProtoMessage() {} method Descriptor (line 65) | func (*ProtoReply) Descriptor() ([]byte, []int) { return fileDescripto... method GetC (line 67) | func (m *ProtoReply) GetC() int32 { method Marshal (line 106) | func (m *ProtoReply) Marshal() (dAtA []byte, err error) { method MarshalTo (line 116) | func (m *ProtoReply) MarshalTo(dAtA []byte) (int, error) { method Size (line 168) | func (m *ProtoReply) Size() (n int) { method Unmarshal (line 278) | func (m *ProtoReply) Unmarshal(dAtA []byte) error { function init (line 74) | func init() { function encodeFixed64ArithService (line 129) | func encodeFixed64ArithService(dAtA []byte, offset int, v uint64) int { function encodeFixed32ArithService (line 140) | func encodeFixed32ArithService(dAtA []byte, offset int, v uint32) int { function encodeVarintArithService (line 147) | func encodeVarintArithService(dAtA []byte, offset int, v uint64) int { function sovArithService (line 177) | func sovArithService(x uint64) (n int) { function sozArithService (line 187) | func sozArithService(x uint64) (n int) { function skipArithService (line 347) | func skipArithService(dAtA []byte) (n int, err error) { function init (line 452) | func init() { proto.RegisterFile("arith_service.proto", fileDescriptorAr... FILE: _testutils/thrift_arith_service-consts.go function init (line 20) | func init() { FILE: _testutils/thrift_arith_service.go type ThriftArgs_ (line 23) | type ThriftArgs_ struct method GetA (line 32) | func (p *ThriftArgs_) GetA() int32 { method GetB (line 36) | func (p *ThriftArgs_) GetB() int32 { method Read (line 39) | func (p *ThriftArgs_) Read(ctx context.Context, iprot thrift.TProtocol... method ReadField1 (line 88) | func (p *ThriftArgs_) ReadField1(ctx context.Context, iprot thrift.TPr... method ReadField2 (line 97) | func (p *ThriftArgs_) ReadField2(ctx context.Context, iprot thrift.TPr... method Write (line 106) | func (p *ThriftArgs_) Write(ctx context.Context, oprot thrift.TProtoco... method writeField1 (line 127) | func (p *ThriftArgs_) writeField1(ctx context.Context, oprot thrift.TP... method writeField2 (line 140) | func (p *ThriftArgs_) writeField2(ctx context.Context, oprot thrift.TP... method Equals (line 153) | func (p *ThriftArgs_) Equals(other *ThriftArgs_) bool { method String (line 168) | func (p *ThriftArgs_) String() string { function NewThriftArgs_ (line 28) | func NewThriftArgs_() *ThriftArgs_ { type ThriftReply (line 177) | type ThriftReply struct method GetC (line 185) | func (p *ThriftReply) GetC() int32 { method Read (line 188) | func (p *ThriftReply) Read(ctx context.Context, iprot thrift.TProtocol... method ReadField1 (line 227) | func (p *ThriftReply) ReadField1(ctx context.Context, iprot thrift.TPr... method Write (line 236) | func (p *ThriftReply) Write(ctx context.Context, oprot thrift.TProtoco... method writeField1 (line 254) | func (p *ThriftReply) writeField1(ctx context.Context, oprot thrift.TP... method Equals (line 267) | func (p *ThriftReply) Equals(other *ThriftReply) bool { method String (line 279) | func (p *ThriftReply) String() string { function NewThriftReply (line 181) | func NewThriftReply() *ThriftReply { FILE: client/cache_client_builder.go type CacheClientBuilder (line 6) | type CacheClientBuilder interface function RegisterCacheClientBuilder (line 18) | func RegisterCacheClientBuilder(network string, builder CacheClientBuild... function getCacheClientBuilder (line 25) | func getCacheClientBuilder(network string) (CacheClientBuilder, bool) { FILE: client/circuit_breaker.go type ConsecCircuitBreaker (line 15) | type ConsecCircuitBreaker struct method Call (line 32) | func (cb *ConsecCircuitBreaker) Call(fn func() error, d time.Duration)... method ready (line 67) | func (cb *ConsecCircuitBreaker) ready() bool { method success (line 78) | func (cb *ConsecCircuitBreaker) success() { method fail (line 82) | func (cb *ConsecCircuitBreaker) fail() { method Success (line 87) | func (cb *ConsecCircuitBreaker) Success() { method Fail (line 91) | func (cb *ConsecCircuitBreaker) Fail() { method Ready (line 95) | func (cb *ConsecCircuitBreaker) Ready() bool { method reset (line 99) | func (cb *ConsecCircuitBreaker) reset() { function NewConsecCircuitBreaker (line 24) | func NewConsecCircuitBreaker(failureThreshold uint64, window time.Durati... FILE: client/circuit_breaker_test.go function TestConsecCircuitBreaker (line 10) | func TestConsecCircuitBreaker(t *testing.T) { function TestCircuitBreakerRace (line 56) | func TestCircuitBreakerRace(t *testing.T) { FILE: client/client.go constant XVersion (line 24) | XVersion = "X-RPCX-Version" constant XMessageType (line 25) | XMessageType = "X-RPCX-MesssageType" constant XHeartbeat (line 26) | XHeartbeat = "X-RPCX-Heartbeat" constant XOneway (line 27) | XOneway = "X-RPCX-Oneway" constant XMessageStatusType (line 28) | XMessageStatusType = "X-RPCX-MessageStatusType" constant XSerializeType (line 29) | XSerializeType = "X-RPCX-SerializeType" constant XMessageID (line 30) | XMessageID = "X-RPCX-MessageID" constant XServicePath (line 31) | XServicePath = "X-RPCX-ServicePath" constant XServiceMethod (line 32) | XServiceMethod = "X-RPCX-ServiceMethod" constant XMeta (line 33) | XMeta = "X-RPCX-Meta" constant XErrorMessage (line 34) | XErrorMessage = "X-RPCX-ErrorMessage" type ServiceError (line 38) | type ServiceError interface function NewServiceError (line 44) | func NewServiceError(s string) ServiceError { type strErr (line 51) | type strErr method Error (line 53) | func (s strErr) Error() string { method IsServiceError (line 57) | func (s strErr) IsServiceError() bool { type Breaker (line 76) | type Breaker interface constant ReaderBuffsize (line 94) | ReaderBuffsize = 16 * 1024 constant WriterBuffsize (line 96) | WriterBuffsize = 16 * 1024 type seqKey (line 99) | type seqKey struct type RPCClient (line 102) | type RPCClient interface type Client (line 120) | type Client struct method RemoteAddr (line 147) | func (client *Client) RemoteAddr() string { method GetConn (line 152) | func (client *Client) GetConn() net.Conn { method RegisterServerMessageChan (line 235) | func (client *Client) RegisterServerMessageChan(ch chan<- *protocol.Me... method UnregisterServerMessageChan (line 240) | func (client *Client) UnregisterServerMessageChan() { method IsClosing (line 245) | func (client *Client) IsClosing() bool { method IsShutdown (line 252) | func (client *Client) IsShutdown() bool { method Go (line 262) | func (client *Client) Go(ctx context.Context, servicePath, serviceMeth... method Call (line 303) | func (client *Client) Call(ctx context.Context, servicePath, serviceMe... method call (line 307) | func (client *Client) call(ctx context.Context, servicePath, serviceMe... method SendRaw (line 366) | func (client *Client) SendRaw(ctx context.Context, r *protocol.Message... method send (line 512) | func (client *Client) send(ctx context.Context, call *Call) { method input (line 638) | func (client *Client) input() { method handleServerRequest (line 784) | func (client *Client) handleServerRequest(msg *protocol.Message) { method heartbeat (line 806) | func (client *Client) heartbeat() { method Close (line 846) | func (client *Client) Close() error { function NewClient (line 140) | func NewClient(option Option) *Client { type Option (line 157) | type Option struct type Call (line 208) | type Call struct method done (line 220) | func (call *Call) done() { function convertRes2Raw (line 466) | func convertRes2Raw(res *protocol.Message) (map[string]string, []byte, e... function urlencode (line 494) | func urlencode(data map[string]string) string { FILE: client/client_test.go type Args (line 17) | type Args struct type Reply (line 22) | type Reply struct type Arith (line 26) | type Arith method Mul (line 28) | func (t *Arith) Mul(ctx context.Context, args *Args, reply *Reply) err... method ThriftMul (line 40) | func (t *Arith) ThriftMul(ctx context.Context, args *testutils.ThriftA... type PBArith (line 33) | type PBArith method Mul (line 35) | func (t *PBArith) Mul(ctx context.Context, args *testutils.ProtoArgs, ... type Bidirectional (line 45) | type Bidirectional struct method Mul (line 49) | func (t *Bidirectional) Mul(ctx context.Context, args *Args, reply *Re... function TestClient_IT (line 56) | func TestClient_IT(t *testing.T) { function TestClient_IT_Concurrency (line 126) | func TestClient_IT_Concurrency(t *testing.T) { function testSendRaw (line 157) | func testSendRaw(t *testing.T, client *Client, seq uint64, x, y int32, w... function TestClient_Res_Reset (line 192) | func TestClient_Res_Reset(t *testing.T) { function TestClient_Bidirectional (line 203) | func TestClient_Bidirectional(t *testing.T) { FILE: client/connection.go type ConnFactoryFn (line 18) | type ConnFactoryFn function init (line 22) | func init() { method Connect (line 32) | func (client *Client) Connect(network, address string) error { function newDirectConn (line 87) | func newDirectConn(c *Client, network, address string) (net.Conn, error) { function newDirectHTTPConn (line 118) | func newDirectHTTPConn(c *Client, network, address string) (net.Conn, er... function newDirectWSConn (line 176) | func newDirectWSConn(c *Client, network, address string) (net.Conn, erro... FILE: client/connection_iouring.go function newIOUringConn (line 8) | func newIOUringConn(c *Client, network, address string) (net.Conn, error) { FILE: client/connection_kcp.go function newDirectKCPConn (line 11) | func newDirectKCPConn(c *Client, network, address string) (net.Conn, err... FILE: client/connection_memu.go function newMemuConn (line 9) | func newMemuConn(c *Client, network, address string) (net.Conn, error) { FILE: client/connection_nonkcp.go function newDirectKCPConn (line 10) | func newDirectKCPConn(c *Client, network, address string) (net.Conn, err... FILE: client/connection_nonquic.go function newDirectQuicConn (line 11) | func newDirectQuicConn(c *Client, network, address string) (net.Conn, er... FILE: client/connection_quic.go function newDirectQuicConn (line 14) | func newDirectQuicConn(c *Client, network, address string) (net.Conn, er... FILE: client/connection_rdma.go function init (line 13) | func init() { function newRDMAConn (line 17) | func newRDMAConn(c *Client, network, address string) (net.Conn, error) { FILE: client/discovery.go type ServiceDiscoveryFilter (line 13) | type ServiceDiscoveryFilter type ServiceDiscovery (line 16) | type ServiceDiscovery interface type cachedServiceDiscovery (line 25) | type cachedServiceDiscovery struct method GetServices (line 60) | func (cd *cachedServiceDiscovery) GetServices() []*KVPair { method WatchService (line 80) | func (cd *cachedServiceDiscovery) WatchService() chan []*KVPair { method RemoveWatcher (line 111) | func (cd *cachedServiceDiscovery) RemoveWatcher(ch chan []*KVPair) { method storeCached (line 123) | func (cd *cachedServiceDiscovery) storeCached(kvPairs []*KVPair) { method loadCached (line 128) | func (cd *cachedServiceDiscovery) loadCached() (kvPairs []*KVPair) { function CacheDiscovery (line 38) | func CacheDiscovery(threshold int, cachedFile string, discovery ServiceD... FILE: client/dns_discovery.go type DNSDiscovery (line 15) | type DNSDiscovery struct method Clone (line 41) | func (d *DNSDiscovery) Clone(servicePath string) (ServiceDiscovery, er... method SetFilter (line 46) | func (d *DNSDiscovery) SetFilter(filter ServiceDiscoveryFilter) { method GetServices (line 51) | func (d *DNSDiscovery) GetServices() []*KVPair { method WatchService (line 58) | func (d *DNSDiscovery) WatchService() chan []*KVPair { method RemoveWatcher (line 67) | func (d *DNSDiscovery) RemoveWatcher(ch chan []*KVPair) { method lookup (line 83) | func (d *DNSDiscovery) lookup() { method watch (line 127) | func (d *DNSDiscovery) watch() { method Close (line 141) | func (d *DNSDiscovery) Close() { function NewDNSDiscovery (line 33) | func NewDNSDiscovery(domain string, network string, port int, d time.Dur... FILE: client/failmode_enumer.go constant _FailModeName (line 9) | _FailModeName = "FailoverFailfastFailtryFailbackup" method String (line 13) | func (i FailMode) String() string { function FailModeString (line 31) | func FailModeString(s string) (FailMode, error) { function FailModeValues (line 39) | func FailModeValues() []FailMode { method IsAFailMode (line 44) | func (i FailMode) IsAFailMode() bool { FILE: client/geo_utils.go function getDistanceFrom (line 8) | func getDistanceFrom(lat1, lon1, lat2, lon2 float64) float64 { function hsin (line 23) | func hsin(theta float64) float64 { FILE: client/hash_utils.go function Hash (line 9) | func Hash(key uint64, buckets int32) int32 { function HashString (line 26) | func HashString(s string) uint64 { type HashServiceAndArgs (line 33) | type HashServiceAndArgs type ConsistentAddrStrFunction (line 37) | type ConsistentAddrStrFunction function genKey (line 39) | func genKey(options ...interface{}) uint64 { function JumpConsistentHash (line 49) | func JumpConsistentHash(len int, options ...interface{}) int { function toString (line 53) | func toString(obj interface{}) string { FILE: client/mdns_discovery.go type serviceMeta (line 14) | type serviceMeta struct type MDNSDiscovery (line 22) | type MDNSDiscovery struct method Clone (line 59) | func (d *MDNSDiscovery) Clone(servicePath string) (ServiceDiscovery, e... method SetFilter (line 64) | func (d *MDNSDiscovery) SetFilter(filter ServiceDiscoveryFilter) { method GetServices (line 69) | func (d *MDNSDiscovery) GetServices() []*KVPair { method WatchService (line 77) | func (d *MDNSDiscovery) WatchService() chan []*KVPair { method RemoveWatcher (line 86) | func (d *MDNSDiscovery) RemoveWatcher(ch chan []*KVPair) { method watch (line 102) | func (d *MDNSDiscovery) watch() { method browse (line 138) | func (d *MDNSDiscovery) browse() ([]*KVPair, error) { method Close (line 186) | func (d *MDNSDiscovery) Close() { function NewMDNSDiscovery (line 40) | func NewMDNSDiscovery(service string, timeout time.Duration, watchInterv... FILE: client/mode.go type FailMode (line 4) | type FailMode constant Failover (line 8) | Failover FailMode = iota constant Failfast (line 10) | Failfast constant Failtry (line 12) | Failtry constant Failbackup (line 14) | Failbackup type SelectMode (line 18) | type SelectMode constant RandomSelect (line 22) | RandomSelect SelectMode = iota constant RoundRobin (line 24) | RoundRobin constant WeightedRoundRobin (line 26) | WeightedRoundRobin constant WeightedICMP (line 28) | WeightedICMP constant ConsistentHash (line 30) | ConsistentHash constant Closest (line 32) | Closest constant SelectByUser (line 35) | SelectByUser = 1000 FILE: client/multiple_servers_discovery.go type MultipleServersDiscovery (line 12) | type MultipleServersDiscovery struct method Clone (line 28) | func (d *MultipleServersDiscovery) Clone(servicePath string) (ServiceD... method SetFilter (line 33) | func (d *MultipleServersDiscovery) SetFilter(filter ServiceDiscoveryFi... method GetServices (line 37) | func (d *MultipleServersDiscovery) GetServices() []*KVPair { method WatchService (line 45) | func (d *MultipleServersDiscovery) WatchService() chan []*KVPair { method RemoveWatcher (line 54) | func (d *MultipleServersDiscovery) RemoveWatcher(ch chan []*KVPair) { method Update (line 71) | func (d *MultipleServersDiscovery) Update(pairs []*KVPair) { method Close (line 94) | func (d *MultipleServersDiscovery) Close() { function NewMultipleServersDiscovery (line 21) | func NewMultipleServersDiscovery(pairs []*KVPair) (*MultipleServersDisco... FILE: client/oneclient.go type OneClient (line 18) | type OneClient struct method SetSelector (line 62) | func (c *OneClient) SetSelector(servicePath string, s Selector) { method SetPlugins (line 72) | func (c *OneClient) SetPlugins(plugins PluginContainer) { method GetPlugins (line 81) | func (c *OneClient) GetPlugins() PluginContainer { method ConfigGeoSelector (line 87) | func (c *OneClient) ConfigGeoSelector(latitude, longitude float64) { method Auth (line 100) | func (c *OneClient) Auth(auth string) { method Go (line 111) | func (c *OneClient) Go(ctx context.Context, servicePath string, servic... method newXClient (line 133) | func (c *OneClient) newXClient(servicePath string) (xclient XClient, e... method Call (line 176) | func (c *OneClient) Call(ctx context.Context, servicePath string, serv... method SendRaw (line 198) | func (c *OneClient) SendRaw(ctx context.Context, r *protocol.Message) ... method Broadcast (line 226) | func (c *OneClient) Broadcast(ctx context.Context, servicePath string,... method Fork (line 250) | func (c *OneClient) Fork(ctx context.Context, servicePath string, serv... method SendFile (line 272) | func (c *OneClient) SendFile(ctx context.Context, fileName string, rat... method DownloadFile (line 294) | func (c *OneClient) DownloadFile(ctx context.Context, requestFileName ... method Stream (line 316) | func (c *OneClient) Stream(ctx context.Context, meta map[string]string... method Close (line 339) | func (c *OneClient) Close() error { function NewOneClient (line 37) | func NewOneClient(failMode FailMode, selectMode SelectMode, discovery Se... function NewBidirectionalOneClient (line 49) | func NewBidirectionalOneClient(failMode FailMode, selectMode SelectMode,... FILE: client/oneclient_pool.go type OneClientPool (line 12) | type OneClientPool struct method Auth (line 64) | func (p *OneClientPool) Auth(auth string) { method SetPlugins (line 73) | func (p *OneClientPool) SetPlugins(plugins PluginContainer) { method GetPlugins (line 82) | func (p *OneClientPool) GetPlugins() PluginContainer { method Get (line 89) | func (p *OneClientPool) Get() *OneClient { method Close (line 97) | func (p *OneClientPool) Close() { function NewOneClientPool (line 27) | func NewOneClientPool(count int, failMode FailMode, selectMode SelectMod... function NewBidirectionalOneClientPool (line 45) | func NewBidirectionalOneClientPool(count int, failMode FailMode, selectM... FILE: client/oneclient_pool_test.go function TestOneClientPool_SetPlugins (line 7) | func TestOneClientPool_SetPlugins(t *testing.T) { function TestOneClientPool_GetPlugins (line 50) | func TestOneClientPool_GetPlugins(t *testing.T) { function TestOneClientPool_SetPlugins_Concurrent (line 95) | func TestOneClientPool_SetPlugins_Concurrent(t *testing.T) { FILE: client/peer2peer_discovery.go type Peer2PeerDiscovery (line 5) | type Peer2PeerDiscovery struct method Clone (line 16) | func (d *Peer2PeerDiscovery) Clone(servicePath string) (ServiceDiscove... method SetFilter (line 21) | func (d *Peer2PeerDiscovery) SetFilter(filter ServiceDiscoveryFilter) { method GetServices (line 26) | func (d *Peer2PeerDiscovery) GetServices() []*KVPair { method WatchService (line 31) | func (d *Peer2PeerDiscovery) WatchService() chan []*KVPair { method RemoveWatcher (line 35) | func (d *Peer2PeerDiscovery) RemoveWatcher(ch chan []*KVPair) {} method Close (line 37) | func (d *Peer2PeerDiscovery) Close() { function NewPeer2PeerDiscovery (line 11) | func NewPeer2PeerDiscovery(server, metadata string) (*Peer2PeerDiscovery... FILE: client/ping_utils.go type weightedICMPSelector (line 13) | type weightedICMPSelector struct method Select (line 29) | func (s *weightedICMPSelector) Select(ctx context.Context, servicePath... method UpdateServer (line 33) | func (s *weightedICMPSelector) UpdateServer(servers map[string]string) { function newWeightedICMPSelector (line 18) | func newWeightedICMPSelector(servers map[string]string) Selector { function createICMPWeighted (line 40) | func createICMPWeighted(servers map[string]string) []*Weighted { function Ping (line 56) | func Ping(host string) (rtt int, err error) { function CalculateWeight (line 88) | func CalculateWeight(rtt int) int { FILE: client/plugin.go type pluginContainer (line 11) | type pluginContainer struct method Add (line 23) | func (p *pluginContainer) Add(plugin Plugin) { method Remove (line 28) | func (p *pluginContainer) Remove(plugin Plugin) { method All (line 44) | func (p *pluginContainer) All() []Plugin { method DoPreCall (line 49) | func (p *pluginContainer) DoPreCall(ctx context.Context, servicePath, ... method DoPostCall (line 63) | func (p *pluginContainer) DoPostCall(ctx context.Context, servicePath,... method DoConnCreated (line 76) | func (p *pluginContainer) DoConnCreated(conn net.Conn) (net.Conn, erro... method DoConnCreateFailed (line 90) | func (p *pluginContainer) DoConnCreateFailed(network, address string) { method DoClientConnected (line 99) | func (p *pluginContainer) DoClientConnected(conn net.Conn) (net.Conn, ... method DoClientConnectionClose (line 113) | func (p *pluginContainer) DoClientConnectionClose(conn net.Conn) error { method DoClientBeforeEncode (line 127) | func (p *pluginContainer) DoClientBeforeEncode(req *protocol.Message) ... method DoClientAfterDecode (line 141) | func (p *pluginContainer) DoClientAfterDecode(req *protocol.Message) e... method DoWrapSelect (line 155) | func (p *pluginContainer) DoWrapSelect(fn SelectFunc) SelectFunc { function NewPluginContainer (line 15) | func NewPluginContainer() PluginContainer { type Plugin (line 20) | type Plugin interface type PreCallPlugin (line 168) | type PreCallPlugin interface type PostCallPlugin (line 173) | type PostCallPlugin interface type ConnCreatedPlugin (line 178) | type ConnCreatedPlugin interface type ConnCreateFailedPlugin (line 182) | type ConnCreateFailedPlugin interface type ClientConnectedPlugin (line 187) | type ClientConnectedPlugin interface type ClientConnectionClosePlugin (line 192) | type ClientConnectionClosePlugin interface type ClientBeforeEncodePlugin (line 197) | type ClientBeforeEncodePlugin interface type ClientAfterDecodePlugin (line 202) | type ClientAfterDecodePlugin interface type SelectNodePlugin (line 207) | type SelectNodePlugin interface type PluginContainer (line 213) | type PluginContainer interface FILE: client/selectmode_enumer.go constant _SelectModeName (line 9) | _SelectModeName = "RandomSelectRoundRobinWeightedRoundRobinWeightedICMPC... method String (line 13) | func (i SelectMode) String() string { function SelectModeString (line 33) | func SelectModeString(s string) (SelectMode, error) { function SelectModeValues (line 41) | func SelectModeValues() []SelectMode { method IsASelectMode (line 46) | func (i SelectMode) IsASelectMode() bool { FILE: client/selector.go type SelectFunc (line 18) | type SelectFunc type Selector (line 21) | type Selector interface function newSelector (line 26) | func newSelector(selectMode SelectMode, servers map[string]string) Selec... type randomSelector (line 46) | type randomSelector struct method Select (line 59) | func (s *randomSelector) Select(ctx context.Context, servicePath, serv... method UpdateServer (line 68) | func (s *randomSelector) UpdateServer(servers map[string]string) { function newRandomSelector (line 50) | func newRandomSelector(servers map[string]string) Selector { type roundRobinSelector (line 78) | type roundRobinSelector struct method Select (line 92) | func (s *roundRobinSelector) Select(ctx context.Context, servicePath, ... method UpdateServer (line 104) | func (s *roundRobinSelector) UpdateServer(servers map[string]string) { function newRoundRobinSelector (line 83) | func newRoundRobinSelector(servers map[string]string) Selector { type weightedRoundRobinSelector (line 114) | type weightedRoundRobinSelector struct method Select (line 127) | func (s *weightedRoundRobinSelector) Select(ctx context.Context, servi... method UpdateServer (line 138) | func (s *weightedRoundRobinSelector) UpdateServer(servers map[string]s... method buildRing (line 143) | func (s *weightedRoundRobinSelector) buildRing() { method next (line 155) | func (s *weightedRoundRobinSelector) next() *Weighted { function newWeightedRoundRobinSelector (line 120) | func newWeightedRoundRobinSelector(servers map[string]string) Selector { function createWeighted (line 178) | func createWeighted(servers map[string]string) []*Weighted { type geoServer (line 198) | type geoServer struct type geoSelector (line 205) | type geoSelector struct method Select (line 218) | func (s *geoSelector) Select(ctx context.Context, servicePath, service... method UpdateServer (line 242) | func (s *geoSelector) UpdateServer(servers map[string]string) { function newGeoSelector (line 212) | func newGeoSelector(servers map[string]string, latitude, longitude float... function createGeoServer (line 247) | func createGeoServer(servers map[string]string) []*geoServer { type consistentHashSelector (line 277) | type consistentHashSelector struct method Select (line 294) | func (s *consistentHashSelector) Select(ctx context.Context, servicePa... method UpdateServer (line 305) | func (s *consistentHashSelector) UpdateServer(servers map[string]strin... function newConsistentHashSelector (line 282) | func newConsistentHashSelector(servers map[string]string) Selector { FILE: client/selector_test.go function Test_consistentHashSelector_Select (line 8) | func Test_consistentHashSelector_Select(t *testing.T) { function Test_consistentHashSelector_UpdateServer (line 26) | func Test_consistentHashSelector_UpdateServer(t *testing.T) { function TestWeightedRoundRobinSelector_Select (line 41) | func TestWeightedRoundRobinSelector_Select(t *testing.T) { function TestWeightedRoundRobinSelector_UpdateServer (line 67) | func TestWeightedRoundRobinSelector_UpdateServer(t *testing.T) { function BenchmarkWeightedRoundRobinSelector_Select (line 96) | func BenchmarkWeightedRoundRobinSelector_Select(b *testing.B) { FILE: client/smooth_weighted_round_robin.go type Weighted (line 4) | type Weighted struct FILE: client/xclient.go constant FileTransferBufferSize (line 28) | FileTransferBufferSize = 1024 type Receipt (line 41) | type Receipt struct type XClient (line 49) | type XClient interface type KVPair (line 79) | type KVPair struct type xClient (line 84) | type xClient struct method SetSelector (line 70) | func (c *xClient) SetSelector(s Selector) { method SetPlugins (line 191) | func (c *xClient) SetPlugins(plugins PluginContainer) { method GetPlugins (line 195) | func (c *xClient) GetPlugins() PluginContainer { method ConfigGeoSelector (line 201) | func (c *xClient) ConfigGeoSelector(latitude, longitude float64) { method Auth (line 207) | func (c *xClient) Auth(auth string) { method watch (line 212) | func (c *xClient) watch(ch chan []*KVPair) { method selectClient (line 257) | func (c *xClient) selectClient(ctx context.Context, servicePath, servi... method getCachedClient (line 308) | func (c *xClient) getCachedClient(k string, servicePath, serviceMethod... method setCachedClient (line 365) | func (c *xClient) setCachedClient(client RPCClient, k, servicePath, se... method findCachedClient (line 375) | func (c *xClient) findCachedClient(k, servicePath, serviceMethod strin... method deleteCachedClient (line 384) | func (c *xClient) deleteCachedClient(client RPCClient, k, servicePath,... method removeClient (line 398) | func (c *xClient) removeClient(k, servicePath, serviceMethod string, c... method generateClient (line 417) | func (c *xClient) generateClient(k, servicePath, serviceMethod string)... method getCachedClientWithoutLock (line 443) | func (c *xClient) getCachedClientWithoutLock(k, servicePath, serviceMe... method Go (line 505) | func (c *xClient) Go(ctx context.Context, serviceMethod string, args i... method Call (line 542) | func (c *xClient) Call(ctx context.Context, serviceMethod string, args... method Oneshot (line 707) | func (c *xClient) Oneshot(ctx context.Context, serviceMethod string, a... method SendRaw (line 768) | func (c *xClient) SendRaw(ctx context.Context, r *protocol.Message) (m... method wrapCall (line 877) | func (c *xClient) wrapCall(ctx context.Context, client RPCClient, serv... method wrapSendRaw (line 905) | func (c *xClient) wrapSendRaw(ctx context.Context, client RPCClient, r... method Broadcast (line 933) | func (c *xClient) Broadcast(ctx context.Context, serviceMethod string,... method Fork (line 1032) | func (c *xClient) Fork(ctx context.Context, serviceMethod string, args... method Inform (line 1135) | func (c *xClient) Inform(ctx context.Context, serviceMethod string, ar... method SendFile (line 1252) | func (c *xClient) SendFile(ctx context.Context, fileName string, rateI... method DownloadFile (line 1333) | func (c *xClient) DownloadFile(ctx context.Context, requestFileName st... method Close (line 1389) | func (c *xClient) Close() error { method Stream (line 1419) | func (c *xClient) Stream(ctx context.Context, meta map[string]string) ... function NewXClient (line 115) | func NewXClient(servicePath string, failMode FailMode, selectMode Select... function NewBidirectionalXClient (line 153) | func NewBidirectionalXClient(servicePath string, failMode FailMode, sele... function filterByStateAndGroup (line 233) | func filterByStateAndGroup(group string, servers map[string]string) { function safeCloseClient (line 296) | func safeCloseClient(client RPCClient) { function splitNetworkAndAddress (line 480) | func splitNetworkAndAddress(server string) (string, string) { function setServerTimeout (line 489) | func setServerTimeout(ctx context.Context) context.Context { function uncoverError (line 740) | func uncoverError(err error) bool { function contextCanceled (line 756) | func contextCanceled(err error) bool { FILE: client/xclient_pool.go type XClientPool (line 13) | type XClientPool struct method Auth (line 70) | func (c *XClientPool) Auth(auth string) { method SetPlugins (line 80) | func (p *XClientPool) SetPlugins(plugins PluginContainer) { method GetPlugins (line 90) | func (p *XClientPool) GetPlugins() PluginContainer { method Get (line 97) | func (p *XClientPool) Get() XClient { method Close (line 105) | func (p *XClientPool) Close() { function NewXClientPool (line 31) | func NewXClientPool(count int, servicePath string, failMode FailMode, se... function NewBidirectionalXClientPool (line 50) | func NewBidirectionalXClientPool(count int, servicePath string, failMode... FILE: client/xclient_pool_test.go type testPlugin (line 8) | type testPlugin struct function TestXClientPool_SetPlugins (line 12) | func TestXClientPool_SetPlugins(t *testing.T) { function TestXClientPool_GetPlugins (line 55) | func TestXClientPool_GetPlugins(t *testing.T) { function TestXClientPool_SetPlugins_Concurrent (line 100) | func TestXClientPool_SetPlugins_Concurrent(t *testing.T) { FILE: client/xclient_test.go function TestXClient_Thrift (line 17) | func TestXClient_Thrift(t *testing.T) { function TestXClient_IT (line 61) | func TestXClient_IT(t *testing.T) { function TestXClient_filterByStateAndGroup (line 95) | func TestXClient_filterByStateAndGroup(t *testing.T) { function TestUncoverError (line 118) | func TestUncoverError(t *testing.T) { FILE: clientplugin/req_rate_limiting_redis.go type RedisRateLimitingPlugin (line 16) | type RedisRateLimitingPlugin struct method PreCall (line 43) | func (plugin *RedisRateLimitingPlugin) PreCall(ctx context.Context, se... function NewRedisRateLimitingPlugin (line 23) | func NewRedisRateLimitingPlugin(addrs []string, rate int, burst int, per... FILE: codec/codec.go type Codec (line 20) | type Codec interface type ByteCodec (line 26) | type ByteCodec struct method Encode (line 29) | func (c ByteCodec) Encode(i interface{}) ([]byte, error) { method Decode (line 41) | func (c ByteCodec) Decode(data []byte, i interface{}) error { type JSONCodec (line 47) | type JSONCodec struct method Encode (line 50) | func (c JSONCodec) Encode(i interface{}) ([]byte, error) { method Decode (line 55) | func (c JSONCodec) Decode(data []byte, i interface{}) error { type PBCodec (line 62) | type PBCodec struct method Encode (line 65) | func (c PBCodec) Encode(i interface{}) ([]byte, error) { method Decode (line 78) | func (c PBCodec) Decode(data []byte, i interface{}) error { type MsgpackCodec (line 91) | type MsgpackCodec struct method Encode (line 94) | func (c MsgpackCodec) Encode(i interface{}) ([]byte, error) { method Decode (line 106) | func (c MsgpackCodec) Decode(data []byte, i interface{}) error { type ThriftCodec (line 117) | type ThriftCodec struct method Encode (line 119) | func (c ThriftCodec) Encode(i interface{}) ([]byte, error) { method Decode (line 134) | func (c ThriftCodec) Decode(data []byte, i interface{}) error { FILE: codec/codec_test.go type ColorGroup (line 9) | type ColorGroup struct function BenchmarkJSONCodec_Encode (line 21) | func BenchmarkJSONCodec_Encode(b *testing.B) { function BenchmarkPBCodec_Encode (line 32) | func BenchmarkPBCodec_Encode(b *testing.B) { function BenchmarkMsgpackCodec_Encode (line 47) | func BenchmarkMsgpackCodec_Encode(b *testing.B) { function BenchmarkThriftCodec_Encode (line 58) | func BenchmarkThriftCodec_Encode(b *testing.B) { function BenchmarkJSONCodec_Decode (line 75) | func BenchmarkJSONCodec_Decode(b *testing.B) { function BenchmarkPBCodec_Decode (line 86) | func BenchmarkPBCodec_Decode(b *testing.B) { function BenchmarkMsgpackCodec_Decode (line 97) | func BenchmarkMsgpackCodec_Decode(b *testing.B) { function BenchmarkThriftCodec_Decode (line 108) | func BenchmarkThriftCodec_Decode(b *testing.B) { FILE: codec/testdata/protobuf.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ProtoColorGroup (line 23) | type ProtoColorGroup struct method Reset (line 33) | func (x *ProtoColorGroup) Reset() { method String (line 42) | func (x *ProtoColorGroup) String() string { method ProtoMessage (line 46) | func (*ProtoColorGroup) ProtoMessage() {} method ProtoReflect (line 48) | func (x *ProtoColorGroup) ProtoReflect() protoreflect.Message { method Descriptor (line 61) | func (*ProtoColorGroup) Descriptor() ([]byte, []int) { method GetId (line 65) | func (x *ProtoColorGroup) GetId() int32 { method GetName (line 72) | func (x *ProtoColorGroup) GetName() string { method GetColors (line 79) | func (x *ProtoColorGroup) GetColors() []string { function file_protobuf_proto_rawDescGZIP (line 104) | func file_protobuf_proto_rawDescGZIP() []byte { function init (line 123) | func init() { file_protobuf_proto_init() } function file_protobuf_proto_init (line 124) | func file_protobuf_proto_init() { FILE: codec/testdata/thrift_colorgroup-consts.go function init (line 21) | func init() { FILE: codec/testdata/thrift_colorgroup.go type ThriftColorGroup (line 24) | type ThriftColorGroup struct method GetID (line 35) | func (p *ThriftColorGroup) GetID() int32 { method GetName (line 39) | func (p *ThriftColorGroup) GetName() string { method GetColors (line 43) | func (p *ThriftColorGroup) GetColors() []string { method Read (line 46) | func (p *ThriftColorGroup) Read(ctx context.Context, iprot thrift.TPro... method ReadField1 (line 104) | func (p *ThriftColorGroup) ReadField1(ctx context.Context, iprot thri... method ReadField2 (line 113) | func (p *ThriftColorGroup) ReadField2(ctx context.Context, iprot thri... method ReadField3 (line 122) | func (p *ThriftColorGroup) ReadField3(ctx context.Context, iprot thri... method Write (line 144) | func (p *ThriftColorGroup) Write(ctx context.Context, oprot thrift.TPr... method writeField1 (line 159) | func (p *ThriftColorGroup) writeField1(ctx context.Context, oprot thri... method writeField2 (line 169) | func (p *ThriftColorGroup) writeField2(ctx context.Context, oprot thri... method writeField3 (line 179) | func (p *ThriftColorGroup) writeField3(ctx context.Context, oprot thri... method Equals (line 197) | func (p *ThriftColorGroup) Equals(other *ThriftColorGroup) bool { method String (line 213) | func (p *ThriftColorGroup) String() string { function NewThriftColorGroup (line 30) | func NewThriftColorGroup() *ThriftColorGroup { FILE: errors/error.go type MultiError (line 9) | type MultiError struct method Error (line 15) | func (e *MultiError) Error() string { method Append (line 19) | func (e *MultiError) Append(err error) { method ErrorOrNil (line 25) | func (e *MultiError) ErrorOrNil() error { function NewMultiError (line 33) | func NewMultiError(errors []error) *MultiError { FILE: errors/error_test.go function TestNewMultiError (line 11) | func TestNewMultiError(t *testing.T) { function TestMultiError_Append (line 20) | func TestMultiError_Append(t *testing.T) { function TestMultiError_Error (line 28) | func TestMultiError_Error(t *testing.T) { function TestMultiError_ErrorOrNil (line 36) | func TestMultiError_ErrorOrNil(t *testing.T) { FILE: log/default_logger.go type Level (line 17) | type Level constant LvPanic (line 21) | LvPanic Level = iota constant LvFatal (line 22) | LvFatal constant LvError (line 23) | LvError constant LvWarn (line 24) | LvWarn constant LvInfo (line 25) | LvInfo constant LvDebug (line 26) | LvDebug constant LvMax (line 28) | LvMax type outputFn (line 31) | type outputFn function dropOutput (line 33) | func dropOutput(calldepth int, s string) error { type defaultLogger (line 37) | type defaultLogger struct method Debug (line 70) | func (l *defaultLogger) Debug(v ...interface{}) { method Debugf (line 74) | func (l *defaultLogger) Debugf(format string, v ...interface{}) { method Info (line 78) | func (l *defaultLogger) Info(v ...interface{}) { method Infof (line 82) | func (l *defaultLogger) Infof(format string, v ...interface{}) { method Warn (line 86) | func (l *defaultLogger) Warn(v ...interface{}) { method Warnf (line 90) | func (l *defaultLogger) Warnf(format string, v ...interface{}) { method Error (line 94) | func (l *defaultLogger) Error(v ...interface{}) { method Errorf (line 98) | func (l *defaultLogger) Errorf(format string, v ...interface{}) { method Fatal (line 102) | func (l *defaultLogger) Fatal(v ...interface{}) { method Fatalf (line 107) | func (l *defaultLogger) Fatalf(format string, v ...interface{}) { method Panic (line 112) | func (l *defaultLogger) Panic(v ...interface{}) { method Panicf (line 116) | func (l *defaultLogger) Panicf(format string, v ...interface{}) { function NewDefaultLogger (line 42) | func NewDefaultLogger(out io.Writer, prefix string, flag int, lv Level) ... function header (line 120) | func header(lvl, msg string) string { FILE: log/dummy_logger.go type dummyLogger (line 3) | type dummyLogger struct method Debug (line 5) | func (l *dummyLogger) Debug(v ...interface{}) { method Debugf (line 8) | func (l *dummyLogger) Debugf(format string, v ...interface{}) { method Info (line 11) | func (l *dummyLogger) Info(v ...interface{}) { method Infof (line 14) | func (l *dummyLogger) Infof(format string, v ...interface{}) { method Warn (line 17) | func (l *dummyLogger) Warn(v ...interface{}) { method Warnf (line 20) | func (l *dummyLogger) Warnf(format string, v ...interface{}) { method Error (line 23) | func (l *dummyLogger) Error(v ...interface{}) { method Errorf (line 26) | func (l *dummyLogger) Errorf(format string, v ...interface{}) { method Fatal (line 29) | func (l *dummyLogger) Fatal(v ...interface{}) { method Fatalf (line 32) | func (l *dummyLogger) Fatalf(format string, v ...interface{}) { method Panic (line 35) | func (l *dummyLogger) Panic(v ...interface{}) { method Panicf (line 38) | func (l *dummyLogger) Panicf(format string, v ...interface{}) { FILE: log/logger.go constant calldepth (line 9) | calldepth = 3 type Logger (line 14) | type Logger interface function SetLogger (line 34) | func SetLogger(logger Logger) { function GetLogger (line 38) | func GetLogger() Logger { function SetDummyLogger (line 42) | func SetDummyLogger() { function Debug (line 46) | func Debug(v ...interface{}) { function Debugf (line 49) | func Debugf(format string, v ...interface{}) { function Info (line 53) | func Info(v ...interface{}) { function Infof (line 56) | func Infof(format string, v ...interface{}) { function Warn (line 60) | func Warn(v ...interface{}) { function Warnf (line 63) | func Warnf(format string, v ...interface{}) { function Error (line 67) | func Error(v ...interface{}) { function Errorf (line 70) | func Errorf(format string, v ...interface{}) { function Fatal (line 74) | func Fatal(v ...interface{}) { function Fatalf (line 77) | func Fatalf(format string, v ...interface{}) { function Panic (line 81) | func Panic(v ...interface{}) { function Panicf (line 84) | func Panicf(format string, v ...interface{}) { FILE: protocol/compressor.go type Compressor (line 12) | type Compressor interface type GzipCompressor (line 18) | type GzipCompressor struct method Zip (line 21) | func (c GzipCompressor) Zip(data []byte) ([]byte, error) { method Unzip (line 25) | func (c GzipCompressor) Unzip(data []byte) ([]byte, error) { type RawDataCompressor (line 29) | type RawDataCompressor struct method Zip (line 32) | func (c RawDataCompressor) Zip(data []byte) ([]byte, error) { method Unzip (line 36) | func (c RawDataCompressor) Unzip(data []byte) ([]byte, error) { type SnappyCompressor (line 41) | type SnappyCompressor struct method Zip (line 44) | func (c *SnappyCompressor) Zip(data []byte) ([]byte, error) { method Unzip (line 64) | func (c *SnappyCompressor) Unzip(data []byte) ([]byte, error) { FILE: protocol/compressor_test.go function newBenchmarkMessage (line 11) | func newBenchmarkMessage() *testdata.BenchmarkMessage { function BenchmarkGzipCompressor_Zip (line 38) | func BenchmarkGzipCompressor_Zip(b *testing.B) { function BenchmarkRawDataCompressor_Zip (line 50) | func BenchmarkRawDataCompressor_Zip(b *testing.B) { function BenchmarkSnappyCompressor_Zip (line 62) | func BenchmarkSnappyCompressor_Zip(b *testing.B) { function BenchmarkGzipCompressor_Unzip (line 74) | func BenchmarkGzipCompressor_Unzip(b *testing.B) { function BenchmarkRawDataCompressor_Unzip (line 87) | func BenchmarkRawDataCompressor_Unzip(b *testing.B) { function BenchmarkSnappyCompressor_Unzip (line 100) | func BenchmarkSnappyCompressor_Unzip(b *testing.B) { FILE: protocol/message.go constant magicNumber (line 29) | magicNumber byte = 0x08 function MagicNumber (line 32) | func MagicNumber() byte { constant ServiceError (line 47) | ServiceError = "__rpcx_error__" type MessageType (line 51) | type MessageType constant Request (line 55) | Request MessageType = iota constant Response (line 57) | Response type MessageStatusType (line 61) | type MessageStatusType constant Normal (line 65) | Normal MessageStatusType = iota constant Error (line 67) | Error type CompressType (line 71) | type CompressType constant None (line 75) | None CompressType = iota constant Gzip (line 77) | Gzip type SerializeType (line 81) | type SerializeType constant SerializeNone (line 85) | SerializeNone SerializeType = iota constant JSON (line 87) | JSON constant ProtoBuffer (line 89) | ProtoBuffer constant MsgPack (line 91) | MsgPack constant Thrift (line 94) | Thrift type Message (line 98) | type Message struct method Clone (line 216) | func (m Message) Clone() *Message { method Encode (line 227) | func (m Message) Encode() []byte { method EncodeSlicePointer (line 233) | func (m Message) EncodeSlicePointer() *[]byte { method WriteTo (line 291) | func (m Message) WriteTo(w io.Writer) (int64, error) { method Decode (line 416) | func (m *Message) Decode(r io.Reader) error { method Reset (line 513) | func (m *Message) Reset() { function NewMessage (line 108) | func NewMessage() *Message { type Header (line 119) | type Header method CheckMagicNumber (line 122) | func (h Header) CheckMagicNumber() bool { method Version (line 127) | func (h Header) Version() byte { method SetVersion (line 132) | func (h *Header) SetVersion(v byte) { method MessageType (line 137) | func (h Header) MessageType() MessageType { method SetMessageType (line 142) | func (h *Header) SetMessageType(mt MessageType) { method IsHeartbeat (line 147) | func (h Header) IsHeartbeat() bool { method SetHeartbeat (line 152) | func (h *Header) SetHeartbeat(hb bool) { method IsOneway (line 162) | func (h Header) IsOneway() bool { method SetOneway (line 167) | func (h *Header) SetOneway(oneway bool) { method CompressType (line 176) | func (h Header) CompressType() CompressType { method SetCompressType (line 181) | func (h *Header) SetCompressType(ct CompressType) { method MessageStatusType (line 186) | func (h Header) MessageStatusType() MessageStatusType { method SetMessageStatusType (line 191) | func (h *Header) SetMessageStatusType(mt MessageStatusType) { method SerializeType (line 196) | func (h Header) SerializeType() SerializeType { method SetSerializeType (line 201) | func (h *Header) SetSerializeType(st SerializeType) { method Seq (line 206) | func (h Header) Seq() uint64 { method SetSeq (line 211) | func (h *Header) SetSeq(seq uint64) { function PutData (line 286) | func PutData(data *[]byte) { function encodeMetadata (line 362) | func encodeMetadata(m map[string]string, bb *bytes.Buffer) { function decodeMetadata (line 377) | func decodeMetadata(l uint32, data []byte) (map[string]string, error) { function Read (line 406) | func Read(r io.Reader) (*Message, error) { function resetHeader (line 527) | func resetHeader(h *Header) { FILE: protocol/message_chan_test.go function TestChanValue (line 11) | func TestChanValue(t *testing.T) { function TestChanPtr (line 35) | func TestChanPtr(t *testing.T) { function BenchmarkChanValue (line 60) | func BenchmarkChanValue(b *testing.B) { function BenchmarkChanPtr (line 78) | func BenchmarkChanPtr(b *testing.B) { FILE: protocol/message_test.go function TestMessage (line 8) | func TestMessage(t *testing.T) { FILE: protocol/testdata/benchmark.pb.go constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type BenchmarkMessage (line 23) | type BenchmarkMessage struct method Reset (line 70) | func (x *BenchmarkMessage) Reset() { method String (line 79) | func (x *BenchmarkMessage) String() string { method ProtoMessage (line 83) | func (*BenchmarkMessage) ProtoMessage() {} method ProtoReflect (line 85) | func (x *BenchmarkMessage) ProtoReflect() protoreflect.Message { method Descriptor (line 98) | func (*BenchmarkMessage) Descriptor() ([]byte, []int) { method GetField1 (line 102) | func (x *BenchmarkMessage) GetField1() string { method GetField9 (line 109) | func (x *BenchmarkMessage) GetField9() string { method GetField18 (line 116) | func (x *BenchmarkMessage) GetField18() string { method GetField80 (line 123) | func (x *BenchmarkMessage) GetField80() bool { method GetField81 (line 130) | func (x *BenchmarkMessage) GetField81() bool { method GetField2 (line 137) | func (x *BenchmarkMessage) GetField2() int32 { method GetField3 (line 144) | func (x *BenchmarkMessage) GetField3() int32 { method GetField280 (line 151) | func (x *BenchmarkMessage) GetField280() int32 { method GetField6 (line 158) | func (x *BenchmarkMessage) GetField6() int32 { method GetField22 (line 165) | func (x *BenchmarkMessage) GetField22() int64 { method GetField4 (line 172) | func (x *BenchmarkMessage) GetField4() string { method GetField5 (line 179) | func (x *BenchmarkMessage) GetField5() []uint64 { method GetField59 (line 186) | func (x *BenchmarkMessage) GetField59() bool { method GetField7 (line 193) | func (x *BenchmarkMessage) GetField7() string { method GetField16 (line 200) | func (x *BenchmarkMessage) GetField16() int32 { method GetField130 (line 207) | func (x *BenchmarkMessage) GetField130() int32 { method GetField12 (line 214) | func (x *BenchmarkMessage) GetField12() bool { method GetField17 (line 221) | func (x *BenchmarkMessage) GetField17() bool { method GetField13 (line 228) | func (x *BenchmarkMessage) GetField13() bool { method GetField14 (line 235) | func (x *BenchmarkMessage) GetField14() bool { method GetField104 (line 242) | func (x *BenchmarkMessage) GetField104() int32 { method GetField100 (line 249) | func (x *BenchmarkMessage) GetField100() int32 { method GetField101 (line 256) | func (x *BenchmarkMessage) GetField101() int32 { method GetField102 (line 263) | func (x *BenchmarkMessage) GetField102() string { method GetField103 (line 270) | func (x *BenchmarkMessage) GetField103() string { method GetField29 (line 277) | func (x *BenchmarkMessage) GetField29() int32 { method GetField30 (line 284) | func (x *BenchmarkMessage) GetField30() bool { method GetField60 (line 291) | func (x *BenchmarkMessage) GetField60() int32 { method GetField271 (line 298) | func (x *BenchmarkMessage) GetField271() int32 { method GetField272 (line 305) | func (x *BenchmarkMessage) GetField272() int32 { method GetField150 (line 312) | func (x *BenchmarkMessage) GetField150() int32 { method GetField23 (line 319) | func (x *BenchmarkMessage) GetField23() int32 { method GetField24 (line 326) | func (x *BenchmarkMessage) GetField24() bool { method GetField25 (line 333) | func (x *BenchmarkMessage) GetField25() int32 { method GetField78 (line 340) | func (x *BenchmarkMessage) GetField78() bool { method GetField67 (line 347) | func (x *BenchmarkMessage) GetField67() int32 { method GetField68 (line 354) | func (x *BenchmarkMessage) GetField68() int32 { method GetField128 (line 361) | func (x *BenchmarkMessage) GetField128() int32 { method GetField129 (line 368) | func (x *BenchmarkMessage) GetField129() string { method GetField131 (line 375) | func (x *BenchmarkMessage) GetField131() int32 { function file_benchmark_proto_rawDescGZIP (line 463) | func file_benchmark_proto_rawDescGZIP() []byte { function init (line 482) | func init() { file_benchmark_proto_init() } function file_benchmark_proto_init (line 483) | func file_benchmark_proto_init() { FILE: reflection/server_reflection.go type ServiceInfo (line 24) | type ServiceInfo struct method String (line 52) | func (si ServiceInfo) String() string { type MethodInfo (line 31) | type MethodInfo struct type Reflection (line 59) | type Reflection struct method Register (line 69) | func (r *Reflection) Register(name string, rcvr interface{}, metadata ... method Unregister (line 146) | func (r *Reflection) Unregister(name string) error { method GetService (line 151) | func (r *Reflection) GetService(ctx context.Context, s string, reply *... method GetServices (line 161) | func (r *Reflection) GetServices(ctx context.Context, s string, reply ... function New (line 63) | func New() *Reflection { function generateTypeDefination (line 182) | func generateTypeDefination(name, pkg string, jsonValue string) string { function generateJSON (line 207) | func generateJSON(typ reflect.Type) string { function isExported (line 214) | func isExported(name string) bool { function isExportedOrBuiltinType (line 219) | func isExportedOrBuiltinType(t reflect.Type) bool { FILE: reflection/server_reflection_test.go type PBArith (line 13) | type PBArith method Mul (line 15) | func (t *PBArith) Mul(ctx context.Context, args *testutils.ProtoArgs, ... function TestReflection_Register (line 20) | func TestReflection_Register(t *testing.T) { type Args (line 31) | type Args struct function Test_generateJSON (line 37) | func Test_generateJSON(t *testing.T) { FILE: server/context.go type Context (line 12) | type Context struct method Get (line 26) | func (ctx *Context) Get(key interface{}) interface{} { method SetValue (line 31) | func (ctx *Context) SetValue(key, val interface{}) { method DeleteKey (line 39) | func (ctx *Context) DeleteKey(key interface{}) { method Payload (line 47) | func (ctx *Context) Payload() []byte { method Metadata (line 52) | func (ctx *Context) Metadata() map[string]string { method ServicePath (line 57) | func (ctx *Context) ServicePath() string { method ServiceMethod (line 62) | func (ctx *Context) ServiceMethod() string { method Bind (line 67) | func (ctx *Context) Bind(v interface{}) error { method Write (line 83) | func (ctx *Context) Write(v interface{}) error { method WriteError (line 140) | func (ctx *Context) WriteError(err error) error { function NewContext (line 21) | func NewContext(ctx *share.Context, conn net.Conn, req *protocol.Message... FILE: server/converter.go constant XVersion (line 14) | XVersion = "X-RPCX-Version" constant XMessageType (line 15) | XMessageType = "X-RPCX-MessageType" constant XHeartbeat (line 16) | XHeartbeat = "X-RPCX-Heartbeat" constant XOneway (line 17) | XOneway = "X-RPCX-Oneway" constant XMessageStatusType (line 18) | XMessageStatusType = "X-RPCX-MessageStatusType" constant XSerializeType (line 19) | XSerializeType = "X-RPCX-SerializeType" constant XCompressType (line 20) | XCompressType = "X-RPCX-CompressType" constant XMessageID (line 21) | XMessageID = "X-RPCX-MessageID" constant XServicePath (line 22) | XServicePath = "X-RPCX-ServicePath" constant XServiceMethod (line 23) | XServiceMethod = "X-RPCX-ServiceMethod" constant XMeta (line 24) | XMeta = "X-RPCX-Meta" constant XErrorMessage (line 25) | XErrorMessage = "X-RPCX-ErrorMessage" function HTTPRequest2RpcxRequest (line 29) | func HTTPRequest2RpcxRequest(r *http.Request) (*protocol.Message, error) { FILE: server/converter_test.go function TestHTTPRequest2RpcxRequest (line 13) | func TestHTTPRequest2RpcxRequest(t *testing.T) { FILE: server/file_transfer.go type FileTransferHandler (line 17) | type FileTransferHandler type DownloadFileHandler (line 20) | type DownloadFileHandler type tokenInfo (line 22) | type tokenInfo struct type downloadTokenInfo (line 27) | type downloadTokenInfo struct type FileTransfer (line 35) | type FileTransfer struct method Start (line 123) | func (s *FileTransfer) Start() error { method start (line 131) | func (s *FileTransfer) start() error { method Stop (line 210) | func (s *FileTransfer) Stop() error { type FileTransferService (line 49) | type FileTransferService struct method TransferFile (line 80) | func (s *FileTransferService) TransferFile(ctx context.Context, args *... method DownloadFile (line 101) | func (s *FileTransferService) DownloadFile(ctx context.Context, args *... function NewFileTransfer (line 54) | func NewFileTransfer(addr string, handler FileTransferHandler, downloadF... method EnableFileTransfer (line 72) | func (s *Server) EnableFileTransfer(serviceName string, fileTransfer *Fi... FILE: server/gateway.go method startGateway (line 23) | func (s *Server) startGateway(network string, ln net.Listener) net.Liste... function http1Path (line 53) | func http1Path(prefix string) cmux.Matcher { function parseRequestLine (line 82) | func parseRequestLine(line string) (method, uri, proto string, ok bool) { function http1HeaderExist (line 92) | func http1HeaderExist(name string) cmux.Matcher { function matchHTTP1Field (line 105) | func matchHTTP1Field(r io.Reader, name string, matches func(string) bool... function rpcxPrefixByteMatcher (line 114) | func rpcxPrefixByteMatcher() cmux.Matcher { method startHTTP1APIGateway (line 123) | func (s *Server) startHTTP1APIGateway(ln net.Listener) { method closeHTTP1APIGateway (line 151) | func (s *Server) closeHTTP1APIGateway(ctx context.Context) error { method handleGatewayRequest (line 161) | func (s *Server) handleGatewayRequest(w http.ResponseWriter, r *http.Req... FILE: server/jsonrpc2.go method jsonrpcHandler (line 20) | func (s *Server) jsonrpcHandler(w http.ResponseWriter, r *http.Request) { method handleJSONRPCRequest (line 54) | func (s *Server) handleJSONRPCRequest(ctx context.Context, r *jsonrpcReq... function writeResponse (line 140) | func writeResponse(w http.ResponseWriter, res *jsonrpcRespone) { function AllowAllCORSOptions (line 154) | func AllowAllCORSOptions() *CORSOptions { method SetCORS (line 178) | func (s *Server) SetCORS(options *CORSOptions) { method startJSONRPC2 (line 182) | func (s *Server) startJSONRPC2(ln net.Listener) { method closeJSONRPC2 (line 208) | func (s *Server) closeJSONRPC2(ctx context.Context) error { FILE: server/jsonrpc2_wire.go constant CodeUnknownJSONRPCError (line 18) | CodeUnknownJSONRPCError = -32001 constant CodeParseJSONRPCError (line 20) | CodeParseJSONRPCError = -32700 constant CodeInvalidjsonrpcRequest (line 22) | CodeInvalidjsonrpcRequest = -32600 constant CodeMethodNotFound (line 25) | CodeMethodNotFound = -32601 constant CodeInvalidParams (line 28) | CodeInvalidParams = -32602 constant CodeInternalJSONRPCError (line 30) | CodeInternalJSONRPCError = -32603 type jsonrpcRequest (line 34) | type jsonrpcRequest struct method IsNotify (line 87) | func (r *jsonrpcRequest) IsNotify() bool { type jsonrpcRespone (line 51) | type jsonrpcRespone struct type JSONRPCError (line 63) | type JSONRPCError struct method JSONRPCError (line 91) | func (err *JSONRPCError) JSONRPCError() string { type VersionTag (line 76) | type VersionTag struct method MarshalJSON (line 98) | func (VersionTag) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 102) | func (VersionTag) UnmarshalJSON(data []byte) error { type ID (line 81) | type ID struct method String (line 116) | func (id *ID) String() string { method MarshalJSON (line 126) | func (id *ID) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 133) | func (id *ID) UnmarshalJSON(data []byte) error { FILE: server/kcp.go function init (line 12) | func init() { function kcpMakeListener (line 16) | func kcpMakeListener(s *Server, address string) (ln net.Listener, err er... function WithBlockCrypt (line 25) | func WithBlockCrypt(bc kcp.BlockCrypt) OptionFn { FILE: server/listener.go function init (line 12) | func init() { function RegisterMakeListener (line 22) | func RegisterMakeListener(network string, ml MakeListener) { type MakeListener (line 27) | type MakeListener method makeListener (line 31) | func (s *Server) makeListener(network, address string) (ln net.Listener,... function tcpMakeListener (line 44) | func tcpMakeListener(network string) MakeListener { FILE: server/listener_linux.go function init (line 17) | func init() { function iouringMakeListener (line 24) | func iouringMakeListener(s *Server, address string) (ln net.Listener, er... type uringnetListener (line 48) | type uringnetListener struct method Close (line 53) | func (cl *uringnetListener) Close() error { type uringLogger (line 60) | type uringLogger struct method Log (line 64) | func (l *uringLogger) Log(keyvals ...interface{}) { FILE: server/listener_rdma.go function init (line 14) | func init() { function rdmaMakeListener (line 18) | func rdmaMakeListener(s *Server, address string) (ln net.Listener, err e... FILE: server/listener_unix.go function init (line 12) | func init() { function reuseportMakeListener (line 17) | func reuseportMakeListener(s *Server, address string) (ln net.Listener, ... function unixMakeListener (line 28) | func unixMakeListener(s *Server, address string) (ln net.Listener, err e... FILE: server/memconn.go function init (line 9) | func init() { function memconnMakeListener (line 13) | func memconnMakeListener(s *Server, address string) (ln net.Listener, er... FILE: server/option.go type OptionFn (line 11) | type OptionFn function WithTLSConfig (line 23) | func WithTLSConfig(cfg *tls.Config) OptionFn { function WithReadTimeout (line 30) | func WithReadTimeout(readTimeout time.Duration) OptionFn { function WithWriteTimeout (line 37) | func WithWriteTimeout(writeTimeout time.Duration) OptionFn { function WithPool (line 44) | func WithPool(maxWorkers, maxCapacity int, options ...pond.Option) Optio... function WithCustomPool (line 51) | func WithCustomPool(pool WorkerPool) OptionFn { function WithAsyncWrite (line 58) | func WithAsyncWrite() OptionFn { FILE: server/option_test.go function TestOption (line 11) | func TestOption(t *testing.T) { FILE: server/options.go function WithTCPKeepAlivePeriod (line 6) | func WithTCPKeepAlivePeriod(period time.Duration) OptionFn { FILE: server/plugin.go type PluginContainer (line 16) | type PluginContainer interface type Plugin (line 48) | type Plugin interface type RegisterPlugin (line 52) | type RegisterPlugin interface type RegisterFunctionPlugin (line 58) | type RegisterFunctionPlugin interface type PostConnAcceptPlugin (line 65) | type PostConnAcceptPlugin interface type PostConnClosePlugin (line 70) | type PostConnClosePlugin interface type PreReadRequestPlugin (line 75) | type PreReadRequestPlugin interface type PostReadRequestPlugin (line 80) | type PostReadRequestPlugin interface type PostHTTPRequestPlugin (line 85) | type PostHTTPRequestPlugin interface type PreHandleRequestPlugin (line 90) | type PreHandleRequestPlugin interface type PreCallPlugin (line 94) | type PreCallPlugin interface type PostCallPlugin (line 98) | type PostCallPlugin interface type PreWriteResponsePlugin (line 103) | type PreWriteResponsePlugin interface type PostWriteResponsePlugin (line 108) | type PostWriteResponsePlugin interface type PreWriteRequestPlugin (line 113) | type PreWriteRequestPlugin interface type PostWriteRequestPlugin (line 118) | type PostWriteRequestPlugin interface type HeartbeatPlugin (line 123) | type HeartbeatPlugin interface type CMuxPlugin (line 127) | type CMuxPlugin interface type pluginContainer (line 133) | type pluginContainer struct method Add (line 138) | func (p *pluginContainer) Add(plugin Plugin) { method Remove (line 143) | func (p *pluginContainer) Remove(plugin Plugin) { method All (line 158) | func (p *pluginContainer) All() []Plugin { method DoRegister (line 163) | func (p *pluginContainer) DoRegister(name string, rcvr interface{}, me... method DoRegisterFunction (line 181) | func (p *pluginContainer) DoRegisterFunction(serviceName, fname string... method DoUnregister (line 199) | func (p *pluginContainer) DoUnregister(name string) error { method DoPostConnAccept (line 217) | func (p *pluginContainer) DoPostConnAccept(conn net.Conn) (net.Conn, b... method DoPostConnClose (line 232) | func (p *pluginContainer) DoPostConnClose(conn net.Conn) bool { method DoPreReadRequest (line 246) | func (p *pluginContainer) DoPreReadRequest(ctx context.Context) error { method DoPostReadRequest (line 260) | func (p *pluginContainer) DoPostReadRequest(ctx context.Context, r *pr... method DoPostHTTPRequest (line 274) | func (p *pluginContainer) DoPostHTTPRequest(ctx context.Context, r *ht... method DoPreHandleRequest (line 288) | func (p *pluginContainer) DoPreHandleRequest(ctx context.Context, r *p... method DoPreCall (line 302) | func (p *pluginContainer) DoPreCall(ctx context.Context, serviceName, ... method DoPostCall (line 317) | func (p *pluginContainer) DoPostCall(ctx context.Context, serviceName,... method DoPreWriteResponse (line 332) | func (p *pluginContainer) DoPreWriteResponse(ctx context.Context, req ... method DoPostWriteResponse (line 346) | func (p *pluginContainer) DoPostWriteResponse(ctx context.Context, req... method DoPreWriteRequest (line 360) | func (p *pluginContainer) DoPreWriteRequest(ctx context.Context) error { method DoPostWriteRequest (line 374) | func (p *pluginContainer) DoPostWriteRequest(ctx context.Context, r *p... method DoHeartbeatRequest (line 388) | func (p *pluginContainer) DoHeartbeatRequest(ctx context.Context, r *p... method MuxMatch (line 402) | func (p *pluginContainer) MuxMatch(m cmux.CMux) { FILE: server/plugin_test.go type HeartbeatHandler (line 14) | type HeartbeatHandler struct method HeartbeatRequest (line 16) | func (h *HeartbeatHandler) HeartbeatRequest(ctx context.Context, req *... function TestPluginHeartbeat (line 23) | func TestPluginHeartbeat(t *testing.T) { FILE: server/pool.go type Reset (line 9) | type Reset interface type typePools (line 28) | type typePools struct method Init (line 34) | func (p *typePools) Init(t reflect.Type) { method Put (line 44) | func (p *typePools) Put(t reflect.Type, x interface{}) { method Get (line 55) | func (p *typePools) Get(t reflect.Type) interface{} { FILE: server/pool_test.go type Elem (line 10) | type Elem struct method Reset (line 15) | func (e Elem) Reset() { function TestPool (line 19) | func TestPool(t *testing.T) { FILE: server/quic.go function init (line 13) | func init() { function quicMakeListener (line 17) | func quicMakeListener(s *Server, address string) (ln net.Listener, err e... FILE: server/router.go method UpdateHandler (line 5) | func (s *Server) UpdateHandler(router map[string]Handler) { FILE: server/server.go constant ReaderBuffsize (line 38) | ReaderBuffsize = 1024 constant WriterBuffsize (line 40) | WriterBuffsize = 1024 type contextKey (line 48) | type contextKey struct method String (line 52) | func (k *contextKey) String() string { return "rpcx context value " + ... type Handler (line 69) | type Handler type WorkerPool (line 71) | type WorkerPool interface type Server (line 79) | type Server struct method Address (line 158) | func (s *Server) Address() net.Addr { method AddHandler (line 167) | func (s *Server) AddHandler(servicePath, serviceMethod string, handler... method ActiveClientConn (line 172) | func (s *Server) ActiveClientConn() []net.Conn { method SendMessage (line 189) | func (s *Server) SendMessage(conn net.Conn, servicePath, serviceMethod... method getDoneChan (line 214) | func (s *Server) getDoneChan() <-chan struct{} { method Serve (line 220) | func (s *Server) Serve(network, address string) (err error) { method ServeListener (line 247) | func (s *Server) ServeListener(network string, ln net.Listener) (err e... method serveListener (line 264) | func (s *Server) serveListener(ln net.Listener) error { method serveByHTTP (line 332) | func (s *Server) serveByHTTP(ln net.Listener, rpcPath string) { method serveByWS (line 345) | func (s *Server) serveByWS(ln net.Listener, rpcPath string) { method sendResponse (line 358) | func (s *Server) sendResponse(ctx *share.Context, conn net.Conn, err e... method serveConn (line 394) | func (s *Server) serveConn(conn net.Conn) { method processOneRequest (line 525) | func (s *Server) processOneRequest(ctx *share.Context, req *protocol.M... method isShutdown (line 644) | func (s *Server) isShutdown() bool { method closeConn (line 648) | func (s *Server) closeConn(conn net.Conn) { method readRequest (line 658) | func (s *Server) readRequest(ctx context.Context, r io.Reader) (req *p... method auth (line 676) | func (s *Server) auth(ctx context.Context, req *protocol.Message) error { method handleRequest (line 685) | func (s *Server) handleRequest(ctx context.Context, req *protocol.Mess... method handleRequestForFunction (line 783) | func (s *Server) handleRequestForFunction(ctx context.Context, req *pr... method handleError (line 855) | func (s *Server) handleError(res *protocol.Message, err error) (*proto... method ServeHTTP (line 874) | func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request) { method ServeWS (line 895) | func (s *Server) ServeWS(conn *websocket.Conn) { method Close (line 905) | func (s *Server) Close() error { method RegisterOnShutdown (line 929) | func (s *Server) RegisterOnShutdown(f func(s *Server)) { method RegisterOnRestart (line 936) | func (s *Server) RegisterOnRestart(f func(s *Server)) { method Shutdown (line 951) | func (s *Server) Shutdown(ctx context.Context) error { method Restart (line 1024) | func (s *Server) Restart(ctx context.Context) error { method startProcess (line 1036) | func (s *Server) startProcess() (int, error) { method checkProcessMsg (line 1059) | func (s *Server) checkProcessMsg() bool { method closeDoneChanLocked (line 1065) | func (s *Server) closeDoneChanLocked() { function NewServer (line 134) | func NewServer(options ...OptionFn) *Server { function parseServerTimeout (line 624) | func parseServerTimeout(ctx *share.Context, req *protocol.Message) conte... function validIP4 (line 1078) | func validIP4(ipAddress string) bool { function validIP6 (line 1086) | func validIP6(ipAddress string) bool { FILE: server/server_test.go type Args (line 18) | type Args struct type Reply (line 23) | type Reply struct type Arith (line 27) | type Arith method Mul (line 29) | func (t *Arith) Mul(ctx context.Context, args *Args, reply *Reply) err... method ThriftMul (line 34) | func (t *Arith) ThriftMul(ctx context.Context, args *testutils.ThriftA... method ConsumingOperation (line 39) | func (t *Arith) ConsumingOperation(ctx context.Context, args *testutil... function TestShutdownHook (line 45) | func TestShutdownHook(t *testing.T) { function TestHandleRequest (line 66) | func TestHandleRequest(t *testing.T) { function TestHandler (line 122) | func TestHandler(t *testing.T) { function Test_validIP6 (line 182) | func Test_validIP6(t *testing.T) { FILE: server/service.go type RpcServiceInternalError (line 19) | type RpcServiceInternalError struct method Error (line 27) | func (e RpcServiceInternalError) Error() string { method String (line 32) | func (e RpcServiceInternalError) String() string { type methodType (line 43) | type methodType struct type functionType (line 51) | type functionType struct type service (line 58) | type service struct method call (line 371) | func (s *service) call(ctx context.Context, mtype *methodType, argv, r... method callForFunction (line 400) | func (s *service) callForFunction(ctx context.Context, ft *functionTyp... function isExported (line 66) | func isExported(name string) bool { function isExportedOrBuiltinType (line 71) | func isExportedOrBuiltinType(t reflect.Type) bool { method ListServices (line 80) | func (s *Server) ListServices() []string { method Register (line 101) | func (s *Server) Register(rcvr interface{}, metadata string) error { method RegisterName (line 111) | func (s *Server) RegisterName(name string, rcvr interface{}, metadata st... method RegisterFunction (line 128) | func (s *Server) RegisterFunction(servicePath string, fn interface{}, me... method RegisterFunctionName (line 139) | func (s *Server) RegisterFunctionName(servicePath string, name string, f... method register (line 148) | func (s *Server) register(rcvr interface{}, name string, useName bool) (... method registerFunction (line 191) | func (s *Server) registerFunction(servicePath string, fn interface{}, na... function suitableMethods (line 271) | func suitableMethods(typ reflect.Type, reportErr bool) map[string]*metho... method UnregisterAll (line 345) | func (s *Server) UnregisterAll() error { method unregisterAll (line 354) | func (s *Server) unregisterAll() error { FILE: server/service_test.go function Test_isExported (line 11) | func Test_isExported(t *testing.T) { function Mul (line 27) | func Mul(ctx context.Context, args *Args, reply *Reply) error { function Test_isExportedOrBuiltinType (line 32) | func Test_isExportedOrBuiltinType(t *testing.T) { FILE: server/stream.go type StreamHandler (line 20) | type StreamHandler type StreamAcceptor (line 24) | type StreamAcceptor type streamTokenInfo (line 26) | type streamTokenInfo struct type StreamService (line 34) | type StreamService struct method Stream (line 70) | func (s *StreamService) Stream(ctx context.Context, args *share.Stream... method Start (line 95) | func (s *StreamService) Start() error { method start (line 103) | func (s *StreamService) start() error { method Stop (line 176) | func (s *StreamService) Stop() error { function NewStreamService (line 48) | func NewStreamService(addr string, streamHandler StreamHandler, acceptor... method EnableStreamService (line 62) | func (s *Server) EnableStreamService(serviceName string, streamService *... FILE: serverplugin/alias.go type aliasPair (line 11) | type aliasPair struct type AliasPlugin (line 16) | type AliasPlugin struct method Alias (line 23) | func (p *AliasPlugin) Alias(aliasServicePath, aliasServiceMethod strin... method PostReadRequest (line 43) | func (p *AliasPlugin) PostReadRequest(ctx context.Context, r *protocol... method PreWriteResponse (line 62) | func (p *AliasPlugin) PreWriteResponse(ctx context.Context, r *protoco... function NewAliasPlugin (line 35) | func NewAliasPlugin() *AliasPlugin { FILE: serverplugin/blacklist.go type BlacklistPlugin (line 6) | type BlacklistPlugin struct method HandleConnAccept (line 12) | func (plugin *BlacklistPlugin) HandleConnAccept(conn net.Conn) (net.Co... FILE: serverplugin/mdns.go type serviceMeta (line 19) | type serviceMeta struct type MDNSRegisterPlugin (line 26) | type MDNSRegisterPlugin struct method Start (line 60) | func (p *MDNSRegisterPlugin) Start() error { method Stop (line 110) | func (p *MDNSRegisterPlugin) Stop() error { method initMDNS (line 118) | func (p *MDNSRegisterPlugin) initMDNS() { method HandleConnAccept (line 145) | func (p *MDNSRegisterPlugin) HandleConnAccept(conn net.Conn) (net.Conn... method PreCall (line 153) | func (p *MDNSRegisterPlugin) PreCall(_ context.Context, _, _ string, a... method Register (line 162) | func (p *MDNSRegisterPlugin) Register(name string, rcvr interface{}, m... method RegisterFunction (line 187) | func (p *MDNSRegisterPlugin) RegisterFunction(serviceName, fname strin... method Unregister (line 191) | func (p *MDNSRegisterPlugin) Unregister(name string) (err error) { function NewMDNSRegisterPlugin (line 44) | func NewMDNSRegisterPlugin(serviceAddress string, port int, m metrics.Re... FILE: serverplugin/metrics.go type MetricsPlugin (line 19) | type MetricsPlugin struct method withPrefix (line 29) | func (p *MetricsPlugin) withPrefix(m string) string { method Register (line 34) | func (p *MetricsPlugin) Register(name string, rcvr interface{}, metada... method HandleConnAccept (line 41) | func (p *MetricsPlugin) HandleConnAccept(conn net.Conn) (net.Conn, boo... method PreReadRequest (line 48) | func (p *MetricsPlugin) PreReadRequest(ctx context.Context) error { method PostReadRequest (line 53) | func (p *MetricsPlugin) PostReadRequest(ctx context.Context, r *protoc... method PostWriteResponse (line 66) | func (p *MetricsPlugin) PostWriteResponse(ctx context.Context, req *pr... method Log (line 94) | func (p *MetricsPlugin) Log(freq time.Duration, l metrics.Logger) { method Graphite (line 102) | func (p *MetricsPlugin) Graphite(freq time.Duration, prefix string, ad... method Exp (line 125) | func (p *MetricsPlugin) Exp() { function NewMetricsPlugin (line 25) | func NewMetricsPlugin(registry metrics.Registry) *MetricsPlugin { FILE: serverplugin/rate_limiting.go type RateLimitingPlugin (line 11) | type RateLimitingPlugin struct method HandleConnAccept (line 28) | func (plugin *RateLimitingPlugin) HandleConnAccept(conn net.Conn) (net... function NewRateLimitingPlugin (line 18) | func NewRateLimitingPlugin(fillInterval time.Duration, capacity int64) *... FILE: serverplugin/redis.go function init (line 20) | func init() { type RedisRegisterPlugin (line 25) | type RedisRegisterPlugin struct method Start (line 47) | func (p *RedisRegisterPlugin) Start() error { method Stop (line 124) | func (p *RedisRegisterPlugin) Stop() error { method HandleConnAccept (line 154) | func (p *RedisRegisterPlugin) HandleConnAccept(conn net.Conn) (net.Con... method PreCall (line 162) | func (p *RedisRegisterPlugin) PreCall(_ context.Context, _, _ string, ... method Register (line 171) | func (p *RedisRegisterPlugin) Register(name string, rcvr interface{}, ... method Unregister (line 218) | func (p *RedisRegisterPlugin) Unregister(name string) (err error) { FILE: serverplugin/registry_test.go type Args (line 5) | type Args struct type Reply (line 10) | type Reply struct type Arith (line 14) | type Arith method Mul (line 16) | func (t *Arith) Mul(ctx context.Context, args *Args, reply *Reply) err... FILE: serverplugin/req_rate_limiting.go type ReqRateLimitingPlugin (line 13) | type ReqRateLimitingPlugin struct method PostReadRequest (line 33) | func (plugin *ReqRateLimitingPlugin) PostReadRequest(ctx context.Conte... function NewReqRateLimitingPlugin (line 21) | func NewReqRateLimitingPlugin(fillInterval time.Duration, capacity int64... FILE: serverplugin/req_rate_limiting_redis.go type RedisRateLimitingPlugin (line 16) | type RedisRateLimitingPlugin struct method PostReadRequest (line 43) | func (plugin *RedisRateLimitingPlugin) PostReadRequest(ctx context.Con... function NewRedisRateLimitingPlugin (line 23) | func NewRedisRateLimitingPlugin(addrs []string, rate int, burst int, per... FILE: serverplugin/tee.go type TeeConnPlugin (line 9) | type TeeConnPlugin struct method Update (line 19) | func (plugin *TeeConnPlugin) Update(w io.Writer) { method HandleConnAccept (line 24) | func (plugin *TeeConnPlugin) HandleConnAccept(conn net.Conn) (net.Conn... function NewTeeConnPlugin (line 13) | func NewTeeConnPlugin(w io.Writer) *TeeConnPlugin { type teeConn (line 29) | type teeConn struct method Read (line 34) | func (t *teeConn) Read(p []byte) (n int, err error) { FILE: serverplugin/whitelist.go type WhitelistPlugin (line 6) | type WhitelistPlugin struct method HandleConnAccept (line 12) | func (plugin *WhitelistPlugin) HandleConnAccept(conn net.Conn) (net.Co... FILE: share/context.go type Context (line 13) | type Context struct method Lock (line 29) | func (c *Context) Lock() { method Unlock (line 33) | func (c *Context) Unlock() { method Value (line 37) | func (c *Context) Value(key interface{}) interface{} { method SetValue (line 50) | func (c *Context) SetValue(key, val interface{}) { method DeleteKey (line 61) | func (c *Context) DeleteKey(key interface{}) { method String (line 71) | func (c *Context) String() string { function NewContext (line 19) | func NewContext(ctx context.Context) *Context { function WithValue (line 75) | func WithValue(parent context.Context, key, val interface{}) *Context { function WithLocalValue (line 88) | func WithLocalValue(ctx *Context, key, val interface{}) *Context { function IsShareContext (line 105) | func IsShareContext(ctx context.Context) bool { FILE: share/context_test.go function TestContext (line 15) | func TestContext(t *testing.T) { function TestWithValue (line 29) | func TestWithValue(t *testing.T) { function TestWithLocalValue (line 34) | func TestWithLocalValue(t *testing.T) { FILE: share/share.go constant DefaultRPCPath (line 10) | DefaultRPCPath = "/_rpcx_" constant AuthKey (line 13) | AuthKey = "__AUTH" constant ServerAddress (line 16) | ServerAddress = "__ServerAddress" constant ServerTimeout (line 19) | ServerTimeout = "__ServerTimeout" constant SendFileServiceName (line 22) | SendFileServiceName = "_filetransfer" constant StreamServiceName (line 25) | StreamServiceName = "_streamservice" constant ContextTagsLock (line 28) | ContextTagsLock = "_tagsLock" constant isShareContext (line 30) | isShareContext = "_isShareContext" function RegisterCodec (line 48) | func RegisterCodec(t protocol.SerializeType, c codec.Codec) { type ContextKey (line 53) | type ContextKey type FileTransferArgs (line 62) | type FileTransferArgs struct method Clone (line 69) | func (args FileTransferArgs) Clone() *FileTransferArgs { type FileTransferReply (line 83) | type FileTransferReply struct type DownloadFileArgs (line 89) | type DownloadFileArgs struct method Clone (line 95) | func (args DownloadFileArgs) Clone() *DownloadFileArgs { type StreamServiceArgs (line 108) | type StreamServiceArgs struct type StreamServiceReply (line 113) | type StreamServiceReply struct FILE: share/share_test.go type MockCodec (line 10) | type MockCodec struct method Encode (line 12) | func (codec MockCodec) Encode(i interface{}) ([]byte, error) { method Decode (line 16) | func (codec MockCodec) Decode(data []byte, i interface{}) error { function TestShare (line 20) | func TestShare(t *testing.T) { FILE: tool/xgen/parser/parser.go type Parser (line 14) | type Parser struct method Parse (line 80) | func (p *Parser) Parse(fname string, isDir bool) error { type visitor (line 21) | type visitor struct method Visit (line 33) | func (v *visitor) Visit(n ast.Node) (w ast.Visitor) { function isExported (line 28) | func isExported(name string) bool { FILE: tool/xgen/xgen.go function main (line 22) | func main() { function generate (line 77) | func generate(parsers []*parser.Parser) error { FILE: util/buffer_pool.go type levelPool (line 8) | type levelPool struct function newLevelPool (line 13) | func newLevelPool(size int) *levelPool { type LimitedPool (line 25) | type LimitedPool struct method findPool (line 50) | func (p *LimitedPool) findPool(size int) *levelPool { method findPutPool (line 64) | func (p *LimitedPool) findPutPool(size int) *levelPool { method Get (line 82) | func (p *LimitedPool) Get(size int) *[]byte { method Put (line 93) | func (p *LimitedPool) Put(b *[]byte) { function NewLimitedPool (line 31) | func NewLimitedPool(minSize, maxSize int) *LimitedPool { FILE: util/buffer_pool_test.go function TestLimitedPool_findPool (line 8) | func TestLimitedPool_findPool(t *testing.T) { function TestLimitedPool_findPutPool (line 41) | func TestLimitedPool_findPutPool(t *testing.T) { FILE: util/compress.go function init (line 16) | func init() { function Unzip (line 29) | func Unzip(data []byte) ([]byte, error) { function Zip (line 50) | func Zip(data []byte) ([]byte, error) { FILE: util/compress_test.go function TestZip (line 10) | func TestZip(t *testing.T) { function BenchmarkZip (line 28) | func BenchmarkZip(b *testing.B) { function BenchmarkUnzip (line 41) | func BenchmarkUnzip(b *testing.B) { function oldUnzip (line 59) | func oldUnzip(data []byte) ([]byte, error) { function BenchmarkUnzip_Old (line 88) | func BenchmarkUnzip_Old(b *testing.B) { FILE: util/converter.go function SliceByteToString (line 7) | func SliceByteToString(b []byte) string { function StringToSliceByte (line 11) | func StringToSliceByte(s string) []byte { function CopyMeta (line 17) | func CopyMeta(src, dst map[string]string) { FILE: util/net.go function GetFreePort (line 14) | func GetFreePort() (port int, err error) { function ParseRpcxAddress (line 25) | func ParseRpcxAddress(addr string) (network string, ip string, port int,... function ConvertMeta2Map (line 44) | func ConvertMeta2Map(meta string) map[string]string { function ConvertMap2String (line 62) | func ConvertMap2String(meta map[string]string) string { function ExternalIPV4 (line 83) | func ExternalIPV4() (string, error) { function ExternalIPV6 (line 121) | func ExternalIPV6() (string, error) { FILE: util/net_test.go function TestGetFreePort (line 9) | func TestGetFreePort(t *testing.T) { function BenchmarkGetFreePort_Old (line 38) | func BenchmarkGetFreePort_Old(b *testing.B) { function BenchmarkGetFreePort_New (line 44) | func BenchmarkGetFreePort_New(b *testing.B) { function TestExternalIPV4 (line 50) | func TestExternalIPV4(t *testing.T) { function TestExternalIPV6 (line 62) | func TestExternalIPV6(t *testing.T) {