Lightning.Channels.Channel (Lightning v2.19.0-pre)

View Source

Schema for a Channel — an HTTP proxy configuration that forwards requests from a client endpoint to a destination URL.

Summary

Functions

Shared validation rules for a channel changeset.

Types

t()

@type t() :: %Lightning.Channels.Channel{
  __meta__: term(),
  channel_auth_methods: term(),
  channel_requests: term(),
  channel_snapshots: term(),
  client_auth_methods: term(),
  client_webhook_auth_methods: term(),
  delete: term(),
  destination_auth_method: term(),
  destination_credential: term(),
  destination_url: String.t(),
  enabled: boolean(),
  id: Ecto.UUID.t(),
  inserted_at: DateTime.t(),
  lock_version: integer(),
  name: String.t(),
  project: term(),
  project_id: Ecto.UUID.t(),
  updated_at: DateTime.t()
}

Functions

changeset(channel, attrs)

validate(changeset)

Shared validation rules for a channel changeset.

Used by changeset/2 and by callers (such as the provisioner) that build a channel changeset with a different shape of input fields but need the same business-rule validations.