Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
o

ExternalUploadClientConfig

object ExternalUploadClientConfig

Constructors for validated external uploader client configuration.

Exported from scalive.upload.ExternalUploadClientConfig. View source (scalive/api/src/scalive/upload/LiveUpload.scala:585-606)

Methods2

apply

def apply(json: zio.json.ast.Json.Obj): ExternalUploadClientConfig

Creates a client configuration or throws when json.uploader is absent, empty, or not a string.

Throws

IllegalArgumentException

if json has no non-empty string uploader field

Exported from scalive.upload.ExternalUploadClientConfig.apply. View source (scalive/api/src/scalive/upload/LiveUpload.scala:592-593)

validated

def validated(json: zio.json.ast.Json.Obj): Either[IllegalArgumentException, ExternalUploadClientConfig]

Validates that json contains a non-empty string uploader field without throwing.

Exported from scalive.upload.ExternalUploadClientConfig.validated. View source (scalive/api/src/scalive/upload/LiveUpload.scala:596-606)