 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func RegisterCoreServer(s grpc.ServiceRegistrar, srv CoreServer)
- type CoreClient
- type CoreServer
- type HoneyventRequest
- func (*HoneyventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HoneyventRequest) GetDurationMs() int64
- func (x *HoneyventRequest) GetError() string
- func (x *HoneyventRequest) GetFeature() string
- func (x *HoneyventRequest) GetFeatureData() map[string]string
- func (*HoneyventRequest) ProtoMessage()
- func (x *HoneyventRequest) ProtoReflect() protoreflect.Message
- func (x *HoneyventRequest) Reset()
- func (x *HoneyventRequest) String() string
 
- type PingRequest
- type PongReply
- type Reply
- type UnimplementedCoreServer
- type UnsafeCoreServer
Constants ¶
This section is empty.
Variables ¶
var Core_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cdk.v1.Core", HandlerType: (*CoreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Core_Ping_Handler, }, { MethodName: "Honeyvent", Handler: _Core_Honeyvent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1/cdk.proto", }
Core_ServiceDesc is the grpc.ServiceDesc for Core service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_v1_cdk_proto protoreflect.FileDescriptor
    Functions ¶
func RegisterCoreServer ¶
func RegisterCoreServer(s grpc.ServiceRegistrar, srv CoreServer)
Types ¶
type CoreClient ¶
type CoreClient interface {
	// Sends a ping -> pong between server and client
	//    Component -> CDK Server
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PongReply, error)
	// Sends a Honeyvent
	Honeyvent(ctx context.Context, in *HoneyventRequest, opts ...grpc.CallOption) (*Reply, error)
}
    CoreClient is the client API for Core 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 NewCoreClient ¶
func NewCoreClient(cc grpc.ClientConnInterface) CoreClient
type CoreServer ¶
type CoreServer interface {
	// Sends a ping -> pong between server and client
	//    Component -> CDK Server
	Ping(context.Context, *PingRequest) (*PongReply, error)
	// Sends a Honeyvent
	Honeyvent(context.Context, *HoneyventRequest) (*Reply, error)
	// contains filtered or unexported methods
}
    CoreServer is the server API for Core service. All implementations must embed UnimplementedCoreServer for forward compatibility
type HoneyventRequest ¶
type HoneyventRequest struct {
	Feature     string            `protobuf:"bytes,1,opt,name=feature,proto3" json:"feature,omitempty"`
	FeatureData map[string]string `` /* 182-byte string literal not displayed */
	Error       string            `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	DurationMs  int64             `protobuf:"varint,4,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*HoneyventRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*HoneyventRequest) Descriptor() ([]byte, []int)
Deprecated: Use HoneyventRequest.ProtoReflect.Descriptor instead.
func (*HoneyventRequest) GetDurationMs ¶
func (x *HoneyventRequest) GetDurationMs() int64
func (*HoneyventRequest) GetError ¶
func (x *HoneyventRequest) GetError() string
func (*HoneyventRequest) GetFeature ¶
func (x *HoneyventRequest) GetFeature() string
func (*HoneyventRequest) GetFeatureData ¶
func (x *HoneyventRequest) GetFeatureData() map[string]string
func (*HoneyventRequest) ProtoMessage ¶
func (*HoneyventRequest) ProtoMessage()
func (*HoneyventRequest) ProtoReflect ¶
func (x *HoneyventRequest) ProtoReflect() protoreflect.Message
func (*HoneyventRequest) Reset ¶
func (x *HoneyventRequest) Reset()
func (*HoneyventRequest) String ¶
func (x *HoneyventRequest) String() string
type PingRequest ¶
type PingRequest struct {
	ComponentName string `protobuf:"bytes,1,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*PingRequest) Descriptor
            deprecated
            
          
  
    
  
      
      func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) GetComponentName ¶
func (x *PingRequest) GetComponentName() string
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PongReply ¶
type PongReply struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}
    
        
          
            func (*PongReply) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*PongReply) GetMessage ¶
func (*PongReply) ProtoMessage ¶
func (*PongReply) ProtoMessage()
func (*PongReply) ProtoReflect ¶
func (x *PongReply) ProtoReflect() protoreflect.Message
type Reply ¶
type Reply struct {
	// contains filtered or unexported fields
}
    Reply is a generic reply for for rpc definitions that only requires acknowledgement of the remote procedure
        
          
            func (*Reply) Descriptor
            deprecated
            
          
  
    
  
      
      
    func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
type UnimplementedCoreServer ¶
type UnimplementedCoreServer struct {
}
    UnimplementedCoreServer must be embedded to have forward compatible implementations.
func (UnimplementedCoreServer) Honeyvent ¶
func (UnimplementedCoreServer) Honeyvent(context.Context, *HoneyventRequest) (*Reply, error)
func (UnimplementedCoreServer) Ping ¶
func (UnimplementedCoreServer) Ping(context.Context, *PingRequest) (*PongReply, error)
type UnsafeCoreServer ¶
type UnsafeCoreServer interface {
	// contains filtered or unexported methods
}
    UnsafeCoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoreServer will result in compilation errors.