Chatto.Api.V1.ServerService (chatto v0.1.0)

Copy Markdown View Source

Provides authenticated server-wide reads.

Summary

Functions

Returns the authenticated message of the day.

Returns authenticated runtime settings used by clients.

Returns the current public server profile to an authenticated caller.

Functions

get_motd(client, request)

@spec get_motd(Req.Request.t(), Chatto.Api.V1.GetMotdRequest.t()) ::
  {:ok, Chatto.Api.V1.GetMotdResponse.t()} | {:error, Chatto.Connect.Error.t()}

Returns the authenticated message of the day.

get_runtime_config(client, request)

@spec get_runtime_config(Req.Request.t(), Chatto.Api.V1.GetRuntimeConfigRequest.t()) ::
  {:ok, Chatto.Api.V1.GetRuntimeConfigResponse.t()}
  | {:error, Chatto.Connect.Error.t()}

Returns authenticated runtime settings used by clients.

get_server_profile(client, request)

@spec get_server_profile(Req.Request.t(), Chatto.Api.V1.GetServerProfileRequest.t()) ::
  {:ok, Chatto.Api.V1.GetServerProfileResponse.t()}
  | {:error, Chatto.Connect.Error.t()}

Returns the current public server profile to an authenticated caller.