Documentation
¶
Overview ¶
*
- Copyright 2022 chyroc *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
Index ¶
- Variables
- type Client
- type ClientOption
- type Frame
- func (*Frame) Descriptor() ([]byte, []int)
- func (m *Frame) GetHeaders() []Header
- func (m *Frame) GetLogID() uint64
- func (m *Frame) GetLogIDNew() string
- func (m *Frame) GetMethod() int32
- func (m *Frame) GetPayload() []byte
- func (m *Frame) GetPayloadEncoding() string
- func (m *Frame) GetPayloadType() string
- func (m *Frame) GetSeqID() uint64
- func (m *Frame) GetService() int32
- func (m *Frame) Marshal() (dAtA []byte, err error)
- func (m *Frame) MarshalTo(dAtA []byte) (int, error)
- func (m *Frame) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Frame) ProtoMessage()
- func (m *Frame) Reset()
- func (m *Frame) Size() (n int)
- func (m *Frame) String() string
- func (m *Frame) Unmarshal(dAtA []byte) error
- func (m *Frame) XXX_DiscardUnknown()
- func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Frame) XXX_Merge(src proto.Message)
- func (m *Frame) XXX_Size() int
- func (m *Frame) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetKey() string
- func (m *Header) GetValue() string
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) Size() (n int)
- func (m *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ClientOption ¶
type ClientOption func(cli *Client)
func WithAutoReconnect ¶
func WithAutoReconnect(b bool) ClientOption
type Frame ¶
type Frame struct { SeqID uint64 `protobuf:"varint,1,req,name=SeqID" json:"SeqID"` LogID uint64 `protobuf:"varint,2,req,name=LogID" json:"LogID"` Service int32 `protobuf:"varint,3,req,name=service" json:"service"` Method int32 `protobuf:"varint,4,req,name=method" json:"method"` Headers []Header `protobuf:"bytes,5,rep,name=headers" json:"headers"` PayloadEncoding string `protobuf:"bytes,6,opt,name=payload_encoding" json:"payload_encoding"` PayloadType string `protobuf:"bytes,7,opt,name=payload_type" json:"payload_type"` Payload []byte `protobuf:"bytes,8,opt,name=payload" json:"payload"` LogIDNew string `protobuf:"bytes,9,opt,name=LogIDNew" json:"LogIDNew"` }
message frame
func (*Frame) Descriptor ¶
func (*Frame) GetHeaders ¶
func (*Frame) GetLogIDNew ¶
func (*Frame) GetPayload ¶
func (*Frame) GetPayloadEncoding ¶
func (*Frame) GetPayloadType ¶
func (*Frame) GetService ¶
func (*Frame) ProtoMessage ¶
func (*Frame) ProtoMessage()
func (*Frame) XXX_DiscardUnknown ¶
func (m *Frame) XXX_DiscardUnknown()
func (*Frame) XXX_Marshal ¶
func (*Frame) XXX_Unmarshal ¶
type Header ¶
type Header struct { Key string `protobuf:"bytes,1,req,name=key" json:"key"` Value string `protobuf:"bytes,2,req,name=value" json:"value"` }
func (*Header) Descriptor ¶
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.