Documentation
¶
Index ¶
- Constants
- Variables
- func IpToUint32(ip []byte) uint32
- func RegisterPubSubServiceServer(s grpc.ServiceRegistrar, srv PubSubServiceServer)
- func RegisterPunchServiceServer(s grpc.ServiceRegistrar, srv PunchServiceServer)
- type HostMessage
- func (*HostMessage) Descriptor() ([]byte, []int)
- func (m *HostMessage) GetExternalAddr() *Ipv4Addr
- func (m *HostMessage) GetHostname() string
- func (m *HostMessage) GetIpv4Addr() []*Ipv4Addr
- func (m *HostMessage) GetIpv6Addr() []*Ipv6Addr
- func (m *HostMessage) GetType() HostMessage_MessageType
- func (m *HostMessage) Marshal() (dAtA []byte, err error)
- func (m *HostMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *HostMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostMessage) ProtoMessage()
- func (m *HostMessage) Reset()
- func (m *HostMessage) Size() (n int)
- func (m *HostMessage) String() string
- func (m *HostMessage) Unmarshal(dAtA []byte) error
- func (m *HostMessage) XXX_DiscardUnknown()
- func (m *HostMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostMessage) XXX_Merge(src proto.Message)
- func (m *HostMessage) XXX_Size() int
- func (m *HostMessage) XXX_Unmarshal(b []byte) error
- type HostMessage_MessageType
- type HostMovedRequest
- func (*HostMovedRequest) Descriptor() ([]byte, []int)
- func (m *HostMovedRequest) GetHostname() string
- func (m *HostMovedRequest) GetIpv4Addr() []*Ipv4Addr
- func (m *HostMovedRequest) GetIpv6Addr() []*Ipv6Addr
- func (m *HostMovedRequest) Marshal() (dAtA []byte, err error)
- func (m *HostMovedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HostMovedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostMovedRequest) ProtoMessage()
- func (m *HostMovedRequest) Reset()
- func (m *HostMovedRequest) Size() (n int)
- func (m *HostMovedRequest) String() string
- func (m *HostMovedRequest) Unmarshal(dAtA []byte) error
- func (m *HostMovedRequest) XXX_DiscardUnknown()
- func (m *HostMovedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostMovedRequest) XXX_Merge(src proto.Message)
- func (m *HostMovedRequest) XXX_Size() int
- func (m *HostMovedRequest) XXX_Unmarshal(b []byte) error
- type HostMovedResponse
- func (*HostMovedResponse) Descriptor() ([]byte, []int)
- func (m *HostMovedResponse) GetSuccess() bool
- func (m *HostMovedResponse) Marshal() (dAtA []byte, err error)
- func (m *HostMovedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HostMovedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostMovedResponse) ProtoMessage()
- func (m *HostMovedResponse) Reset()
- func (m *HostMovedResponse) Size() (n int)
- func (m *HostMovedResponse) String() string
- func (m *HostMovedResponse) Unmarshal(dAtA []byte) error
- func (m *HostMovedResponse) XXX_DiscardUnknown()
- func (m *HostMovedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostMovedResponse) XXX_Merge(src proto.Message)
- func (m *HostMovedResponse) XXX_Size() int
- func (m *HostMovedResponse) XXX_Unmarshal(b []byte) error
- type HostOnlineRequest
- func (*HostOnlineRequest) Descriptor() ([]byte, []int)
- func (m *HostOnlineRequest) GetExternalAddr() *Ipv4Addr
- func (m *HostOnlineRequest) GetHostname() string
- func (m *HostOnlineRequest) GetIpv4Addr() []*Ipv4Addr
- func (m *HostOnlineRequest) GetIpv6Addr() []*Ipv6Addr
- func (m *HostOnlineRequest) Marshal() (dAtA []byte, err error)
- func (m *HostOnlineRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HostOnlineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostOnlineRequest) ProtoMessage()
- func (m *HostOnlineRequest) Reset()
- func (m *HostOnlineRequest) Size() (n int)
- func (m *HostOnlineRequest) String() string
- func (m *HostOnlineRequest) Unmarshal(dAtA []byte) error
- func (m *HostOnlineRequest) XXX_DiscardUnknown()
- func (m *HostOnlineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostOnlineRequest) XXX_Merge(src proto.Message)
- func (m *HostOnlineRequest) XXX_Size() int
- func (m *HostOnlineRequest) XXX_Unmarshal(b []byte) error
- type HostOnlineResponse
- func (*HostOnlineResponse) Descriptor() ([]byte, []int)
- func (m *HostOnlineResponse) Marshal() (dAtA []byte, err error)
- func (m *HostOnlineResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HostOnlineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostOnlineResponse) ProtoMessage()
- func (m *HostOnlineResponse) Reset()
- func (m *HostOnlineResponse) Size() (n int)
- func (m *HostOnlineResponse) String() string
- func (m *HostOnlineResponse) Unmarshal(dAtA []byte) error
- func (m *HostOnlineResponse) XXX_DiscardUnknown()
- func (m *HostOnlineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostOnlineResponse) XXX_Merge(src proto.Message)
- func (m *HostOnlineResponse) XXX_Size() int
- func (m *HostOnlineResponse) XXX_Unmarshal(b []byte) error
- type HostPunchRequest
- func (*HostPunchRequest) Descriptor() ([]byte, []int)
- func (m *HostPunchRequest) GetTargetHostname() string
- func (m *HostPunchRequest) Marshal() (dAtA []byte, err error)
- func (m *HostPunchRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HostPunchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostPunchRequest) ProtoMessage()
- func (m *HostPunchRequest) Reset()
- func (m *HostPunchRequest) Size() (n int)
- func (m *HostPunchRequest) String() string
- func (m *HostPunchRequest) Unmarshal(dAtA []byte) error
- func (m *HostPunchRequest) XXX_DiscardUnknown()
- func (m *HostPunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostPunchRequest) XXX_Merge(src proto.Message)
- func (m *HostPunchRequest) XXX_Size() int
- func (m *HostPunchRequest) XXX_Unmarshal(b []byte) error
- type HostPunchResponse
- func (*HostPunchResponse) Descriptor() ([]byte, []int)
- func (m *HostPunchResponse) GetSuccess() bool
- func (m *HostPunchResponse) Marshal() (dAtA []byte, err error)
- func (m *HostPunchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HostPunchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostPunchResponse) ProtoMessage()
- func (m *HostPunchResponse) Reset()
- func (m *HostPunchResponse) Size() (n int)
- func (m *HostPunchResponse) String() string
- func (m *HostPunchResponse) Unmarshal(dAtA []byte) error
- func (m *HostPunchResponse) XXX_DiscardUnknown()
- func (m *HostPunchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostPunchResponse) XXX_Merge(src proto.Message)
- func (m *HostPunchResponse) XXX_Size() int
- func (m *HostPunchResponse) XXX_Unmarshal(b []byte) error
- type HostQueryRequest
- func (*HostQueryRequest) Descriptor() ([]byte, []int)
- func (m *HostQueryRequest) GetTargetHostname() string
- func (m *HostQueryRequest) Marshal() (dAtA []byte, err error)
- func (m *HostQueryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HostQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostQueryRequest) ProtoMessage()
- func (m *HostQueryRequest) Reset()
- func (m *HostQueryRequest) Size() (n int)
- func (m *HostQueryRequest) String() string
- func (m *HostQueryRequest) Unmarshal(dAtA []byte) error
- func (m *HostQueryRequest) XXX_DiscardUnknown()
- func (m *HostQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostQueryRequest) XXX_Merge(src proto.Message)
- func (m *HostQueryRequest) XXX_Size() int
- func (m *HostQueryRequest) XXX_Unmarshal(b []byte) error
- type HostQueryResponse
- func (*HostQueryResponse) Descriptor() ([]byte, []int)
- func (m *HostQueryResponse) GetIpv4Addr() []*Ipv4Addr
- func (m *HostQueryResponse) GetIpv6Addr() []*Ipv6Addr
- func (m *HostQueryResponse) Marshal() (dAtA []byte, err error)
- func (m *HostQueryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HostQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostQueryResponse) ProtoMessage()
- func (m *HostQueryResponse) Reset()
- func (m *HostQueryResponse) Size() (n int)
- func (m *HostQueryResponse) String() string
- func (m *HostQueryResponse) Unmarshal(dAtA []byte) error
- func (m *HostQueryResponse) XXX_DiscardUnknown()
- func (m *HostQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostQueryResponse) XXX_Merge(src proto.Message)
- func (m *HostQueryResponse) XXX_Size() int
- func (m *HostQueryResponse) XXX_Unmarshal(b []byte) error
- type HostSubscribeRequest
- func (*HostSubscribeRequest) Descriptor() ([]byte, []int)
- func (m *HostSubscribeRequest) GetHostname() string
- func (m *HostSubscribeRequest) GetTopic() string
- func (m *HostSubscribeRequest) Marshal() (dAtA []byte, err error)
- func (m *HostSubscribeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HostSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostSubscribeRequest) ProtoMessage()
- func (m *HostSubscribeRequest) Reset()
- func (m *HostSubscribeRequest) Size() (n int)
- func (m *HostSubscribeRequest) String() string
- func (m *HostSubscribeRequest) Unmarshal(dAtA []byte) error
- func (m *HostSubscribeRequest) XXX_DiscardUnknown()
- func (m *HostSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostSubscribeRequest) XXX_Merge(src proto.Message)
- func (m *HostSubscribeRequest) XXX_Size() int
- func (m *HostSubscribeRequest) XXX_Unmarshal(b []byte) error
- type HostSubscribeResponse
- func (*HostSubscribeResponse) Descriptor() ([]byte, []int)
- func (m *HostSubscribeResponse) GetData() string
- func (m *HostSubscribeResponse) GetEvent() string
- func (m *HostSubscribeResponse) Marshal() (dAtA []byte, err error)
- func (m *HostSubscribeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HostSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostSubscribeResponse) ProtoMessage()
- func (m *HostSubscribeResponse) Reset()
- func (m *HostSubscribeResponse) Size() (n int)
- func (m *HostSubscribeResponse) String() string
- func (m *HostSubscribeResponse) Unmarshal(dAtA []byte) error
- func (m *HostSubscribeResponse) XXX_DiscardUnknown()
- func (m *HostSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostSubscribeResponse) XXX_Merge(src proto.Message)
- func (m *HostSubscribeResponse) XXX_Size() int
- func (m *HostSubscribeResponse) XXX_Unmarshal(b []byte) error
- type HostUpdateRequest
- func (*HostUpdateRequest) Descriptor() ([]byte, []int)
- func (m *HostUpdateRequest) GetExternalAddr() *Ipv4Addr
- func (m *HostUpdateRequest) GetHostname() string
- func (m *HostUpdateRequest) GetIpv4Addr() []*Ipv4Addr
- func (m *HostUpdateRequest) GetIpv6Addr() []*Ipv6Addr
- func (m *HostUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *HostUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HostUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostUpdateRequest) ProtoMessage()
- func (m *HostUpdateRequest) Reset()
- func (m *HostUpdateRequest) Size() (n int)
- func (m *HostUpdateRequest) String() string
- func (m *HostUpdateRequest) Unmarshal(dAtA []byte) error
- func (m *HostUpdateRequest) XXX_DiscardUnknown()
- func (m *HostUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostUpdateRequest) XXX_Merge(src proto.Message)
- func (m *HostUpdateRequest) XXX_Size() int
- func (m *HostUpdateRequest) XXX_Unmarshal(b []byte) error
- type HostUpdateResponse
- func (*HostUpdateResponse) Descriptor() ([]byte, []int)
- func (m *HostUpdateResponse) GetSuccess() bool
- func (m *HostUpdateResponse) Marshal() (dAtA []byte, err error)
- func (m *HostUpdateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HostUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostUpdateResponse) ProtoMessage()
- func (m *HostUpdateResponse) Reset()
- func (m *HostUpdateResponse) Size() (n int)
- func (m *HostUpdateResponse) String() string
- func (m *HostUpdateResponse) Unmarshal(dAtA []byte) error
- func (m *HostUpdateResponse) XXX_DiscardUnknown()
- func (m *HostUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostUpdateResponse) XXX_Merge(src proto.Message)
- func (m *HostUpdateResponse) XXX_Size() int
- func (m *HostUpdateResponse) XXX_Unmarshal(b []byte) error
- type Ipv4Addr
- func (*Ipv4Addr) Descriptor() ([]byte, []int)
- func (m *Ipv4Addr) GetIp() uint32
- func (m *Ipv4Addr) GetPort() uint32
- func (m *Ipv4Addr) Marshal() (dAtA []byte, err error)
- func (m *Ipv4Addr) MarshalTo(dAtA []byte) (int, error)
- func (m *Ipv4Addr) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ipv4Addr) ProtoMessage()
- func (m *Ipv4Addr) Reset()
- func (m *Ipv4Addr) Size() (n int)
- func (m *Ipv4Addr) String() string
- func (m *Ipv4Addr) Unmarshal(dAtA []byte) error
- func (m *Ipv4Addr) XXX_DiscardUnknown()
- func (m *Ipv4Addr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ipv4Addr) XXX_Merge(src proto.Message)
- func (m *Ipv4Addr) XXX_Size() int
- func (m *Ipv4Addr) XXX_Unmarshal(b []byte) error
- type Ipv6Addr
- func (*Ipv6Addr) Descriptor() ([]byte, []int)
- func (m *Ipv6Addr) GetHi() uint64
- func (m *Ipv6Addr) GetLo() uint64
- func (m *Ipv6Addr) GetPort() uint32
- func (m *Ipv6Addr) Marshal() (dAtA []byte, err error)
- func (m *Ipv6Addr) MarshalTo(dAtA []byte) (int, error)
- func (m *Ipv6Addr) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ipv6Addr) ProtoMessage()
- func (m *Ipv6Addr) Reset()
- func (m *Ipv6Addr) Size() (n int)
- func (m *Ipv6Addr) String() string
- func (m *Ipv6Addr) Unmarshal(dAtA []byte) error
- func (m *Ipv6Addr) XXX_DiscardUnknown()
- func (m *Ipv6Addr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ipv6Addr) XXX_Merge(src proto.Message)
- func (m *Ipv6Addr) XXX_Size() int
- func (m *Ipv6Addr) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetData() []byte
- func (m *Message) GetTopic() string
- func (m *Message) Marshal() (dAtA []byte, err error)
- func (m *Message) MarshalTo(dAtA []byte) (int, error)
- func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) Size() (n int)
- func (m *Message) String() string
- func (m *Message) Unmarshal(dAtA []byte) error
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (m *Msg) GetValue() string
- func (m *Msg) Marshal() (dAtA []byte, err error)
- func (m *Msg) MarshalTo(dAtA []byte) (int, error)
- func (m *Msg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) Size() (n int)
- func (m *Msg) String() string
- func (m *Msg) Unmarshal(dAtA []byte) error
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Msg) XXX_Merge(src proto.Message)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
- type PubSubServiceClient
- type PubSubServiceServer
- type PubSubService_SubscribeClient
- type PubSubService_SubscribeServer
- type PublishRequest
- func (*PublishRequest) Descriptor() ([]byte, []int)
- func (m *PublishRequest) GetData() []byte
- func (m *PublishRequest) GetHostname() string
- func (m *PublishRequest) GetTopic() string
- func (m *PublishRequest) Marshal() (dAtA []byte, err error)
- func (m *PublishRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PublishRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublishRequest) ProtoMessage()
- func (m *PublishRequest) Reset()
- func (m *PublishRequest) Size() (n int)
- func (m *PublishRequest) String() string
- func (m *PublishRequest) Unmarshal(dAtA []byte) error
- func (m *PublishRequest) XXX_DiscardUnknown()
- func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublishRequest) XXX_Merge(src proto.Message)
- func (m *PublishRequest) XXX_Size() int
- func (m *PublishRequest) XXX_Unmarshal(b []byte) error
- type PublishResponse
- func (*PublishResponse) Descriptor() ([]byte, []int)
- func (m *PublishResponse) Marshal() (dAtA []byte, err error)
- func (m *PublishResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PublishResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PublishResponse) ProtoMessage()
- func (m *PublishResponse) Reset()
- func (m *PublishResponse) Size() (n int)
- func (m *PublishResponse) String() string
- func (m *PublishResponse) Unmarshal(dAtA []byte) error
- func (m *PublishResponse) XXX_DiscardUnknown()
- func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublishResponse) XXX_Merge(src proto.Message)
- func (m *PublishResponse) XXX_Size() int
- func (m *PublishResponse) XXX_Unmarshal(b []byte) error
- type PunchServiceClient
- type PunchServiceServer
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetHostname() string
- func (m *SubscribeRequest) GetTopic() string
- func (m *SubscribeRequest) Marshal() (dAtA []byte, err error)
- func (m *SubscribeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) Size() (n int)
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) Unmarshal(dAtA []byte) error
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedPubSubServiceServer
- func (UnimplementedPubSubServiceServer) Publish(context.Context, *PublishRequest) (*PublishResponse, error)
- func (UnimplementedPubSubServiceServer) Subscribe(*SubscribeRequest, PubSubService_SubscribeServer) error
- func (UnimplementedPubSubServiceServer) Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error)
- type UnimplementedPunchServiceServer
- func (UnimplementedPunchServiceServer) HostMoved(context.Context, *HostMovedRequest) (*HostMovedResponse, error)
- func (UnimplementedPunchServiceServer) HostOnline(context.Context, *HostOnlineRequest) (*HostOnlineResponse, error)
- func (UnimplementedPunchServiceServer) HostPunch(context.Context, *HostPunchRequest) (*HostPunchResponse, error)
- func (UnimplementedPunchServiceServer) HostQuery(context.Context, *HostQueryRequest) (*HostQueryResponse, error)
- func (UnimplementedPunchServiceServer) HostUpdate(context.Context, *HostUpdateRequest) (*HostUpdateResponse, error)
- type UnsafePubSubServiceServer
- type UnsafePunchServiceServer
- type UnsubscribeRequest
- func (*UnsubscribeRequest) Descriptor() ([]byte, []int)
- func (m *UnsubscribeRequest) GetHostname() string
- func (m *UnsubscribeRequest) GetTopic() string
- func (m *UnsubscribeRequest) Marshal() (dAtA []byte, err error)
- func (m *UnsubscribeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UnsubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnsubscribeRequest) ProtoMessage()
- func (m *UnsubscribeRequest) Reset()
- func (m *UnsubscribeRequest) Size() (n int)
- func (m *UnsubscribeRequest) String() string
- func (m *UnsubscribeRequest) Unmarshal(dAtA []byte) error
- func (m *UnsubscribeRequest) XXX_DiscardUnknown()
- func (m *UnsubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnsubscribeRequest) XXX_Merge(src proto.Message)
- func (m *UnsubscribeRequest) XXX_Size() int
- func (m *UnsubscribeRequest) XXX_Unmarshal(b []byte) error
- type UnsubscribeResponse
- func (*UnsubscribeResponse) Descriptor() ([]byte, []int)
- func (m *UnsubscribeResponse) Marshal() (dAtA []byte, err error)
- func (m *UnsubscribeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *UnsubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnsubscribeResponse) ProtoMessage()
- func (m *UnsubscribeResponse) Reset()
- func (m *UnsubscribeResponse) Size() (n int)
- func (m *UnsubscribeResponse) String() string
- func (m *UnsubscribeResponse) Unmarshal(dAtA []byte) error
- func (m *UnsubscribeResponse) XXX_DiscardUnknown()
- func (m *UnsubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnsubscribeResponse) XXX_Merge(src proto.Message)
- func (m *UnsubscribeResponse) XXX_Size() int
- func (m *UnsubscribeResponse) XXX_Unmarshal(b []byte) error
Constants ¶
const ( PubSubService_Publish_FullMethodName = "/api.PubSubService/Publish" PubSubService_Subscribe_FullMethodName = "/api.PubSubService/Subscribe" PubSubService_Unsubscribe_FullMethodName = "/api.PubSubService/Unsubscribe" )
const ( PunchService_HostOnline_FullMethodName = "/api.PunchService/HostOnline" PunchService_HostQuery_FullMethodName = "/api.PunchService/HostQuery" PunchService_HostUpdate_FullMethodName = "/api.PunchService/HostUpdate" PunchService_HostPunch_FullMethodName = "/api.PunchService/HostPunch" PunchService_HostMoved_FullMethodName = "/api.PunchService/HostMoved" )
Variables ¶
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") )
var HostMessage_MessageType_name = map[int32]string{
0: "None",
1: "HostQuery",
2: "HostQueryReply",
3: "HostUpdateNotification",
4: "HostMovedNotification",
5: "HostPunchNotification",
6: "HostOnlineNotification",
7: "HostOfflineNotification",
}
var HostMessage_MessageType_value = map[string]int32{
"None": 0,
"HostQuery": 1,
"HostQueryReply": 2,
"HostUpdateNotification": 3,
"HostMovedNotification": 4,
"HostPunchNotification": 5,
"HostOnlineNotification": 6,
"HostOfflineNotification": 7,
}
var PubSubService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.PubSubService", HandlerType: (*PubSubServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Publish", Handler: _PubSubService_Publish_Handler, }, { MethodName: "Unsubscribe", Handler: _PubSubService_Unsubscribe_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Subscribe", Handler: _PubSubService_Subscribe_Handler, ServerStreams: true, }, }, Metadata: "api/v1/api.proto", }
PubSubService_ServiceDesc is the grpc.ServiceDesc for PubSubService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PunchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.PunchService", HandlerType: (*PunchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HostOnline", Handler: _PunchService_HostOnline_Handler, }, { MethodName: "HostQuery", Handler: _PunchService_HostQuery_Handler, }, { MethodName: "HostUpdate", Handler: _PunchService_HostUpdate_Handler, }, { MethodName: "HostPunch", Handler: _PunchService_HostPunch_Handler, }, { MethodName: "HostMoved", Handler: _PunchService_HostMoved_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/api.proto", }
PunchService_ServiceDesc is the grpc.ServiceDesc for PunchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func IpToUint32 ¶
func RegisterPubSubServiceServer ¶
func RegisterPubSubServiceServer(s grpc.ServiceRegistrar, srv PubSubServiceServer)
func RegisterPunchServiceServer ¶
func RegisterPunchServiceServer(s grpc.ServiceRegistrar, srv PunchServiceServer)
Types ¶
type HostMessage ¶
type HostMessage struct { Type HostMessage_MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=api.HostMessage_MessageType" json:"type,omitempty"` ExternalAddr *Ipv4Addr `protobuf:"bytes,2,opt,name=external_addr,json=externalAddr,proto3" json:"external_addr,omitempty"` Ipv4Addr []*Ipv4Addr `protobuf:"bytes,3,rep,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"` Ipv6Addr []*Ipv6Addr `protobuf:"bytes,4,rep,name=Ipv6_addr,json=Ipv6Addr,proto3" json:"Ipv6_addr,omitempty"` Hostname string `protobuf:"bytes,5,opt,name=hostname,proto3" json:"hostname,omitempty"` }
func (*HostMessage) Descriptor ¶
func (*HostMessage) Descriptor() ([]byte, []int)
func (*HostMessage) GetExternalAddr ¶
func (m *HostMessage) GetExternalAddr() *Ipv4Addr
func (*HostMessage) GetHostname ¶
func (m *HostMessage) GetHostname() string
func (*HostMessage) GetIpv4Addr ¶
func (m *HostMessage) GetIpv4Addr() []*Ipv4Addr
func (*HostMessage) GetIpv6Addr ¶
func (m *HostMessage) GetIpv6Addr() []*Ipv6Addr
func (*HostMessage) GetType ¶
func (m *HostMessage) GetType() HostMessage_MessageType
func (*HostMessage) Marshal ¶
func (m *HostMessage) Marshal() (dAtA []byte, err error)
func (*HostMessage) MarshalToSizedBuffer ¶
func (m *HostMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostMessage) ProtoMessage ¶
func (*HostMessage) ProtoMessage()
func (*HostMessage) Reset ¶
func (m *HostMessage) Reset()
func (*HostMessage) Size ¶
func (m *HostMessage) Size() (n int)
func (*HostMessage) String ¶
func (m *HostMessage) String() string
func (*HostMessage) Unmarshal ¶
func (m *HostMessage) Unmarshal(dAtA []byte) error
func (*HostMessage) XXX_DiscardUnknown ¶
func (m *HostMessage) XXX_DiscardUnknown()
func (*HostMessage) XXX_Marshal ¶
func (m *HostMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostMessage) XXX_Merge ¶
func (m *HostMessage) XXX_Merge(src proto.Message)
func (*HostMessage) XXX_Size ¶
func (m *HostMessage) XXX_Size() int
func (*HostMessage) XXX_Unmarshal ¶
func (m *HostMessage) XXX_Unmarshal(b []byte) error
type HostMessage_MessageType ¶
type HostMessage_MessageType int32
const ( HostMessage_None HostMessage_MessageType = 0 HostMessage_HostQuery HostMessage_MessageType = 1 HostMessage_HostQueryReply HostMessage_MessageType = 2 HostMessage_HostUpdateNotification HostMessage_MessageType = 3 HostMessage_HostMovedNotification HostMessage_MessageType = 4 HostMessage_HostPunchNotification HostMessage_MessageType = 5 HostMessage_HostOnlineNotification HostMessage_MessageType = 6 HostMessage_HostOfflineNotification HostMessage_MessageType = 7 )
func (HostMessage_MessageType) EnumDescriptor ¶
func (HostMessage_MessageType) EnumDescriptor() ([]byte, []int)
func (HostMessage_MessageType) String ¶
func (x HostMessage_MessageType) String() string
type HostMovedRequest ¶
type HostMovedRequest struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` Ipv4Addr []*Ipv4Addr `protobuf:"bytes,2,rep,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"` Ipv6Addr []*Ipv6Addr `protobuf:"bytes,3,rep,name=ipv6_addr,json=ipv6Addr,proto3" json:"ipv6_addr,omitempty"` }
func (*HostMovedRequest) Descriptor ¶
func (*HostMovedRequest) Descriptor() ([]byte, []int)
func (*HostMovedRequest) GetHostname ¶
func (m *HostMovedRequest) GetHostname() string
func (*HostMovedRequest) GetIpv4Addr ¶
func (m *HostMovedRequest) GetIpv4Addr() []*Ipv4Addr
func (*HostMovedRequest) GetIpv6Addr ¶
func (m *HostMovedRequest) GetIpv6Addr() []*Ipv6Addr
func (*HostMovedRequest) Marshal ¶
func (m *HostMovedRequest) Marshal() (dAtA []byte, err error)
func (*HostMovedRequest) MarshalToSizedBuffer ¶
func (m *HostMovedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostMovedRequest) ProtoMessage ¶
func (*HostMovedRequest) ProtoMessage()
func (*HostMovedRequest) Reset ¶
func (m *HostMovedRequest) Reset()
func (*HostMovedRequest) Size ¶
func (m *HostMovedRequest) Size() (n int)
func (*HostMovedRequest) String ¶
func (m *HostMovedRequest) String() string
func (*HostMovedRequest) Unmarshal ¶
func (m *HostMovedRequest) Unmarshal(dAtA []byte) error
func (*HostMovedRequest) XXX_DiscardUnknown ¶
func (m *HostMovedRequest) XXX_DiscardUnknown()
func (*HostMovedRequest) XXX_Marshal ¶
func (m *HostMovedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostMovedRequest) XXX_Merge ¶
func (m *HostMovedRequest) XXX_Merge(src proto.Message)
func (*HostMovedRequest) XXX_Size ¶
func (m *HostMovedRequest) XXX_Size() int
func (*HostMovedRequest) XXX_Unmarshal ¶
func (m *HostMovedRequest) XXX_Unmarshal(b []byte) error
type HostMovedResponse ¶
type HostMovedResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}
func (*HostMovedResponse) Descriptor ¶
func (*HostMovedResponse) Descriptor() ([]byte, []int)
func (*HostMovedResponse) GetSuccess ¶
func (m *HostMovedResponse) GetSuccess() bool
func (*HostMovedResponse) Marshal ¶
func (m *HostMovedResponse) Marshal() (dAtA []byte, err error)
func (*HostMovedResponse) MarshalTo ¶
func (m *HostMovedResponse) MarshalTo(dAtA []byte) (int, error)
func (*HostMovedResponse) MarshalToSizedBuffer ¶
func (m *HostMovedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostMovedResponse) ProtoMessage ¶
func (*HostMovedResponse) ProtoMessage()
func (*HostMovedResponse) Reset ¶
func (m *HostMovedResponse) Reset()
func (*HostMovedResponse) Size ¶
func (m *HostMovedResponse) Size() (n int)
func (*HostMovedResponse) String ¶
func (m *HostMovedResponse) String() string
func (*HostMovedResponse) Unmarshal ¶
func (m *HostMovedResponse) Unmarshal(dAtA []byte) error
func (*HostMovedResponse) XXX_DiscardUnknown ¶
func (m *HostMovedResponse) XXX_DiscardUnknown()
func (*HostMovedResponse) XXX_Marshal ¶
func (m *HostMovedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostMovedResponse) XXX_Merge ¶
func (m *HostMovedResponse) XXX_Merge(src proto.Message)
func (*HostMovedResponse) XXX_Size ¶
func (m *HostMovedResponse) XXX_Size() int
func (*HostMovedResponse) XXX_Unmarshal ¶
func (m *HostMovedResponse) XXX_Unmarshal(b []byte) error
type HostOnlineRequest ¶
type HostOnlineRequest struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` Ipv4Addr []*Ipv4Addr `protobuf:"bytes,2,rep,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"` Ipv6Addr []*Ipv6Addr `protobuf:"bytes,3,rep,name=ipv6_addr,json=ipv6Addr,proto3" json:"ipv6_addr,omitempty"` ExternalAddr *Ipv4Addr `protobuf:"bytes,4,opt,name=external_addr,json=externalAddr,proto3" json:"external_addr,omitempty"` }
func (*HostOnlineRequest) Descriptor ¶
func (*HostOnlineRequest) Descriptor() ([]byte, []int)
func (*HostOnlineRequest) GetExternalAddr ¶
func (m *HostOnlineRequest) GetExternalAddr() *Ipv4Addr
func (*HostOnlineRequest) GetHostname ¶
func (m *HostOnlineRequest) GetHostname() string
func (*HostOnlineRequest) GetIpv4Addr ¶
func (m *HostOnlineRequest) GetIpv4Addr() []*Ipv4Addr
func (*HostOnlineRequest) GetIpv6Addr ¶
func (m *HostOnlineRequest) GetIpv6Addr() []*Ipv6Addr
func (*HostOnlineRequest) Marshal ¶
func (m *HostOnlineRequest) Marshal() (dAtA []byte, err error)
func (*HostOnlineRequest) MarshalTo ¶
func (m *HostOnlineRequest) MarshalTo(dAtA []byte) (int, error)
func (*HostOnlineRequest) MarshalToSizedBuffer ¶
func (m *HostOnlineRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostOnlineRequest) ProtoMessage ¶
func (*HostOnlineRequest) ProtoMessage()
func (*HostOnlineRequest) Reset ¶
func (m *HostOnlineRequest) Reset()
func (*HostOnlineRequest) Size ¶
func (m *HostOnlineRequest) Size() (n int)
func (*HostOnlineRequest) String ¶
func (m *HostOnlineRequest) String() string
func (*HostOnlineRequest) Unmarshal ¶
func (m *HostOnlineRequest) Unmarshal(dAtA []byte) error
func (*HostOnlineRequest) XXX_DiscardUnknown ¶
func (m *HostOnlineRequest) XXX_DiscardUnknown()
func (*HostOnlineRequest) XXX_Marshal ¶
func (m *HostOnlineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostOnlineRequest) XXX_Merge ¶
func (m *HostOnlineRequest) XXX_Merge(src proto.Message)
func (*HostOnlineRequest) XXX_Size ¶
func (m *HostOnlineRequest) XXX_Size() int
func (*HostOnlineRequest) XXX_Unmarshal ¶
func (m *HostOnlineRequest) XXX_Unmarshal(b []byte) error
type HostOnlineResponse ¶
type HostOnlineResponse struct { }
func (*HostOnlineResponse) Descriptor ¶
func (*HostOnlineResponse) Descriptor() ([]byte, []int)
func (*HostOnlineResponse) Marshal ¶
func (m *HostOnlineResponse) Marshal() (dAtA []byte, err error)
func (*HostOnlineResponse) MarshalTo ¶
func (m *HostOnlineResponse) MarshalTo(dAtA []byte) (int, error)
func (*HostOnlineResponse) MarshalToSizedBuffer ¶
func (m *HostOnlineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostOnlineResponse) ProtoMessage ¶
func (*HostOnlineResponse) ProtoMessage()
func (*HostOnlineResponse) Reset ¶
func (m *HostOnlineResponse) Reset()
func (*HostOnlineResponse) Size ¶
func (m *HostOnlineResponse) Size() (n int)
func (*HostOnlineResponse) String ¶
func (m *HostOnlineResponse) String() string
func (*HostOnlineResponse) Unmarshal ¶
func (m *HostOnlineResponse) Unmarshal(dAtA []byte) error
func (*HostOnlineResponse) XXX_DiscardUnknown ¶
func (m *HostOnlineResponse) XXX_DiscardUnknown()
func (*HostOnlineResponse) XXX_Marshal ¶
func (m *HostOnlineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostOnlineResponse) XXX_Merge ¶
func (m *HostOnlineResponse) XXX_Merge(src proto.Message)
func (*HostOnlineResponse) XXX_Size ¶
func (m *HostOnlineResponse) XXX_Size() int
func (*HostOnlineResponse) XXX_Unmarshal ¶
func (m *HostOnlineResponse) XXX_Unmarshal(b []byte) error
type HostPunchRequest ¶
type HostPunchRequest struct {
TargetHostname string `protobuf:"bytes,1,opt,name=target_hostname,json=targetHostname,proto3" json:"target_hostname,omitempty"`
}
func (*HostPunchRequest) Descriptor ¶
func (*HostPunchRequest) Descriptor() ([]byte, []int)
func (*HostPunchRequest) GetTargetHostname ¶
func (m *HostPunchRequest) GetTargetHostname() string
func (*HostPunchRequest) Marshal ¶
func (m *HostPunchRequest) Marshal() (dAtA []byte, err error)
func (*HostPunchRequest) MarshalToSizedBuffer ¶
func (m *HostPunchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostPunchRequest) ProtoMessage ¶
func (*HostPunchRequest) ProtoMessage()
func (*HostPunchRequest) Reset ¶
func (m *HostPunchRequest) Reset()
func (*HostPunchRequest) Size ¶
func (m *HostPunchRequest) Size() (n int)
func (*HostPunchRequest) String ¶
func (m *HostPunchRequest) String() string
func (*HostPunchRequest) Unmarshal ¶
func (m *HostPunchRequest) Unmarshal(dAtA []byte) error
func (*HostPunchRequest) XXX_DiscardUnknown ¶
func (m *HostPunchRequest) XXX_DiscardUnknown()
func (*HostPunchRequest) XXX_Marshal ¶
func (m *HostPunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostPunchRequest) XXX_Merge ¶
func (m *HostPunchRequest) XXX_Merge(src proto.Message)
func (*HostPunchRequest) XXX_Size ¶
func (m *HostPunchRequest) XXX_Size() int
func (*HostPunchRequest) XXX_Unmarshal ¶
func (m *HostPunchRequest) XXX_Unmarshal(b []byte) error
type HostPunchResponse ¶
type HostPunchResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}
func (*HostPunchResponse) Descriptor ¶
func (*HostPunchResponse) Descriptor() ([]byte, []int)
func (*HostPunchResponse) GetSuccess ¶
func (m *HostPunchResponse) GetSuccess() bool
func (*HostPunchResponse) Marshal ¶
func (m *HostPunchResponse) Marshal() (dAtA []byte, err error)
func (*HostPunchResponse) MarshalTo ¶
func (m *HostPunchResponse) MarshalTo(dAtA []byte) (int, error)
func (*HostPunchResponse) MarshalToSizedBuffer ¶
func (m *HostPunchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostPunchResponse) ProtoMessage ¶
func (*HostPunchResponse) ProtoMessage()
func (*HostPunchResponse) Reset ¶
func (m *HostPunchResponse) Reset()
func (*HostPunchResponse) Size ¶
func (m *HostPunchResponse) Size() (n int)
func (*HostPunchResponse) String ¶
func (m *HostPunchResponse) String() string
func (*HostPunchResponse) Unmarshal ¶
func (m *HostPunchResponse) Unmarshal(dAtA []byte) error
func (*HostPunchResponse) XXX_DiscardUnknown ¶
func (m *HostPunchResponse) XXX_DiscardUnknown()
func (*HostPunchResponse) XXX_Marshal ¶
func (m *HostPunchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostPunchResponse) XXX_Merge ¶
func (m *HostPunchResponse) XXX_Merge(src proto.Message)
func (*HostPunchResponse) XXX_Size ¶
func (m *HostPunchResponse) XXX_Size() int
func (*HostPunchResponse) XXX_Unmarshal ¶
func (m *HostPunchResponse) XXX_Unmarshal(b []byte) error
type HostQueryRequest ¶
type HostQueryRequest struct {
TargetHostname string `protobuf:"bytes,1,opt,name=target_hostname,json=targetHostname,proto3" json:"target_hostname,omitempty"`
}
func (*HostQueryRequest) Descriptor ¶
func (*HostQueryRequest) Descriptor() ([]byte, []int)
func (*HostQueryRequest) GetTargetHostname ¶
func (m *HostQueryRequest) GetTargetHostname() string
func (*HostQueryRequest) Marshal ¶
func (m *HostQueryRequest) Marshal() (dAtA []byte, err error)
func (*HostQueryRequest) MarshalToSizedBuffer ¶
func (m *HostQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostQueryRequest) ProtoMessage ¶
func (*HostQueryRequest) ProtoMessage()
func (*HostQueryRequest) Reset ¶
func (m *HostQueryRequest) Reset()
func (*HostQueryRequest) Size ¶
func (m *HostQueryRequest) Size() (n int)
func (*HostQueryRequest) String ¶
func (m *HostQueryRequest) String() string
func (*HostQueryRequest) Unmarshal ¶
func (m *HostQueryRequest) Unmarshal(dAtA []byte) error
func (*HostQueryRequest) XXX_DiscardUnknown ¶
func (m *HostQueryRequest) XXX_DiscardUnknown()
func (*HostQueryRequest) XXX_Marshal ¶
func (m *HostQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostQueryRequest) XXX_Merge ¶
func (m *HostQueryRequest) XXX_Merge(src proto.Message)
func (*HostQueryRequest) XXX_Size ¶
func (m *HostQueryRequest) XXX_Size() int
func (*HostQueryRequest) XXX_Unmarshal ¶
func (m *HostQueryRequest) XXX_Unmarshal(b []byte) error
type HostQueryResponse ¶
type HostQueryResponse struct { Ipv4Addr []*Ipv4Addr `protobuf:"bytes,1,rep,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"` Ipv6Addr []*Ipv6Addr `protobuf:"bytes,2,rep,name=ipv6_addr,json=ipv6Addr,proto3" json:"ipv6_addr,omitempty"` }
func (*HostQueryResponse) Descriptor ¶
func (*HostQueryResponse) Descriptor() ([]byte, []int)
func (*HostQueryResponse) GetIpv4Addr ¶
func (m *HostQueryResponse) GetIpv4Addr() []*Ipv4Addr
func (*HostQueryResponse) GetIpv6Addr ¶
func (m *HostQueryResponse) GetIpv6Addr() []*Ipv6Addr
func (*HostQueryResponse) Marshal ¶
func (m *HostQueryResponse) Marshal() (dAtA []byte, err error)
func (*HostQueryResponse) MarshalTo ¶
func (m *HostQueryResponse) MarshalTo(dAtA []byte) (int, error)
func (*HostQueryResponse) MarshalToSizedBuffer ¶
func (m *HostQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostQueryResponse) ProtoMessage ¶
func (*HostQueryResponse) ProtoMessage()
func (*HostQueryResponse) Reset ¶
func (m *HostQueryResponse) Reset()
func (*HostQueryResponse) Size ¶
func (m *HostQueryResponse) Size() (n int)
func (*HostQueryResponse) String ¶
func (m *HostQueryResponse) String() string
func (*HostQueryResponse) Unmarshal ¶
func (m *HostQueryResponse) Unmarshal(dAtA []byte) error
func (*HostQueryResponse) XXX_DiscardUnknown ¶
func (m *HostQueryResponse) XXX_DiscardUnknown()
func (*HostQueryResponse) XXX_Marshal ¶
func (m *HostQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostQueryResponse) XXX_Merge ¶
func (m *HostQueryResponse) XXX_Merge(src proto.Message)
func (*HostQueryResponse) XXX_Size ¶
func (m *HostQueryResponse) XXX_Size() int
func (*HostQueryResponse) XXX_Unmarshal ¶
func (m *HostQueryResponse) XXX_Unmarshal(b []byte) error
type HostSubscribeRequest ¶
type HostSubscribeRequest struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` }
func (*HostSubscribeRequest) Descriptor ¶
func (*HostSubscribeRequest) Descriptor() ([]byte, []int)
func (*HostSubscribeRequest) GetHostname ¶
func (m *HostSubscribeRequest) GetHostname() string
func (*HostSubscribeRequest) GetTopic ¶
func (m *HostSubscribeRequest) GetTopic() string
func (*HostSubscribeRequest) Marshal ¶
func (m *HostSubscribeRequest) Marshal() (dAtA []byte, err error)
func (*HostSubscribeRequest) MarshalTo ¶
func (m *HostSubscribeRequest) MarshalTo(dAtA []byte) (int, error)
func (*HostSubscribeRequest) MarshalToSizedBuffer ¶
func (m *HostSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostSubscribeRequest) ProtoMessage ¶
func (*HostSubscribeRequest) ProtoMessage()
func (*HostSubscribeRequest) Reset ¶
func (m *HostSubscribeRequest) Reset()
func (*HostSubscribeRequest) Size ¶
func (m *HostSubscribeRequest) Size() (n int)
func (*HostSubscribeRequest) String ¶
func (m *HostSubscribeRequest) String() string
func (*HostSubscribeRequest) Unmarshal ¶
func (m *HostSubscribeRequest) Unmarshal(dAtA []byte) error
func (*HostSubscribeRequest) XXX_DiscardUnknown ¶
func (m *HostSubscribeRequest) XXX_DiscardUnknown()
func (*HostSubscribeRequest) XXX_Marshal ¶
func (m *HostSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostSubscribeRequest) XXX_Merge ¶
func (m *HostSubscribeRequest) XXX_Merge(src proto.Message)
func (*HostSubscribeRequest) XXX_Size ¶
func (m *HostSubscribeRequest) XXX_Size() int
func (*HostSubscribeRequest) XXX_Unmarshal ¶
func (m *HostSubscribeRequest) XXX_Unmarshal(b []byte) error
type HostSubscribeResponse ¶
type HostSubscribeResponse struct { Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*HostSubscribeResponse) Descriptor ¶
func (*HostSubscribeResponse) Descriptor() ([]byte, []int)
func (*HostSubscribeResponse) GetData ¶
func (m *HostSubscribeResponse) GetData() string
func (*HostSubscribeResponse) GetEvent ¶
func (m *HostSubscribeResponse) GetEvent() string
func (*HostSubscribeResponse) Marshal ¶
func (m *HostSubscribeResponse) Marshal() (dAtA []byte, err error)
func (*HostSubscribeResponse) MarshalTo ¶
func (m *HostSubscribeResponse) MarshalTo(dAtA []byte) (int, error)
func (*HostSubscribeResponse) MarshalToSizedBuffer ¶
func (m *HostSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostSubscribeResponse) ProtoMessage ¶
func (*HostSubscribeResponse) ProtoMessage()
func (*HostSubscribeResponse) Reset ¶
func (m *HostSubscribeResponse) Reset()
func (*HostSubscribeResponse) Size ¶
func (m *HostSubscribeResponse) Size() (n int)
func (*HostSubscribeResponse) String ¶
func (m *HostSubscribeResponse) String() string
func (*HostSubscribeResponse) Unmarshal ¶
func (m *HostSubscribeResponse) Unmarshal(dAtA []byte) error
func (*HostSubscribeResponse) XXX_DiscardUnknown ¶
func (m *HostSubscribeResponse) XXX_DiscardUnknown()
func (*HostSubscribeResponse) XXX_Marshal ¶
func (m *HostSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostSubscribeResponse) XXX_Merge ¶
func (m *HostSubscribeResponse) XXX_Merge(src proto.Message)
func (*HostSubscribeResponse) XXX_Size ¶
func (m *HostSubscribeResponse) XXX_Size() int
func (*HostSubscribeResponse) XXX_Unmarshal ¶
func (m *HostSubscribeResponse) XXX_Unmarshal(b []byte) error
type HostUpdateRequest ¶
type HostUpdateRequest struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` Ipv4Addr []*Ipv4Addr `protobuf:"bytes,2,rep,name=ipv4_addr,json=ipv4Addr,proto3" json:"ipv4_addr,omitempty"` Ipv6Addr []*Ipv6Addr `protobuf:"bytes,3,rep,name=ipv6_addr,json=ipv6Addr,proto3" json:"ipv6_addr,omitempty"` ExternalAddr *Ipv4Addr `protobuf:"bytes,4,opt,name=external_addr,json=externalAddr,proto3" json:"external_addr,omitempty"` }
func (*HostUpdateRequest) Descriptor ¶
func (*HostUpdateRequest) Descriptor() ([]byte, []int)
func (*HostUpdateRequest) GetExternalAddr ¶
func (m *HostUpdateRequest) GetExternalAddr() *Ipv4Addr
func (*HostUpdateRequest) GetHostname ¶
func (m *HostUpdateRequest) GetHostname() string
func (*HostUpdateRequest) GetIpv4Addr ¶
func (m *HostUpdateRequest) GetIpv4Addr() []*Ipv4Addr
func (*HostUpdateRequest) GetIpv6Addr ¶
func (m *HostUpdateRequest) GetIpv6Addr() []*Ipv6Addr
func (*HostUpdateRequest) Marshal ¶
func (m *HostUpdateRequest) Marshal() (dAtA []byte, err error)
func (*HostUpdateRequest) MarshalTo ¶
func (m *HostUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*HostUpdateRequest) MarshalToSizedBuffer ¶
func (m *HostUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostUpdateRequest) ProtoMessage ¶
func (*HostUpdateRequest) ProtoMessage()
func (*HostUpdateRequest) Reset ¶
func (m *HostUpdateRequest) Reset()
func (*HostUpdateRequest) Size ¶
func (m *HostUpdateRequest) Size() (n int)
func (*HostUpdateRequest) String ¶
func (m *HostUpdateRequest) String() string
func (*HostUpdateRequest) Unmarshal ¶
func (m *HostUpdateRequest) Unmarshal(dAtA []byte) error
func (*HostUpdateRequest) XXX_DiscardUnknown ¶
func (m *HostUpdateRequest) XXX_DiscardUnknown()
func (*HostUpdateRequest) XXX_Marshal ¶
func (m *HostUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostUpdateRequest) XXX_Merge ¶
func (m *HostUpdateRequest) XXX_Merge(src proto.Message)
func (*HostUpdateRequest) XXX_Size ¶
func (m *HostUpdateRequest) XXX_Size() int
func (*HostUpdateRequest) XXX_Unmarshal ¶
func (m *HostUpdateRequest) XXX_Unmarshal(b []byte) error
type HostUpdateResponse ¶
type HostUpdateResponse struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}
func (*HostUpdateResponse) Descriptor ¶
func (*HostUpdateResponse) Descriptor() ([]byte, []int)
func (*HostUpdateResponse) GetSuccess ¶
func (m *HostUpdateResponse) GetSuccess() bool
func (*HostUpdateResponse) Marshal ¶
func (m *HostUpdateResponse) Marshal() (dAtA []byte, err error)
func (*HostUpdateResponse) MarshalTo ¶
func (m *HostUpdateResponse) MarshalTo(dAtA []byte) (int, error)
func (*HostUpdateResponse) MarshalToSizedBuffer ¶
func (m *HostUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HostUpdateResponse) ProtoMessage ¶
func (*HostUpdateResponse) ProtoMessage()
func (*HostUpdateResponse) Reset ¶
func (m *HostUpdateResponse) Reset()
func (*HostUpdateResponse) Size ¶
func (m *HostUpdateResponse) Size() (n int)
func (*HostUpdateResponse) String ¶
func (m *HostUpdateResponse) String() string
func (*HostUpdateResponse) Unmarshal ¶
func (m *HostUpdateResponse) Unmarshal(dAtA []byte) error
func (*HostUpdateResponse) XXX_DiscardUnknown ¶
func (m *HostUpdateResponse) XXX_DiscardUnknown()
func (*HostUpdateResponse) XXX_Marshal ¶
func (m *HostUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HostUpdateResponse) XXX_Merge ¶
func (m *HostUpdateResponse) XXX_Merge(src proto.Message)
func (*HostUpdateResponse) XXX_Size ¶
func (m *HostUpdateResponse) XXX_Size() int
func (*HostUpdateResponse) XXX_Unmarshal ¶
func (m *HostUpdateResponse) XXX_Unmarshal(b []byte) error
type Ipv4Addr ¶
type Ipv4Addr struct { Ip uint32 `protobuf:"varint,1,opt,name=Ip,proto3" json:"Ip,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"` }
func (*Ipv4Addr) Descriptor ¶
func (*Ipv4Addr) MarshalToSizedBuffer ¶
func (*Ipv4Addr) ProtoMessage ¶
func (*Ipv4Addr) ProtoMessage()
func (*Ipv4Addr) XXX_DiscardUnknown ¶
func (m *Ipv4Addr) XXX_DiscardUnknown()
func (*Ipv4Addr) XXX_Marshal ¶
func (*Ipv4Addr) XXX_Unmarshal ¶
type Ipv6Addr ¶
type Ipv6Addr struct { Hi uint64 `protobuf:"varint,1,opt,name=Hi,proto3" json:"Hi,omitempty"` Lo uint64 `protobuf:"varint,2,opt,name=Lo,proto3" json:"Lo,omitempty"` Port uint32 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"` }
func (*Ipv6Addr) Descriptor ¶
func (*Ipv6Addr) MarshalToSizedBuffer ¶
func (*Ipv6Addr) ProtoMessage ¶
func (*Ipv6Addr) ProtoMessage()
func (*Ipv6Addr) XXX_DiscardUnknown ¶
func (m *Ipv6Addr) XXX_DiscardUnknown()
func (*Ipv6Addr) XXX_Marshal ¶
func (*Ipv6Addr) XXX_Unmarshal ¶
type Message ¶
type Message struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) MarshalToSizedBuffer ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Msg ¶
type Msg struct {
Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"Value,omitempty"`
}
func (*Msg) Descriptor ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_Unmarshal ¶
type PubSubServiceClient ¶
type PubSubServiceClient interface { Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (PubSubService_SubscribeClient, error) Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*UnsubscribeResponse, error) }
PubSubServiceClient is the client API for PubSubService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPubSubServiceClient ¶
func NewPubSubServiceClient(cc grpc.ClientConnInterface) PubSubServiceClient
type PubSubServiceServer ¶
type PubSubServiceServer interface { Publish(context.Context, *PublishRequest) (*PublishResponse, error) Subscribe(*SubscribeRequest, PubSubService_SubscribeServer) error Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error) }
PubSubServiceServer is the server API for PubSubService service. All implementations should embed UnimplementedPubSubServiceServer for forward compatibility
type PubSubService_SubscribeClient ¶
type PubSubService_SubscribeClient interface { Recv() (*Message, error) grpc.ClientStream }
type PubSubService_SubscribeServer ¶
type PubSubService_SubscribeServer interface { Send(*Message) error grpc.ServerStream }
type PublishRequest ¶
type PublishRequest struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*PublishRequest) Descriptor ¶
func (*PublishRequest) Descriptor() ([]byte, []int)
func (*PublishRequest) GetData ¶
func (m *PublishRequest) GetData() []byte
func (*PublishRequest) GetHostname ¶
func (m *PublishRequest) GetHostname() string
func (*PublishRequest) GetTopic ¶
func (m *PublishRequest) GetTopic() string
func (*PublishRequest) Marshal ¶
func (m *PublishRequest) Marshal() (dAtA []byte, err error)
func (*PublishRequest) MarshalToSizedBuffer ¶
func (m *PublishRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublishRequest) ProtoMessage ¶
func (*PublishRequest) ProtoMessage()
func (*PublishRequest) Reset ¶
func (m *PublishRequest) Reset()
func (*PublishRequest) Size ¶
func (m *PublishRequest) Size() (n int)
func (*PublishRequest) String ¶
func (m *PublishRequest) String() string
func (*PublishRequest) Unmarshal ¶
func (m *PublishRequest) Unmarshal(dAtA []byte) error
func (*PublishRequest) XXX_DiscardUnknown ¶
func (m *PublishRequest) XXX_DiscardUnknown()
func (*PublishRequest) XXX_Marshal ¶
func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishRequest) XXX_Merge ¶
func (m *PublishRequest) XXX_Merge(src proto.Message)
func (*PublishRequest) XXX_Size ¶
func (m *PublishRequest) XXX_Size() int
func (*PublishRequest) XXX_Unmarshal ¶
func (m *PublishRequest) XXX_Unmarshal(b []byte) error
type PublishResponse ¶
type PublishResponse struct { }
func (*PublishResponse) Descriptor ¶
func (*PublishResponse) Descriptor() ([]byte, []int)
func (*PublishResponse) Marshal ¶
func (m *PublishResponse) Marshal() (dAtA []byte, err error)
func (*PublishResponse) MarshalToSizedBuffer ¶
func (m *PublishResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PublishResponse) ProtoMessage ¶
func (*PublishResponse) ProtoMessage()
func (*PublishResponse) Reset ¶
func (m *PublishResponse) Reset()
func (*PublishResponse) Size ¶
func (m *PublishResponse) Size() (n int)
func (*PublishResponse) String ¶
func (m *PublishResponse) String() string
func (*PublishResponse) Unmarshal ¶
func (m *PublishResponse) Unmarshal(dAtA []byte) error
func (*PublishResponse) XXX_DiscardUnknown ¶
func (m *PublishResponse) XXX_DiscardUnknown()
func (*PublishResponse) XXX_Marshal ¶
func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishResponse) XXX_Merge ¶
func (m *PublishResponse) XXX_Merge(src proto.Message)
func (*PublishResponse) XXX_Size ¶
func (m *PublishResponse) XXX_Size() int
func (*PublishResponse) XXX_Unmarshal ¶
func (m *PublishResponse) XXX_Unmarshal(b []byte) error
type PunchServiceClient ¶
type PunchServiceClient interface { HostOnline(ctx context.Context, in *HostOnlineRequest, opts ...grpc.CallOption) (*HostOnlineResponse, error) // 客户端向协调服务器查询目标客户端的地址信息 HostQuery(ctx context.Context, in *HostQueryRequest, opts ...grpc.CallOption) (*HostQueryResponse, error) // 客户端向协调服务器更新自己的地址信息 HostUpdate(ctx context.Context, in *HostUpdateRequest, opts ...grpc.CallOption) (*HostUpdateResponse, error) // 通知客户端进行打洞操作 HostPunch(ctx context.Context, in *HostPunchRequest, opts ...grpc.CallOption) (*HostPunchResponse, error) // 通知协调服务器客户端的地址发生变化 HostMoved(ctx context.Context, in *HostMovedRequest, opts ...grpc.CallOption) (*HostMovedResponse, error) }
PunchServiceClient is the client API for PunchService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPunchServiceClient ¶
func NewPunchServiceClient(cc grpc.ClientConnInterface) PunchServiceClient
type PunchServiceServer ¶
type PunchServiceServer interface { HostOnline(context.Context, *HostOnlineRequest) (*HostOnlineResponse, error) // 客户端向协调服务器查询目标客户端的地址信息 HostQuery(context.Context, *HostQueryRequest) (*HostQueryResponse, error) // 客户端向协调服务器更新自己的地址信息 HostUpdate(context.Context, *HostUpdateRequest) (*HostUpdateResponse, error) // 通知客户端进行打洞操作 HostPunch(context.Context, *HostPunchRequest) (*HostPunchResponse, error) // 通知协调服务器客户端的地址发生变化 HostMoved(context.Context, *HostMovedRequest) (*HostMovedResponse, error) }
PunchServiceServer is the server API for PunchService service. All implementations should embed UnimplementedPunchServiceServer for forward compatibility
type SubscribeRequest ¶
type SubscribeRequest struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` }
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetHostname ¶
func (m *SubscribeRequest) GetHostname() string
func (*SubscribeRequest) GetTopic ¶
func (m *SubscribeRequest) GetTopic() string
func (*SubscribeRequest) Marshal ¶
func (m *SubscribeRequest) Marshal() (dAtA []byte, err error)
func (*SubscribeRequest) MarshalToSizedBuffer ¶
func (m *SubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) Size ¶
func (m *SubscribeRequest) Size() (n int)
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) Unmarshal ¶
func (m *SubscribeRequest) Unmarshal(dAtA []byte) error
func (*SubscribeRequest) XXX_DiscardUnknown ¶
func (m *SubscribeRequest) XXX_DiscardUnknown()
func (*SubscribeRequest) XXX_Marshal ¶
func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest) XXX_Merge ¶
func (m *SubscribeRequest) XXX_Merge(src proto.Message)
func (*SubscribeRequest) XXX_Size ¶
func (m *SubscribeRequest) XXX_Size() int
func (*SubscribeRequest) XXX_Unmarshal ¶
func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
type UnimplementedPubSubServiceServer ¶
type UnimplementedPubSubServiceServer struct { }
UnimplementedPubSubServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedPubSubServiceServer) Publish ¶
func (UnimplementedPubSubServiceServer) Publish(context.Context, *PublishRequest) (*PublishResponse, error)
func (UnimplementedPubSubServiceServer) Subscribe ¶
func (UnimplementedPubSubServiceServer) Subscribe(*SubscribeRequest, PubSubService_SubscribeServer) error
func (UnimplementedPubSubServiceServer) Unsubscribe ¶
func (UnimplementedPubSubServiceServer) Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error)
type UnimplementedPunchServiceServer ¶
type UnimplementedPunchServiceServer struct { }
UnimplementedPunchServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedPunchServiceServer) HostMoved ¶
func (UnimplementedPunchServiceServer) HostMoved(context.Context, *HostMovedRequest) (*HostMovedResponse, error)
func (UnimplementedPunchServiceServer) HostOnline ¶
func (UnimplementedPunchServiceServer) HostOnline(context.Context, *HostOnlineRequest) (*HostOnlineResponse, error)
func (UnimplementedPunchServiceServer) HostPunch ¶
func (UnimplementedPunchServiceServer) HostPunch(context.Context, *HostPunchRequest) (*HostPunchResponse, error)
func (UnimplementedPunchServiceServer) HostQuery ¶
func (UnimplementedPunchServiceServer) HostQuery(context.Context, *HostQueryRequest) (*HostQueryResponse, error)
func (UnimplementedPunchServiceServer) HostUpdate ¶
func (UnimplementedPunchServiceServer) HostUpdate(context.Context, *HostUpdateRequest) (*HostUpdateResponse, error)
type UnsafePubSubServiceServer ¶
type UnsafePubSubServiceServer interface {
// contains filtered or unexported methods
}
UnsafePubSubServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PubSubServiceServer will result in compilation errors.
type UnsafePunchServiceServer ¶
type UnsafePunchServiceServer interface {
// contains filtered or unexported methods
}
UnsafePunchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PunchServiceServer will result in compilation errors.
type UnsubscribeRequest ¶
type UnsubscribeRequest struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` }
func (*UnsubscribeRequest) Descriptor ¶
func (*UnsubscribeRequest) Descriptor() ([]byte, []int)
func (*UnsubscribeRequest) GetHostname ¶
func (m *UnsubscribeRequest) GetHostname() string
func (*UnsubscribeRequest) GetTopic ¶
func (m *UnsubscribeRequest) GetTopic() string
func (*UnsubscribeRequest) Marshal ¶
func (m *UnsubscribeRequest) Marshal() (dAtA []byte, err error)
func (*UnsubscribeRequest) MarshalTo ¶
func (m *UnsubscribeRequest) MarshalTo(dAtA []byte) (int, error)
func (*UnsubscribeRequest) MarshalToSizedBuffer ¶
func (m *UnsubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnsubscribeRequest) ProtoMessage ¶
func (*UnsubscribeRequest) ProtoMessage()
func (*UnsubscribeRequest) Reset ¶
func (m *UnsubscribeRequest) Reset()
func (*UnsubscribeRequest) Size ¶
func (m *UnsubscribeRequest) Size() (n int)
func (*UnsubscribeRequest) String ¶
func (m *UnsubscribeRequest) String() string
func (*UnsubscribeRequest) Unmarshal ¶
func (m *UnsubscribeRequest) Unmarshal(dAtA []byte) error
func (*UnsubscribeRequest) XXX_DiscardUnknown ¶
func (m *UnsubscribeRequest) XXX_DiscardUnknown()
func (*UnsubscribeRequest) XXX_Marshal ¶
func (m *UnsubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnsubscribeRequest) XXX_Merge ¶
func (m *UnsubscribeRequest) XXX_Merge(src proto.Message)
func (*UnsubscribeRequest) XXX_Size ¶
func (m *UnsubscribeRequest) XXX_Size() int
func (*UnsubscribeRequest) XXX_Unmarshal ¶
func (m *UnsubscribeRequest) XXX_Unmarshal(b []byte) error
type UnsubscribeResponse ¶
type UnsubscribeResponse struct { }
func (*UnsubscribeResponse) Descriptor ¶
func (*UnsubscribeResponse) Descriptor() ([]byte, []int)
func (*UnsubscribeResponse) Marshal ¶
func (m *UnsubscribeResponse) Marshal() (dAtA []byte, err error)
func (*UnsubscribeResponse) MarshalTo ¶
func (m *UnsubscribeResponse) MarshalTo(dAtA []byte) (int, error)
func (*UnsubscribeResponse) MarshalToSizedBuffer ¶
func (m *UnsubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnsubscribeResponse) ProtoMessage ¶
func (*UnsubscribeResponse) ProtoMessage()
func (*UnsubscribeResponse) Reset ¶
func (m *UnsubscribeResponse) Reset()
func (*UnsubscribeResponse) Size ¶
func (m *UnsubscribeResponse) Size() (n int)
func (*UnsubscribeResponse) String ¶
func (m *UnsubscribeResponse) String() string
func (*UnsubscribeResponse) Unmarshal ¶
func (m *UnsubscribeResponse) Unmarshal(dAtA []byte) error
func (*UnsubscribeResponse) XXX_DiscardUnknown ¶
func (m *UnsubscribeResponse) XXX_DiscardUnknown()
func (*UnsubscribeResponse) XXX_Marshal ¶
func (m *UnsubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnsubscribeResponse) XXX_Merge ¶
func (m *UnsubscribeResponse) XXX_Merge(src proto.Message)
func (*UnsubscribeResponse) XXX_Size ¶
func (m *UnsubscribeResponse) XXX_Size() int
func (*UnsubscribeResponse) XXX_Unmarshal ¶
func (m *UnsubscribeResponse) XXX_Unmarshal(b []byte) error