Documentation
¶
Index ¶
- Variables
- type ExtraInfo
- type RequestLabel
- func (*RequestLabel) Descriptor() ([]byte, []int)
- func (m *RequestLabel) GetLabels() map[string]string
- func (m *RequestLabel) Marshal() (dAtA []byte, err error)
- func (m *RequestLabel) MarshalTo(dAtA []byte) (int, error)
- func (m *RequestLabel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RequestLabel) ProtoMessage()
- func (m *RequestLabel) Reset()
- func (m *RequestLabel) Size() (n int)
- func (m *RequestLabel) String() string
- func (m *RequestLabel) Unmarshal(dAtA []byte) error
- func (m *RequestLabel) XXX_DiscardUnknown()
- func (m *RequestLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestLabel) XXX_Merge(src proto.Message)
- func (m *RequestLabel) XXX_Size() int
- func (m *RequestLabel) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ExtraInfo ¶ added in v1.0.0
type ExtraInfo struct {
// Salt is the bytes in MySQL protocol which is 20 length.
Salt []byte
// InternalConn indicates whether the connection is from internal
// network or external network. false means that it is external, otherwise,
// it is internal.
InternalConn bool
// Label is the requested label from client.
Label RequestLabel
}
ExtraInfo is the information that proxy send to CN when build connection in handshake phase.
type RequestLabel ¶
type RequestLabel struct {
Labels map[string]string `` /* 153-byte string literal not displayed */
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*RequestLabel) Descriptor ¶
func (*RequestLabel) Descriptor() ([]byte, []int)
func (*RequestLabel) GetLabels ¶
func (m *RequestLabel) GetLabels() map[string]string
func (*RequestLabel) Marshal ¶
func (m *RequestLabel) Marshal() (dAtA []byte, err error)
func (*RequestLabel) MarshalToSizedBuffer ¶
func (m *RequestLabel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RequestLabel) ProtoMessage ¶
func (*RequestLabel) ProtoMessage()
func (*RequestLabel) Reset ¶
func (m *RequestLabel) Reset()
func (*RequestLabel) Size ¶
func (m *RequestLabel) Size() (n int)
func (*RequestLabel) String ¶
func (m *RequestLabel) String() string
func (*RequestLabel) Unmarshal ¶
func (m *RequestLabel) Unmarshal(dAtA []byte) error
func (*RequestLabel) XXX_DiscardUnknown ¶
func (m *RequestLabel) XXX_DiscardUnknown()
func (*RequestLabel) XXX_Marshal ¶
func (m *RequestLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestLabel) XXX_Merge ¶
func (m *RequestLabel) XXX_Merge(src proto.Message)
func (*RequestLabel) XXX_Size ¶
func (m *RequestLabel) XXX_Size() int
func (*RequestLabel) XXX_Unmarshal ¶
func (m *RequestLabel) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.