_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c17500
// Equals generates a string comparing rhs to the given lhs. // Equals generates an expression of type bool.
c17501
// EqualsPtr is the same as Equals except `lhs` and `rhs` are expected to be a // reference to a value of the given type.
c17502
// NewClient builds a new client which sends requests over the given // transport, encoding them using the given protocol.
c17503
// Send sends the given request envelope over this transport.
c17504
// Constant generates code for `const` expressions in Thrift files.
c17505
// ConstantValue generates an expression containing the given constant value of // the given type. // // The constant must already have been linked to the given type.
c17506
// verifyUniqueEnumItemLabels verifies that the labels for the enum items in // the given enum don't conflict.
c17507
// enumUniqueItems returns a subset of the given list of enum items where // there are no value collisions between items.
c17508
// claim requests the given name in the namespace. If the name is already // claimed, an error will be returned.
c17509
// compileConstant builds a Constant from the given AST constant.
c17510
// Link resolves any references made by the constant.
c17511
// isAllCaps checks if a string contains all capital letters only. Non-letters // are not considered.
c17512
// pascalCase combines the given words using PascalCase. // // If allowAllCaps is true, when an all-caps word that is not a known // abbreviation is encountered, it is left unchanged. Otherwise, it is // Titlecased.
c17513
// goCase converts strings into PascalCase.
c17514
// NewServer builds a new server which reads requests from the given Reader // and writes responses to the given Writer.
c17515
// Serve serves the given Handler with the Server. // // Only one request is served at a time. The server stops handling requests if // there is an IO error or an unhandled error is received from the Handler. // // This blocks until the server is stopped using Stop.
c17516
// Stop tells the Server that it's okay to stop Serve. // // This is a no-op if the server wasn't already running.
c17517
// embedIDL generate Go code with a full copy of the IDL embeded.
c17518
// String returns a readable string representation of a Argument // struct.
c17519
// Equals returns true if all the fields of this Argument match the // provided Argument. // // This function performs a deep comparison.
c17520
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Argument.
c17521
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Feature. // Enums are logged as objects, where the value is logged with key "value", and // if this value's name is known, the name is logged with key "name".
c17522
// String returns a readable string representation of Feature.
c17523
// MarshalJSON serializes Feature into JSON. // // If the enum value is recognized, its name is returned. Otherwise, // its integer value is returned. // // This implements json.Marshaler.
c17524
// String returns a readable string representation of a Function // struct.
c17525
// Equals returns true if all the fields of this Function match the // provided Function. // // This function performs a deep comparison.
c17526
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Function.
c17527
// GetArguments returns the value of Arguments if it is set or its // zero value if it is unset.
c17528
// GetReturnType returns the value of ReturnType if it is set or its // zero value if it is unset.
c17529
// GetExceptions returns the value of Exceptions if it is set or its // zero value if it is unset.
c17530
// GetOneWay returns the value of OneWay if it is set or its // zero value if it is unset.
c17531
// String returns a readable string representation of a GenerateServiceRequest // struct.
c17532
// Equals returns true if all the fields of this GenerateServiceRequest match the // provided GenerateServiceRequest. // // This function performs a deep comparison.
c17533
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _List_ServiceID_Zapper.
c17534
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _Map_ServiceID_Service_Zapper.
c17535
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _Map_ModuleID_Module_Item_Zapper.
c17536
// MarshalLogArray implements zapcore.ArrayMarshaler, enabling // fast logging of _Map_ModuleID_Module_Zapper.
c17537
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of GenerateServiceRequest.
c17538
// GetRootServices returns the value of RootServices if it is set or its // zero value if it is unset.
c17539
// GetServices returns the value of Services if it is set or its // zero value if it is unset.
c17540
// GetModules returns the value of Modules if it is set or its // zero value if it is unset.
c17541
// GetPackagePrefix returns the value of PackagePrefix if it is set or its // zero value if it is unset.
c17542
// GetThriftRoot returns the value of ThriftRoot if it is set or its // zero value if it is unset.
c17543
// String returns a readable string representation of a GenerateServiceResponse // struct.
c17544
// Equals returns true if all the fields of this GenerateServiceResponse match the // provided GenerateServiceResponse. // // This function performs a deep comparison.
c17545
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of _Map_String_Binary_Zapper.
c17546
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of GenerateServiceResponse.
c17547
// GetFiles returns the value of Files if it is set or its // zero value if it is unset.
c17548
// String returns a readable string representation of a HandshakeRequest // struct.
c17549
// Equals returns true if all the fields of this HandshakeRequest match the // provided HandshakeRequest. // // This function performs a deep comparison.
c17550
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of HandshakeRequest.
c17551
// String returns a readable string representation of a HandshakeResponse // struct.
c17552
// Equals returns true if all the fields of this HandshakeResponse match the // provided HandshakeResponse. // // This function performs a deep comparison.
c17553
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of HandshakeResponse.
c17554
// GetAPIVersion returns the value of APIVersion if it is set or its // zero value if it is unset.
c17555
// GetFeatures returns the value of Features if it is set or its // zero value if it is unset.
c17556
// GetLibraryVersion returns the value of LibraryVersion if it is set or its // zero value if it is unset.
c17557
// String returns a readable string representation of a Module // struct.
c17558
// Equals returns true if all the fields of this Module match the // provided Module. // // This function performs a deep comparison.
c17559
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Module.
c17560
// GetDirectory returns the value of Directory if it is set or its // zero value if it is unset.
c17561
// GetThriftFilePath returns the value of ThriftFilePath if it is set or its // zero value if it is unset.
c17562
// ToWire translates ModuleID into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation.
c17563
// String returns a readable string representation of ModuleID.
c17564
// Equals returns true if this ModuleID is equal to the provided // ModuleID.
c17565
// String returns a readable string representation of a Service // struct.
c17566
// Equals returns true if all the fields of this Service match the // provided Service. // // This function performs a deep comparison.
c17567
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Service.
c17568
// GetParentID returns the value of ParentID if it is set or its // zero value if it is unset.
c17569
// GetFunctions returns the value of Functions if it is set or its // zero value if it is unset.
c17570
// GetModuleID returns the value of ModuleID if it is set or its // zero value if it is unset.
c17571
// String returns a readable string representation of ServiceID.
c17572
// FromWire deserializes ServiceID from its Thrift-level // representation. The Thrift-level representation may be obtained // from a ThriftRW protocol implementation.
c17573
// Equals returns true if this ServiceID is equal to the provided // ServiceID.
c17574
// SimpleType_Values returns all recognized values of SimpleType.
c17575
// ToWire translates SimpleType into a Thrift-level intermediate // representation. This intermediate representation may be serialized // into bytes using a ThriftRW protocol implementation. // // Enums are represented as 32-bit integers over the wire.
c17576
// String returns a readable string representation of SimpleType.
c17577
// String returns a readable string representation of a Type // struct.
c17578
// Equals returns true if all the fields of this Type match the // provided Type. // // This function performs a deep comparison.
c17579
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of Type.
c17580
// GetSimpleType returns the value of SimpleType if it is set or its // zero value if it is unset.
c17581
// GetSliceType returns the value of SliceType if it is set or its // zero value if it is unset.
c17582
// GetKeyValueSliceType returns the value of KeyValueSliceType if it is set or its // zero value if it is unset.
c17583
// GetMapType returns the value of MapType if it is set or its // zero value if it is unset.
c17584
// GetReferenceType returns the value of ReferenceType if it is set or its // zero value if it is unset.
c17585
// GetPointerType returns the value of PointerType if it is set or its // zero value if it is unset.
c17586
// String returns a readable string representation of a TypePair // struct.
c17587
// Equals returns true if all the fields of this TypePair match the // provided TypePair. // // This function performs a deep comparison.
c17588
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of TypePair.
c17589
// GetLeft returns the value of Left if it is set or its // zero value if it is unset.
c17590
// GetRight returns the value of Right if it is set or its // zero value if it is unset.
c17591
// String returns a readable string representation of a TypeReference // struct.
c17592
// Equals returns true if all the fields of this TypeReference match the // provided TypeReference. // // This function performs a deep comparison.
c17593
// MarshalLogObject implements zapcore.ObjectMarshaler, enabling // fast logging of TypeReference.
c17594
// capitalize changes the first letter of a string to upper case.
c17595
// fileBaseName returns the base name of the given file without the extension.
c17596
// splitInclude splits the given string at the first ".". // // If the given string doesn't have a '.', the second returned string contains // the entirety of it.
c17597
// MapItemListToSlice builds a slice of values from the given MapItemList.
c17598
// NewClient builds a new Client which uses the given writer to send requests // and the given reader to read their responses.
c17599
// Send sends the given frame and returns its response.