CreateInputDefinitionMessage now contains the definition and not just the name.

This commit is contained in:
Michael Baird 2017-06-14 14:12:07 -05:00
parent 2d3f244a7b
commit 1db97b9312
5 changed files with 137 additions and 85 deletions

View file

@ -108,11 +108,13 @@ var NopBroadcastReceiver = &nopBroadcastReceiver{}
// Broadcast message types.
const (
MessageTypeCreateSlice = 1
MessageTypeCreateIndex = 2
MessageTypeDeleteIndex = 3
MessageTypeCreateFrame = 4
MessageTypeDeleteFrame = 5
MessageTypeCreateSlice = 1
MessageTypeCreateIndex = 2
MessageTypeDeleteIndex = 3
MessageTypeCreateFrame = 4
MessageTypeDeleteFrame = 5
MessageTypeCreateInputDefinition = 6
MessageTypeDeleteInputDefinition = 7
)
// MarshalMessage encodes the protobuf message into a byte slice.
@ -129,6 +131,8 @@ func MarshalMessage(m proto.Message) ([]byte, error) {
typ = MessageTypeCreateFrame
case *internal.DeleteFrameMessage:
typ = MessageTypeDeleteFrame
case *internal.CreateInputDefinitionMessage:
typ = MessageTypeCreateInputDefinition
default:
return nil, fmt.Errorf("message type not implemented for marshalling: %s", reflect.TypeOf(obj))
}
@ -155,6 +159,8 @@ func UnmarshalMessage(buf []byte) (proto.Message, error) {
m = &internal.CreateFrameMessage{}
case MessageTypeDeleteFrame:
m = &internal.DeleteFrameMessage{}
case MessageTypeCreateInputDefinition:
m = &internal.CreateInputDefinitionMessage{}
default:
return nil, fmt.Errorf("invalid message type: %d", typ)
}

View file

