Documentation ¶
Index ¶
- Constants
- func Concat(v ...interface{}) string
- func GetInstance(messageType string) (interface{}, error)
- func GetInstanceOf(v *anypb.Any) (proto.Message, error)
- func GetMessageType(message proto.Message) string
- func ReadUint16(reader io.Reader) (uint16, error)
- func ToString(v interface{}) string
- func ToTypedMessage(message proto.Message) *anypb.Any
- func V2Type(v *anypb.Any) string
- func V2TypeFromURL(string2 string) string
- func V2TypeHumanReadable(v *anypb.Any) string
- func V2URLFromV2Type(readableType string) string
- func WriteUint16(writer io.Writer, value uint16) (int, error)
- func WriteUint64(writer io.Writer, value uint64) (int, error)
- type AnyResolver
Constants ¶
View Source
const V2RayTypeURLHeader = "types.v2fly.org/"
Variables ¶
This section is empty.
Functions ¶
func Concat ¶
func Concat(v ...interface{}) string
Concat concatenates all input into a single string.
func GetInstance ¶
GetInstance creates a new instance of the message with messageType.
func GetMessageType ¶
GetMessageType returns the name of this proto Message.
func ReadUint16 ¶
ReadUint16 reads first two bytes from the reader, and then coverts them to an uint16 value.
func ToString ¶
func ToString(v interface{}) string
ToString serialize an arbitrary value into string.
func ToTypedMessage ¶
ToTypedMessage converts a proto Message into TypedMessage.
func V2TypeFromURL ¶
func V2TypeHumanReadable ¶
func V2URLFromV2Type ¶
func WriteUint16 ¶
WriteUint16 writes an uint16 value into writer.
Types ¶
type AnyResolver ¶
func GetResolver ¶
func GetResolver() AnyResolver
Click to show internal directories.
Click to hide internal directories.