Documentation ¶
Index ¶
- func RegisterWatchAPIServer(s *grpc.Server, srv WatchAPIServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)
- func (m *Action) GetAction() isAction_Action
- func (m *Action) GetActionGetState() *GetState
- func (m *Action) GetActionJoin() *Join
- func (m *Action) GetActionLookup() *Lookup
- func (m *Action) GetActionOutput() *Output
- func (m *Action) GetActionSetState() *SetState
- func (*Action) ProtoMessage()
- func (m *Action) Reset()
- func (m *Action) String() string
- func (m *Action) XXX_DiscardUnknown()
- func (m *Action) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Action) XXX_Merge(src proto.Message)
- func (*Action) XXX_OneofWrappers() []interface{}
- func (m *Action) XXX_Size() int
- func (m *Action) XXX_Unmarshal(b []byte) error
- type Action_ActionGetState
- type Action_ActionJoin
- type Action_ActionLookup
- type Action_ActionOutput
- type Action_ActionSetState
- type GetState
- func (*GetState) Descriptor() ([]byte, []int)
- func (m *GetState) GetMessage() string
- func (m *GetState) GetTopic() string
- func (m *GetState) GetValue() string
- func (*GetState) ProtoMessage()
- func (m *GetState) Reset()
- func (m *GetState) String() string
- func (m *GetState) XXX_DiscardUnknown()
- func (m *GetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetState) XXX_Merge(src proto.Message)
- func (m *GetState) XXX_Size() int
- func (m *GetState) XXX_Unmarshal(b []byte) error
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) GetMessage() string
- func (m *Input) GetTopic() string
- func (m *Input) GetValue() string
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) String() string
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
- type Join
- func (*Join) Descriptor() ([]byte, []int)
- func (m *Join) GetMessage() string
- func (m *Join) GetTopic() string
- func (m *Join) GetValue() string
- func (*Join) ProtoMessage()
- func (m *Join) Reset()
- func (m *Join) String() string
- func (m *Join) XXX_DiscardUnknown()
- func (m *Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Join) XXX_Merge(src proto.Message)
- func (m *Join) XXX_Size() int
- func (m *Join) XXX_Unmarshal(b []byte) error
- type Lookup
- func (*Lookup) Descriptor() ([]byte, []int)
- func (m *Lookup) GetKey() string
- func (m *Lookup) GetMessage() string
- func (m *Lookup) GetTopic() string
- func (m *Lookup) GetValue() string
- func (*Lookup) ProtoMessage()
- func (m *Lookup) Reset()
- func (m *Lookup) String() string
- func (m *Lookup) XXX_DiscardUnknown()
- func (m *Lookup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lookup) XXX_Merge(src proto.Message)
- func (m *Lookup) XXX_Size() int
- func (m *Lookup) XXX_Unmarshal(b []byte) error
- type Operation
- func (*Operation) Descriptor() ([]byte, []int)
- func (m *Operation) GetActions() []*Action
- func (m *Operation) GetEndTime() *timestamp.Timestamp
- func (m *Operation) GetInput() *Input
- func (m *Operation) GetStartTime() *timestamp.Timestamp
- func (*Operation) ProtoMessage()
- func (m *Operation) Reset()
- func (m *Operation) String() string
- func (m *Operation) XXX_DiscardUnknown()
- func (m *Operation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Operation) XXX_Merge(src proto.Message)
- func (m *Operation) XXX_Size() int
- func (m *Operation) XXX_Unmarshal(b []byte) error
- type Output
- func (*Output) Descriptor() ([]byte, []int)
- func (m *Output) GetKey() string
- func (m *Output) GetMessage() string
- func (m *Output) GetTopic() string
- func (m *Output) GetValue() string
- func (*Output) ProtoMessage()
- func (m *Output) Reset()
- func (m *Output) String() string
- func (m *Output) XXX_DiscardUnknown()
- func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Output) XXX_Merge(src proto.Message)
- func (m *Output) XXX_Size() int
- func (m *Output) XXX_Unmarshal(b []byte) error
- type ProcessorRequest
- func (*ProcessorRequest) Descriptor() ([]byte, []int)
- func (m *ProcessorRequest) GetComponent() string
- func (m *ProcessorRequest) GetKey() string
- func (m *ProcessorRequest) GetProcessor() string
- func (*ProcessorRequest) ProtoMessage()
- func (m *ProcessorRequest) Reset()
- func (m *ProcessorRequest) String() string
- func (m *ProcessorRequest) XXX_DiscardUnknown()
- func (m *ProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessorRequest) XXX_Merge(src proto.Message)
- func (m *ProcessorRequest) XXX_Size() int
- func (m *ProcessorRequest) XXX_Unmarshal(b []byte) error
- type ProcessorResponse
- func (*ProcessorResponse) Descriptor() ([]byte, []int)
- func (m *ProcessorResponse) GetOperation() *Operation
- func (*ProcessorResponse) ProtoMessage()
- func (m *ProcessorResponse) Reset()
- func (m *ProcessorResponse) String() string
- func (m *ProcessorResponse) XXX_DiscardUnknown()
- func (m *ProcessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessorResponse) XXX_Merge(src proto.Message)
- func (m *ProcessorResponse) XXX_Size() int
- func (m *ProcessorResponse) XXX_Unmarshal(b []byte) error
- type SetState
- func (*SetState) Descriptor() ([]byte, []int)
- func (m *SetState) GetMessage() string
- func (m *SetState) GetTopic() string
- func (m *SetState) GetValue() string
- func (*SetState) ProtoMessage()
- func (m *SetState) Reset()
- func (m *SetState) String() string
- func (m *SetState) XXX_DiscardUnknown()
- func (m *SetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetState) XXX_Merge(src proto.Message)
- func (m *SetState) XXX_Size() int
- func (m *SetState) XXX_Unmarshal(b []byte) error
- type WatchAPIClient
- type WatchAPIServer
- type WatchAPI_ProcessorClient
- type WatchAPI_ProcessorServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWatchAPIServer ¶
func RegisterWatchAPIServer(s *grpc.Server, srv WatchAPIServer)
Types ¶
type Action ¶
type Action struct { // Types that are valid to be assigned to Action: // *Action_ActionJoin // *Action_ActionLookup // *Action_ActionGetState // *Action_ActionSetState // *Action_ActionOutput Action isAction_Action `protobuf_oneof:"action"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Action is a streaming action a processor takes during an operation.
func (*Action) Descriptor ¶
func (*Action) GetActionGetState ¶
func (*Action) GetActionJoin ¶
func (*Action) GetActionLookup ¶
func (*Action) GetActionOutput ¶
func (*Action) GetActionSetState ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) XXX_DiscardUnknown ¶
func (m *Action) XXX_DiscardUnknown()
func (*Action) XXX_Marshal ¶
func (*Action) XXX_OneofWrappers ¶
func (*Action) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Action) XXX_Unmarshal ¶
type Action_ActionGetState ¶
type Action_ActionGetState struct {
ActionGetState *GetState `protobuf:"bytes,3,opt,name=action_get_state,json=actionGetState,proto3,oneof"`
}
type Action_ActionJoin ¶
type Action_ActionJoin struct {
ActionJoin *Join `protobuf:"bytes,1,opt,name=action_join,json=actionJoin,proto3,oneof"`
}
type Action_ActionLookup ¶
type Action_ActionLookup struct {
ActionLookup *Lookup `protobuf:"bytes,2,opt,name=action_lookup,json=actionLookup,proto3,oneof"`
}
type Action_ActionOutput ¶
type Action_ActionOutput struct {
ActionOutput *Output `protobuf:"bytes,5,opt,name=action_output,json=actionOutput,proto3,oneof"`
}
type Action_ActionSetState ¶
type Action_ActionSetState struct {
ActionSetState *SetState `protobuf:"bytes,4,opt,name=action_set_state,json=actionSetState,proto3,oneof"`
}
type GetState ¶
type GetState struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetState is a persistence action.
func (*GetState) Descriptor ¶
func (*GetState) GetMessage ¶
func (*GetState) ProtoMessage ¶
func (*GetState) ProtoMessage()
func (*GetState) XXX_DiscardUnknown ¶
func (m *GetState) XXX_DiscardUnknown()
func (*GetState) XXX_Marshal ¶
func (*GetState) XXX_Unmarshal ¶
type Input ¶
type Input struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Input is the input message that triggered the processor.
func (*Input) Descriptor ¶
func (*Input) GetMessage ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
type Join ¶
type Join struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Join is a join action.
func (*Join) Descriptor ¶
func (*Join) GetMessage ¶
func (*Join) ProtoMessage ¶
func (*Join) ProtoMessage()
func (*Join) XXX_DiscardUnknown ¶
func (m *Join) XXX_DiscardUnknown()
func (*Join) XXX_Unmarshal ¶
type Lookup ¶
type Lookup struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Lookup is a lookup action.
func (*Lookup) Descriptor ¶
func (*Lookup) GetMessage ¶
func (*Lookup) ProtoMessage ¶
func (*Lookup) ProtoMessage()
func (*Lookup) XXX_DiscardUnknown ¶
func (m *Lookup) XXX_DiscardUnknown()
func (*Lookup) XXX_Marshal ¶
func (*Lookup) XXX_Unmarshal ¶
type Operation ¶
type Operation struct { StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Input *Input `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Actions []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Operation is a processor operation trigged by an input.
func (*Operation) Descriptor ¶
func (*Operation) GetActions ¶
func (*Operation) GetEndTime ¶
func (*Operation) GetStartTime ¶
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) XXX_DiscardUnknown ¶
func (m *Operation) XXX_DiscardUnknown()
func (*Operation) XXX_Marshal ¶
func (*Operation) XXX_Unmarshal ¶
type Output ¶
type Output struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Output is an output action.
func (*Output) Descriptor ¶
func (*Output) GetMessage ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) XXX_DiscardUnknown ¶
func (m *Output) XXX_DiscardUnknown()
func (*Output) XXX_Marshal ¶
func (*Output) XXX_Unmarshal ¶
type ProcessorRequest ¶
type ProcessorRequest struct { Component string `protobuf:"bytes,1,opt,name=component,proto3" json:"component,omitempty"` Processor string `protobuf:"bytes,2,opt,name=processor,proto3" json:"processor,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProcessorRequest) Descriptor ¶
func (*ProcessorRequest) Descriptor() ([]byte, []int)
func (*ProcessorRequest) GetComponent ¶
func (m *ProcessorRequest) GetComponent() string
func (*ProcessorRequest) GetKey ¶
func (m *ProcessorRequest) GetKey() string
func (*ProcessorRequest) GetProcessor ¶
func (m *ProcessorRequest) GetProcessor() string
func (*ProcessorRequest) ProtoMessage ¶
func (*ProcessorRequest) ProtoMessage()
func (*ProcessorRequest) Reset ¶
func (m *ProcessorRequest) Reset()
func (*ProcessorRequest) String ¶
func (m *ProcessorRequest) String() string
func (*ProcessorRequest) XXX_DiscardUnknown ¶
func (m *ProcessorRequest) XXX_DiscardUnknown()
func (*ProcessorRequest) XXX_Marshal ¶
func (m *ProcessorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProcessorRequest) XXX_Merge ¶
func (m *ProcessorRequest) XXX_Merge(src proto.Message)
func (*ProcessorRequest) XXX_Size ¶
func (m *ProcessorRequest) XXX_Size() int
func (*ProcessorRequest) XXX_Unmarshal ¶
func (m *ProcessorRequest) XXX_Unmarshal(b []byte) error
type ProcessorResponse ¶
type ProcessorResponse struct { Operation *Operation `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProcessorResponse) Descriptor ¶
func (*ProcessorResponse) Descriptor() ([]byte, []int)
func (*ProcessorResponse) GetOperation ¶
func (m *ProcessorResponse) GetOperation() *Operation
func (*ProcessorResponse) ProtoMessage ¶
func (*ProcessorResponse) ProtoMessage()
func (*ProcessorResponse) Reset ¶
func (m *ProcessorResponse) Reset()
func (*ProcessorResponse) String ¶
func (m *ProcessorResponse) String() string
func (*ProcessorResponse) XXX_DiscardUnknown ¶
func (m *ProcessorResponse) XXX_DiscardUnknown()
func (*ProcessorResponse) XXX_Marshal ¶
func (m *ProcessorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProcessorResponse) XXX_Merge ¶
func (m *ProcessorResponse) XXX_Merge(src proto.Message)
func (*ProcessorResponse) XXX_Size ¶
func (m *ProcessorResponse) XXX_Size() int
func (*ProcessorResponse) XXX_Unmarshal ¶
func (m *ProcessorResponse) XXX_Unmarshal(b []byte) error
type SetState ¶
type SetState struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SetState is a persistence action.
func (*SetState) Descriptor ¶
func (*SetState) GetMessage ¶
func (*SetState) ProtoMessage ¶
func (*SetState) ProtoMessage()
func (*SetState) XXX_DiscardUnknown ¶
func (m *SetState) XXX_DiscardUnknown()
func (*SetState) XXX_Marshal ¶
func (*SetState) XXX_Unmarshal ¶
type WatchAPIClient ¶
type WatchAPIClient interface { // Processor will return operations from a processor based on key. Processor(ctx context.Context, in *ProcessorRequest, opts ...grpc.CallOption) (WatchAPI_ProcessorClient, error) }
WatchAPIClient is the client API for WatchAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWatchAPIClient ¶
func NewWatchAPIClient(cc *grpc.ClientConn) WatchAPIClient
type WatchAPIServer ¶
type WatchAPIServer interface { // Processor will return operations from a processor based on key. Processor(*ProcessorRequest, WatchAPI_ProcessorServer) error }
WatchAPIServer is the server API for WatchAPI service.
type WatchAPI_ProcessorClient ¶
type WatchAPI_ProcessorClient interface { Recv() (*ProcessorResponse, error) grpc.ClientStream }
type WatchAPI_ProcessorServer ¶
type WatchAPI_ProcessorServer interface { Send(*ProcessorResponse) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.