Documentation ¶
Index ¶
- func RegisterEventsServer(s *grpc.Server, srv EventsServer)
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)
- func (m *Endpoint) GetAddress() string
- func (*Endpoint) ProtoMessage()
- func (m *Endpoint) Reset()
- func (m *Endpoint) String() string
- func (m *Endpoint) XXX_DiscardUnknown()
- func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Endpoint) XXX_Merge(src proto.Message)
- func (m *Endpoint) XXX_Size() int
- func (m *Endpoint) XXX_Unmarshal(b []byte) error
- type EndpointRequest
- func (*EndpointRequest) Descriptor() ([]byte, []int)
- func (*EndpointRequest) ProtoMessage()
- func (m *EndpointRequest) Reset()
- func (m *EndpointRequest) String() string
- func (m *EndpointRequest) XXX_DiscardUnknown()
- func (m *EndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EndpointRequest) XXX_Merge(src proto.Message)
- func (m *EndpointRequest) XXX_Size() int
- func (m *EndpointRequest) XXX_Unmarshal(b []byte) error
- type EndpointResponse
- func (*EndpointResponse) Descriptor() ([]byte, []int)
- func (m *EndpointResponse) GetEndpoint() *Endpoint
- func (*EndpointResponse) ProtoMessage()
- func (m *EndpointResponse) Reset()
- func (m *EndpointResponse) String() string
- func (m *EndpointResponse) XXX_DiscardUnknown()
- func (m *EndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EndpointResponse) XXX_Merge(src proto.Message)
- func (m *EndpointResponse) XXX_Size() int
- func (m *EndpointResponse) XXX_Unmarshal(b []byte) error
- type EventsClient
- type EventsServer
- type Events_SubscribeClient
- type Events_SubscribeServer
- type InfoRequest
- func (*InfoRequest) Descriptor() ([]byte, []int)
- func (*InfoRequest) ProtoMessage()
- func (m *InfoRequest) Reset()
- func (m *InfoRequest) String() string
- func (m *InfoRequest) XXX_DiscardUnknown()
- func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InfoRequest) XXX_Merge(src proto.Message)
- func (m *InfoRequest) XXX_Size() int
- func (m *InfoRequest) XXX_Unmarshal(b []byte) error
- type InfoResponse
- func (*InfoResponse) Descriptor() ([]byte, []int)
- func (m *InfoResponse) GetID() string
- func (*InfoResponse) ProtoMessage()
- func (m *InfoResponse) Reset()
- func (m *InfoResponse) String() string
- func (m *InfoResponse) XXX_DiscardUnknown()
- func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InfoResponse) XXX_Merge(src proto.Message)
- func (m *InfoResponse) XXX_Size() int
- func (m *InfoResponse) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetData() *types.Any
- func (m *Message) GetSubject() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetSubject() string
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEventsServer ¶
func RegisterEventsServer(s *grpc.Server, srv EventsServer)
Types ¶
type Endpoint ¶
type Endpoint struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Endpoint) Descriptor ¶
func (*Endpoint) GetAddress ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) XXX_DiscardUnknown ¶
func (m *Endpoint) XXX_DiscardUnknown()
func (*Endpoint) XXX_Marshal ¶
func (*Endpoint) XXX_Unmarshal ¶
type EndpointRequest ¶
type EndpointRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EndpointRequest) Descriptor ¶
func (*EndpointRequest) Descriptor() ([]byte, []int)
func (*EndpointRequest) ProtoMessage ¶
func (*EndpointRequest) ProtoMessage()
func (*EndpointRequest) Reset ¶
func (m *EndpointRequest) Reset()
func (*EndpointRequest) String ¶
func (m *EndpointRequest) String() string
func (*EndpointRequest) XXX_DiscardUnknown ¶
func (m *EndpointRequest) XXX_DiscardUnknown()
func (*EndpointRequest) XXX_Marshal ¶
func (m *EndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EndpointRequest) XXX_Merge ¶
func (dst *EndpointRequest) XXX_Merge(src proto.Message)
func (*EndpointRequest) XXX_Size ¶
func (m *EndpointRequest) XXX_Size() int
func (*EndpointRequest) XXX_Unmarshal ¶
func (m *EndpointRequest) XXX_Unmarshal(b []byte) error
type EndpointResponse ¶
type EndpointResponse struct { Endpoint *Endpoint `protobuf:"bytes,1,opt,name=endpoint" json:"endpoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EndpointResponse) Descriptor ¶
func (*EndpointResponse) Descriptor() ([]byte, []int)
func (*EndpointResponse) GetEndpoint ¶
func (m *EndpointResponse) GetEndpoint() *Endpoint
func (*EndpointResponse) ProtoMessage ¶
func (*EndpointResponse) ProtoMessage()
func (*EndpointResponse) Reset ¶
func (m *EndpointResponse) Reset()
func (*EndpointResponse) String ¶
func (m *EndpointResponse) String() string
func (*EndpointResponse) XXX_DiscardUnknown ¶
func (m *EndpointResponse) XXX_DiscardUnknown()
func (*EndpointResponse) XXX_Marshal ¶
func (m *EndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EndpointResponse) XXX_Merge ¶
func (dst *EndpointResponse) XXX_Merge(src proto.Message)
func (*EndpointResponse) XXX_Size ¶
func (m *EndpointResponse) XXX_Size() int
func (*EndpointResponse) XXX_Unmarshal ¶
func (m *EndpointResponse) XXX_Unmarshal(b []byte) error
type EventsClient ¶
type EventsClient interface { Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) Endpoint(ctx context.Context, in *EndpointRequest, opts ...grpc.CallOption) (*EndpointResponse, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (Events_SubscribeClient, error) Publish(ctx context.Context, in *Message, opts ...grpc.CallOption) (*types.Empty, error) }
EventsClient is the client API for Events service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEventsClient ¶
func NewEventsClient(cc *grpc.ClientConn) EventsClient
type EventsServer ¶
type EventsServer interface { Info(context.Context, *InfoRequest) (*InfoResponse, error) Endpoint(context.Context, *EndpointRequest) (*EndpointResponse, error) Subscribe(*SubscribeRequest, Events_SubscribeServer) error Publish(context.Context, *Message) (*types.Empty, error) }
EventsServer is the server API for Events service.
type Events_SubscribeClient ¶
type Events_SubscribeClient interface { Recv() (*Message, error) grpc.ClientStream }
type Events_SubscribeServer ¶
type Events_SubscribeServer interface { Send(*Message) error grpc.ServerStream }
type InfoRequest ¶
type InfoRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InfoRequest) Descriptor ¶
func (*InfoRequest) Descriptor() ([]byte, []int)
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) Reset ¶
func (m *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (m *InfoRequest) String() string
func (*InfoRequest) XXX_DiscardUnknown ¶
func (m *InfoRequest) XXX_DiscardUnknown()
func (*InfoRequest) XXX_Marshal ¶
func (m *InfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfoRequest) XXX_Merge ¶
func (dst *InfoRequest) XXX_Merge(src proto.Message)
func (*InfoRequest) XXX_Size ¶
func (m *InfoRequest) XXX_Size() int
func (*InfoRequest) XXX_Unmarshal ¶
func (m *InfoRequest) XXX_Unmarshal(b []byte) error
type InfoResponse ¶
type InfoResponse struct { ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InfoResponse) Descriptor ¶
func (*InfoResponse) Descriptor() ([]byte, []int)
func (*InfoResponse) GetID ¶
func (m *InfoResponse) GetID() string
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) Reset ¶
func (m *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (m *InfoResponse) String() string
func (*InfoResponse) XXX_DiscardUnknown ¶
func (m *InfoResponse) XXX_DiscardUnknown()
func (*InfoResponse) XXX_Marshal ¶
func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfoResponse) XXX_Merge ¶
func (dst *InfoResponse) XXX_Merge(src proto.Message)
func (*InfoResponse) XXX_Size ¶
func (m *InfoResponse) XXX_Size() int
func (*InfoResponse) XXX_Unmarshal ¶
func (m *InfoResponse) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Data *types.Any `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetSubject ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type SubscribeRequest ¶
type SubscribeRequest struct { Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetSubject ¶
func (m *SubscribeRequest) GetSubject() string
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
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 (dst *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
Click to show internal directories.
Click to hide internal directories.