Documentation ¶
Index ¶
- func RegisterIntentRegistryServer(s *grpc.Server, srv IntentRegistryServer)
- type AddIntentReply
- func (*AddIntentReply) Descriptor() ([]byte, []int)
- func (m *AddIntentReply) GetIntent() *Intent
- func (*AddIntentReply) ProtoMessage()
- func (m *AddIntentReply) Reset()
- func (m *AddIntentReply) String() string
- func (m *AddIntentReply) XXX_DiscardUnknown()
- func (m *AddIntentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddIntentReply) XXX_Merge(src proto.Message)
- func (m *AddIntentReply) XXX_Size() int
- func (m *AddIntentReply) XXX_Unmarshal(b []byte) error
- type AddIntentRequest
- func (*AddIntentRequest) Descriptor() ([]byte, []int)
- func (m *AddIntentRequest) GetIntent() *Intent
- func (*AddIntentRequest) ProtoMessage()
- func (m *AddIntentRequest) Reset()
- func (m *AddIntentRequest) String() string
- func (m *AddIntentRequest) XXX_DiscardUnknown()
- func (m *AddIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddIntentRequest) XXX_Merge(src proto.Message)
- func (m *AddIntentRequest) XXX_Size() int
- func (m *AddIntentRequest) XXX_Unmarshal(b []byte) error
- type DisableIntentReply
- func (*DisableIntentReply) Descriptor() ([]byte, []int)
- func (m *DisableIntentReply) GetId() string
- func (*DisableIntentReply) ProtoMessage()
- func (m *DisableIntentReply) Reset()
- func (m *DisableIntentReply) String() string
- func (m *DisableIntentReply) XXX_DiscardUnknown()
- func (m *DisableIntentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DisableIntentReply) XXX_Merge(src proto.Message)
- func (m *DisableIntentReply) XXX_Size() int
- func (m *DisableIntentReply) XXX_Unmarshal(b []byte) error
- type DisableIntentRequest
- func (*DisableIntentRequest) Descriptor() ([]byte, []int)
- func (m *DisableIntentRequest) GetId() string
- func (*DisableIntentRequest) ProtoMessage()
- func (m *DisableIntentRequest) Reset()
- func (m *DisableIntentRequest) String() string
- func (m *DisableIntentRequest) XXX_DiscardUnknown()
- func (m *DisableIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DisableIntentRequest) XXX_Merge(src proto.Message)
- func (m *DisableIntentRequest) XXX_Size() int
- func (m *DisableIntentRequest) XXX_Unmarshal(b []byte) error
- type Intent
- func (*Intent) Descriptor() ([]byte, []int)
- func (m *Intent) GetCreated() int32
- func (m *Intent) GetEnabled() bool
- func (m *Intent) GetEndpoint() string
- func (m *Intent) GetHelp() string
- func (m *Intent) GetId() string
- func (m *Intent) GetMention() bool
- func (m *Intent) GetName() string
- func (m *Intent) GetRegex() string
- func (m *Intent) GetResponse() string
- func (m *Intent) GetServerId() string
- func (*Intent) ProtoMessage()
- func (m *Intent) Reset()
- func (m *Intent) String() string
- func (m *Intent) XXX_DiscardUnknown()
- func (m *Intent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Intent) XXX_Merge(src proto.Message)
- func (m *Intent) XXX_Size() int
- func (m *Intent) XXX_Unmarshal(b []byte) error
- type IntentRegistryClient
- type IntentRegistryServer
- type IntentRegistry_QueryIntentsClient
- type IntentRegistry_QueryIntentsServer
- type QueryIntentsRequest
- func (*QueryIntentsRequest) Descriptor() ([]byte, []int)
- func (m *QueryIntentsRequest) GetServerId() string
- func (*QueryIntentsRequest) ProtoMessage()
- func (m *QueryIntentsRequest) Reset()
- func (m *QueryIntentsRequest) String() string
- func (m *QueryIntentsRequest) XXX_DiscardUnknown()
- func (m *QueryIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *QueryIntentsRequest) XXX_Merge(src proto.Message)
- func (m *QueryIntentsRequest) XXX_Size() int
- func (m *QueryIntentsRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterIntentRegistryServer ¶
func RegisterIntentRegistryServer(s *grpc.Server, srv IntentRegistryServer)
Types ¶
type AddIntentReply ¶
type AddIntentReply struct { Intent *Intent `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddIntentReply) Descriptor ¶
func (*AddIntentReply) Descriptor() ([]byte, []int)
func (*AddIntentReply) GetIntent ¶
func (m *AddIntentReply) GetIntent() *Intent
func (*AddIntentReply) ProtoMessage ¶
func (*AddIntentReply) ProtoMessage()
func (*AddIntentReply) Reset ¶
func (m *AddIntentReply) Reset()
func (*AddIntentReply) String ¶
func (m *AddIntentReply) String() string
func (*AddIntentReply) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *AddIntentReply) XXX_DiscardUnknown()
func (*AddIntentReply) XXX_Marshal ¶ added in v1.6.0
func (m *AddIntentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddIntentReply) XXX_Merge ¶ added in v1.6.0
func (dst *AddIntentReply) XXX_Merge(src proto.Message)
func (*AddIntentReply) XXX_Size ¶ added in v1.6.0
func (m *AddIntentReply) XXX_Size() int
func (*AddIntentReply) XXX_Unmarshal ¶ added in v1.6.0
func (m *AddIntentReply) XXX_Unmarshal(b []byte) error
type AddIntentRequest ¶
type AddIntentRequest struct { Intent *Intent `protobuf:"bytes,1,opt,name=intent,proto3" json:"intent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddIntentRequest) Descriptor ¶
func (*AddIntentRequest) Descriptor() ([]byte, []int)
func (*AddIntentRequest) GetIntent ¶
func (m *AddIntentRequest) GetIntent() *Intent
func (*AddIntentRequest) ProtoMessage ¶
func (*AddIntentRequest) ProtoMessage()
func (*AddIntentRequest) Reset ¶
func (m *AddIntentRequest) Reset()
func (*AddIntentRequest) String ¶
func (m *AddIntentRequest) String() string
func (*AddIntentRequest) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *AddIntentRequest) XXX_DiscardUnknown()
func (*AddIntentRequest) XXX_Marshal ¶ added in v1.6.0
func (m *AddIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddIntentRequest) XXX_Merge ¶ added in v1.6.0
func (dst *AddIntentRequest) XXX_Merge(src proto.Message)
func (*AddIntentRequest) XXX_Size ¶ added in v1.6.0
func (m *AddIntentRequest) XXX_Size() int
func (*AddIntentRequest) XXX_Unmarshal ¶ added in v1.6.0
func (m *AddIntentRequest) XXX_Unmarshal(b []byte) error
type DisableIntentReply ¶
type DisableIntentReply 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 (*DisableIntentReply) Descriptor ¶
func (*DisableIntentReply) Descriptor() ([]byte, []int)
func (*DisableIntentReply) GetId ¶
func (m *DisableIntentReply) GetId() string
func (*DisableIntentReply) ProtoMessage ¶
func (*DisableIntentReply) ProtoMessage()
func (*DisableIntentReply) Reset ¶
func (m *DisableIntentReply) Reset()
func (*DisableIntentReply) String ¶
func (m *DisableIntentReply) String() string
func (*DisableIntentReply) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *DisableIntentReply) XXX_DiscardUnknown()
func (*DisableIntentReply) XXX_Marshal ¶ added in v1.6.0
func (m *DisableIntentReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisableIntentReply) XXX_Merge ¶ added in v1.6.0
func (dst *DisableIntentReply) XXX_Merge(src proto.Message)
func (*DisableIntentReply) XXX_Size ¶ added in v1.6.0
func (m *DisableIntentReply) XXX_Size() int
func (*DisableIntentReply) XXX_Unmarshal ¶ added in v1.6.0
func (m *DisableIntentReply) XXX_Unmarshal(b []byte) error
type DisableIntentRequest ¶
type DisableIntentRequest 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 (*DisableIntentRequest) Descriptor ¶
func (*DisableIntentRequest) Descriptor() ([]byte, []int)
func (*DisableIntentRequest) GetId ¶
func (m *DisableIntentRequest) GetId() string
func (*DisableIntentRequest) ProtoMessage ¶
func (*DisableIntentRequest) ProtoMessage()
func (*DisableIntentRequest) Reset ¶
func (m *DisableIntentRequest) Reset()
func (*DisableIntentRequest) String ¶
func (m *DisableIntentRequest) String() string
func (*DisableIntentRequest) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *DisableIntentRequest) XXX_DiscardUnknown()
func (*DisableIntentRequest) XXX_Marshal ¶ added in v1.6.0
func (m *DisableIntentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DisableIntentRequest) XXX_Merge ¶ added in v1.6.0
func (dst *DisableIntentRequest) XXX_Merge(src proto.Message)
func (*DisableIntentRequest) XXX_Size ¶ added in v1.6.0
func (m *DisableIntentRequest) XXX_Size() int
func (*DisableIntentRequest) XXX_Unmarshal ¶ added in v1.6.0
func (m *DisableIntentRequest) XXX_Unmarshal(b []byte) error
type Intent ¶
type Intent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ServerId string `protobuf:"bytes,2,opt,name=serverId,proto3" json:"serverId,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Regex string `protobuf:"bytes,4,opt,name=regex,proto3" json:"regex,omitempty"` Mention bool `protobuf:"varint,5,opt,name=mention,proto3" json:"mention,omitempty"` Response string `protobuf:"bytes,6,opt,name=response,proto3" json:"response,omitempty"` Endpoint string `protobuf:"bytes,7,opt,name=endpoint,proto3" json:"endpoint,omitempty"` Help string `protobuf:"bytes,8,opt,name=help,proto3" json:"help,omitempty"` Enabled bool `protobuf:"varint,9,opt,name=enabled,proto3" json:"enabled,omitempty"` Created int32 `protobuf:"varint,10,opt,name=created,proto3" json:"created,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Intent) Descriptor ¶
func (*Intent) GetCreated ¶
func (*Intent) GetEnabled ¶
func (*Intent) GetEndpoint ¶
func (*Intent) GetMention ¶
func (*Intent) GetResponse ¶
func (*Intent) GetServerId ¶
func (*Intent) ProtoMessage ¶
func (*Intent) ProtoMessage()
func (*Intent) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *Intent) XXX_DiscardUnknown()
func (*Intent) XXX_Marshal ¶ added in v1.6.0
func (*Intent) XXX_Unmarshal ¶ added in v1.6.0
type IntentRegistryClient ¶
type IntentRegistryClient interface { AddIntent(ctx context.Context, in *AddIntentRequest, opts ...grpc.CallOption) (*AddIntentReply, error) DisableIntent(ctx context.Context, in *DisableIntentRequest, opts ...grpc.CallOption) (*DisableIntentReply, error) QueryIntents(ctx context.Context, in *QueryIntentsRequest, opts ...grpc.CallOption) (IntentRegistry_QueryIntentsClient, error) }
IntentRegistryClient is the client API for IntentRegistry service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIntentRegistryClient ¶
func NewIntentRegistryClient(cc *grpc.ClientConn) IntentRegistryClient
type IntentRegistryServer ¶
type IntentRegistryServer interface { AddIntent(context.Context, *AddIntentRequest) (*AddIntentReply, error) DisableIntent(context.Context, *DisableIntentRequest) (*DisableIntentReply, error) QueryIntents(*QueryIntentsRequest, IntentRegistry_QueryIntentsServer) error }
IntentRegistryServer is the server API for IntentRegistry service.
type IntentRegistry_QueryIntentsClient ¶
type IntentRegistry_QueryIntentsClient interface { Recv() (*Intent, error) grpc.ClientStream }
type IntentRegistry_QueryIntentsServer ¶
type IntentRegistry_QueryIntentsServer interface { Send(*Intent) error grpc.ServerStream }
type QueryIntentsRequest ¶
type QueryIntentsRequest struct { ServerId string `protobuf:"bytes,1,opt,name=serverId,proto3" json:"serverId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryIntentsRequest) Descriptor ¶
func (*QueryIntentsRequest) Descriptor() ([]byte, []int)
func (*QueryIntentsRequest) GetServerId ¶
func (m *QueryIntentsRequest) GetServerId() string
func (*QueryIntentsRequest) ProtoMessage ¶
func (*QueryIntentsRequest) ProtoMessage()
func (*QueryIntentsRequest) Reset ¶
func (m *QueryIntentsRequest) Reset()
func (*QueryIntentsRequest) String ¶
func (m *QueryIntentsRequest) String() string
func (*QueryIntentsRequest) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *QueryIntentsRequest) XXX_DiscardUnknown()
func (*QueryIntentsRequest) XXX_Marshal ¶ added in v1.6.0
func (m *QueryIntentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIntentsRequest) XXX_Merge ¶ added in v1.6.0
func (dst *QueryIntentsRequest) XXX_Merge(src proto.Message)
func (*QueryIntentsRequest) XXX_Size ¶ added in v1.6.0
func (m *QueryIntentsRequest) XXX_Size() int
func (*QueryIntentsRequest) XXX_Unmarshal ¶ added in v1.6.0
func (m *QueryIntentsRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.