func (lgc *Logic) AddInput(input *graylog.Input) (int, error) {
	if err := validator.CreateValidator.Struct(input); err != nil {
		return 400, err
	}
	if err := lgc.store.AddInput(input); err != nil {
		return 500, err
	}
	return 200, nil
}
// AddInput adds an input to the mock server.
AddInput adds an input to the mock server.
// AddInput adds an input to the mock server .
func (lgc *Logic) AddInput(input *graylog.Input) (int, error) {
	if err := validator.CreateValidator.Struct(input); err != nil {
		return 400, err
	}
	if err := lgc.store.AddInput(input); err != nil {
		return 500, err
	}
	return 200, nil
}
func ( lgc * Logic ) AddInput ( input * graylog . Input ) ( int , error ) { if err := validator . CreateValidator . Struct ( input ) ; err != nil { return 400 , err } if err := lgc . store . AddInput ( input ) ; err != nil { return 500 , err } return 200 , nil }
AddInput adds an input to the mock server.
AddInput adds an input to the mock server .