class Curator::Api::Controller

Overview

API Controller Responsible for accepting incoming event data. Exposes two endpoints

  1. /ingest WebSocket, which accepts event in json format
  2. /ingest HTTP POST, which accepts events in ndjson format Hands off the event to Relay

Included Modules

Defined in:

api/controller.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(relay : Curator::Relay, auth : Curator::Utils::Auth) #

[View source]

Instance Method Detail

def auth : Curator::Utils::Auth #

[View source]
def port : Int32 #

[View source]
def relay : Curator::Relay #

[View source]
def start #

Starts the HTTP::Server to serve incoming requests.


[View source]
def stop #

[View source]