@ -1505,7 +1505,7 @@ func (h *Handler) handlePostDefinition(w http.ResponseWriter, r *http.Request) {
inputDefName := mux.Vars(r)["input-definition"]
// Decode request.
var req postInputDefinition
var req internal.InputDefinition
err := json.NewDecoder(r.Body).Decode(&req)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
@ -1519,20 +1519,14 @@ func (h *Handler) handlePostDefinition(w http.ResponseWriter, r *http.Request) {
return
}
// Create InputDefinition.
_, err = index.CreateInputDefinition(inputDefName, req.Frames, req.Fields)
if err == ErrInputDefinitionExists {
http.Error(w, err.Error(), http.StatusConflict)
return
} else if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
req.Name = inputDefName
fmt.Println(req.String())
err = h.Broadcaster.SendSync(
&internal.CreateInputDefinitionMessage{
Index: indexName,
InputDefinition: inputDefName,
Index: indexName,
Name: inputDefName,
Definition: &req,
})
if err != nil {
h.logger().Printf("problem sending CreateInputDefinition message: %s", err)
@ -1585,11 +1579,6 @@ func (h *Handler) handleDeleteDefinition(w http.ResponseWriter, r *http.Request)
}
}
type postInputDefinition struct {
Frames []InputFrame `json:"frames,omitempty"`
Fields []Field `json:"fields,omitempty"`
}
type InputFrame struct {
Name string `json:"name,omitempty"`
Options FrameOptions `json:"options,omitempty"`

View file

@ -1087,7 +1087,7 @@ func TestHandler_CreateInputDefinition(t *testing.T) {
"cacheType": "ranked"
}
}],
"fields": [
"inputdefinitionfields": [
{
"name": "id",
"primaryKey": true

View file

@ -309,8 +309,9 @@ func (m *Action) GetValueMap() map[string]uint64 {
}
type CreateInputDefinitionMessage struct {
Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"`
InputDefinition string `protobuf:"bytes,2,opt,name=InputDefinition,proto3" json:"InputDefinition,omitempty"`
Index string `protobuf:"bytes,1,opt,name=Index,proto3" json:"Index,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
Definition *InputDefinition `protobuf:"bytes,3,opt,name=Definition" json:"Definition,omitempty"`
}
func (m *CreateInputDefinitionMessage) Reset() { *m = CreateInputDefinitionMessage{} }
@ -320,6 +321,13 @@ func (*CreateInputDefinitionMessage) Descriptor() ([]byte, []int) {
return fileDescriptorPrivate, []int{17}
}
func (m *CreateInputDefinitionMessage) GetDefinition() *InputDefinition {
if m != nil {
return m.Definition
}
return nil
}
type NodeStatus struct {
Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
State string `protobuf:"bytes,2,opt,name=State,proto3" json:"State,omitempty"`
@ -1095,11 +1103,21 @@ func (m *CreateInputDefinitionMessage) MarshalTo(dAtA []byte) (int, error) {
i = encodeVarintPrivate(dAtA, i, uint64(len(m.Index)))
i += copy(dAtA[i:], m.Index)
}
if len(m.InputDefinition) > 0 {
if len(m.Name) > 0 {
dAtA[i] = 0x12
i++
i = encodeVarintPrivate(dAtA, i, uint64(len(m.InputDefinition)))
i += copy(dAtA[i:], m.InputDefinition)
i = encodeVarintPrivate(dAtA, i, uint64(len(m.Name)))
i += copy(dAtA[i:], m.Name)
}
if m.Definition != nil {
dAtA[i] = 0x1a
i++
i = encodeVarintPrivate(dAtA, i, uint64(m.Definition.Size()))
n13, err := m.Definition.MarshalTo(dAtA[i:])
if err != nil {
return 0, err
}
i += n13
}
return i, nil
}
@ -1517,10 +1535,14 @@ func (m *CreateInputDefinitionMessage) Size() (n int) {
if l > 0 {
n += 1 + l + sovPrivate(uint64(l))
}
l = len(m.InputDefinition)
l = len(m.Name)
if l > 0 {
n += 1 + l + sovPrivate(uint64(l))
}
if m.Definition != nil {
l = m.Definition.Size()
n += 1 + l + sovPrivate(uint64(l))
}
return n
}
@ -4038,7 +4060,7 @@ func (m *CreateInputDefinitionMessage) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field InputDefinition", wireType)
return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@ -4063,7 +4085,40 @@ func (m *CreateInputDefinitionMessage) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.InputDefinition = string(dAtA[iNdEx:postIndex])
m.Name = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Definition", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowPrivate
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= (int(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthPrivate
}
postIndex := iNdEx + msglen
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Definition == nil {
m.Definition = &InputDefinition{}
}
if err := m.Definition.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
@ -4414,57 +4469,58 @@ var (
func init() { proto.RegisterFile("private.proto", fileDescriptorPrivate) }
var fileDescriptorPrivate = []byte{
// 823 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4f, 0x6f, 0x1b, 0x45,
0x14, 0x67, 0xed, 0xb5, 0x6b, 0xbf, 0x28, 0x89, 0x3b, 0x04, 0xb4, 0x8d, 0x22, 0x2b, 0x9a, 0x03,
0x0d, 0x3e, 0xf8, 0x50, 0x2e, 0xa8, 0xe5, 0x00, 0xb5, 0x5d, 0xd5, 0x02, 0x17, 0x18, 0x47, 0x3d,
0x22, 0x4d, 0xec, 0x07, 0xac, 0xb2, 0xde, 0x35, 0x3b, 0xb3, 0x4e, 0xcd, 0x81, 0xcf, 0x81, 0xc4,
0x95, 0x2b, 0xdf, 0x83, 0x23, 0x57, 0x6e, 0x28, 0x5c, 0xf8, 0x18, 0x68, 0xfe, 0xed, 0xae, 0xd7,
0x76, 0xaa, 0xf4, 0x36, 0xef, 0xf7, 0xfe, 0xfd, 0xe6, 0xcd, 0x7b, 0x6f, 0x17, 0x0e, 0x97, 0x69,
0xb8, 0xe2, 0x12, 0xfb, 0xcb, 0x34, 0x91, 0x09, 0x69, 0x85, 0xb1, 0xc4, 0x34, 0xe6, 0x11, 0xfd,
0x1a, 0xda, 0xe3, 0x78, 0x8e, 0x6f, 0x26, 0x28, 0x39, 0x39, 0x87, 0x83, 0x41, 0x12, 0x65, 0x8b,
0xf8, 0x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, 0xc3, 0x64, 0xe9, 0x3b, 0x03, 0xb3, 0xa5,
0x72, 0x7b, 0x95, 0x5d, 0xef, 0x51, 0xb7, 0x94, 0xb5, 0x70, 0xfa, 0x0c, 0x0e, 0x37, 0x1c, 0xee,
0xb9, 0xb9, 0xce, 0xdc, 0xb6, 0xd8, 0xa8, 0xec, 0xdd, 0x73, 0x77, 0xb1, 0xd5, 0x2f, 0xf6, 0xbe,
0x55, 0x98, 0x72, 0x80, 0x57, 0xc9, 0x1c, 0xa7, 0x92, 0xcb, 0x4c, 0xa8, 0x97, 0x7a, 0x99, 0x08,
0xe9, 0x5e, 0x4a, 0x9d, 0xf5, 0x3e, 0x94, 0x5c, 0xe6, 0x33, 0xac, 0x05, 0xf2, 0x31, 0x3c, 0xd0,
0xa9, 0xd0, 0xbd, 0xcf, 0x71, 0x65, 0xc4, 0x98, 0xd3, 0xd3, 0x67, 0x70, 0x38, 0x88, 0x32, 0x21,
0x31, 0xb5, 0x59, 0x7a, 0xd0, 0x50, 0x39, 0xdd, 0x17, 0xe1, 0xa4, 0xf0, 0x2c, 0xa8, 0x30, 0x63,
0xf2, 0xbc, 0xf3, 0xe7, 0x6d, 0xd7, 0xfb, 0xeb, 0xb6, 0xeb, 0xfd, 0x73, 0xdb, 0xf5, 0x7e, 0xfd,
0xb7, 0xfb, 0xde, 0x55, 0x53, 0xff, 0x85, 0x7c, 0xf2, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe2,
0x37, 0x53, 0x60, 0x96, 0x08, 0x00, 0x00,
// 835 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x8e, 0x1b, 0x45,
0x10, 0x66, 0xec, 0xb1, 0x63, 0xd7, 0x6a, 0x77, 0x9d, 0x66, 0x41, 0x93, 0xd5, 0xca, 0x5a, 0xf5,
0x81, 0x2c, 0x3e, 0xec, 0x21, 0x5c, 0x20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x4f, 0x9f, 0xc0, 0x61, 0x3f, 0xca, 0x84, 0xc4, 0xd4, 0x56, 0xe9,
0x41, 0x43, 0xd5, 0x74, 0xbf, 0x1b, 0x27, 0x45, 0x64, 0x41, 0x85, 0x19, 0x97, 0xa7, 0x9d, 0x3f,
0xef, 0xba, 0xde, 0x5f, 0x77, 0x5d, 0xef, 0x9f, 0xbb, 0xae, 0xf7, 0xeb, 0xbf, 0xdd, 0x77, 0xae,
0x9b, 0xfa, 0xbf, 0xca, 0x47, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x40, 0x32, 0xbc, 0xbc,
0x08, 0x00, 0x00,
}

View file

@ -102,7 +102,8 @@ message Action {
message CreateInputDefinitionMessage {
string Index = 1;
string InputDefinition = 2;
string Name = 2;
InputDefinition Definition = 3;
}
message NodeStatus {