eventhandler.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  2. #define EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
  3. #if defined(_MSC_VER) || \
  4. (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
  5. (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
  6. #pragma once
  7. #endif
  8. #include <string>
  9. #include "yaml-cpp/anchor.h"
  10. #include "yaml-cpp/emitterstyle.h"
  11. namespace YAML {
  12. struct Mark;
  13. class EventHandler {
  14. public:
  15. virtual ~EventHandler() = default;
  16. virtual void OnDocumentStart(const Mark& mark) = 0;
  17. virtual void OnDocumentEnd() = 0;
  18. virtual void OnNull(const Mark& mark, anchor_t anchor) = 0;
  19. virtual void OnAlias(const Mark& mark, anchor_t anchor) = 0;
  20. virtual void OnScalar(const Mark& mark, const std::string& tag,
  21. anchor_t anchor, const std::string& value) = 0;
  22. virtual void OnSequenceStart(const Mark& mark, const std::string& tag,
  23. anchor_t anchor, EmitterStyle::value style) = 0;
  24. virtual void OnSequenceEnd() = 0;
  25. virtual void OnMapStart(const Mark& mark, const std::string& tag,
  26. anchor_t anchor, EmitterStyle::value style) = 0;
  27. virtual void OnMapEnd() = 0;
  28. virtual void OnAnchor(const Mark& /*mark*/,
  29. const std::string& /*anchor_name*/) {
  30. // empty default implementation for compatibility
  31. }
  32. };
  33. } // namespace YAML
  34. #endif // EVENTHANDLER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
PANIC: session(release): write data/sessions/a/0/a04f1339fdc53cd2: no space left on device

PANIC

session(release): write data/sessions/a/0/a04f1339fdc53cd2: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)