Interfaces

@system-inc/base-foundation · 515c140 · 6 symbols

Members

  • defaultValue?: Json

    Optional default value for the argument.

    This can be used to provide a default value when the argument is not present in the RPC call.

  • description?: string

    Optional description for the argument. This can be used for documentation purposes to explain the purpose of the argument.

  • name?: string

    The name of the argument. This is used for documentation purposes and can help with debugging.

  • optional?: boolean

    Whether the argument is optional.

    If true, the argument is not required for the RPC call. If false, the argument must be present in the RPC call and will throw an error if missing.

    Defaults to false.

View source ↗

Members

  • environments: NamedConfiguration<RequireAny<{ binding?: string; endpoint?: string; host?: string; secure?: boolean }, "binding" | "host">>

  • name: string

    A name used to designate this RPC with.

    You can use this to inject an instance of an RPC client bound to a specific RPC service.

View source ↗

RpcOptions

interface

Members

  • visibility?: RpcVisibility

    Optional visibility override for this procedure. Takes precedence over the service-level (@RpcService) and worker-level (rpc.service settings) visibility. 'internal' — callable only from bound workers; 'public' — callable from the public route. In local development mode everything is effectively 'public'.

View source ↗

Members

View source ↗

Settings for the RPC service that will be served by this worker.

Members

  • allowedWorkers?: string[]

    A list of workers that are allowed to bind to this worker and call its RPCs.

    This is only relevant if the visibility is set to 'internal'.

  • route?: string

    Override the default endPoint that serves the RPC service here. See DefaultRemoteProcedureEndpoint.

  • visibility?: RpcVisibility

    Whether the RPC service should be callable from a public route.

    If set to 'public', the RPC service will be callable from a public route. If set to 'internal', the RPC service will only be callable from a bound worker.

    The default value is 'internal' if unspecified.

View source ↗

RpcSettings

interface

Settings for RPCs in the worker.

Members

View source ↗

Interfaces • Documentation • Base