ForgeSdk v0.38.0 ForgeSdk.File View Source
Convenience functions for file api.
Link to this section Summary
Functions
Chunk the file and delegate the rest to Rpc.store_file/2
Link to this section Functions
Link to this function
load_file(request, chan)
View Source
load_file(request, chan)
View Source
load_file(ForgeAbi.RequestLoadFile.t() | Keyword.t(), GRPC.Channel.t() | nil) ::
binary() | {:error, term()}
load_file(ForgeAbi.RequestLoadFile.t() | Keyword.t(), GRPC.Channel.t() | nil) :: binary() | {:error, term()}
Link to this function
store_file(request, chan)
View Source
store_file(request, chan)
View Source
store_file(
Enumerable.t()
| ForgeAbi.RequestStoreFile.t()
| [ForgeAbi.RequestStoreFile.t()]
| Keyword.t()
| [Keyword.t()],
GRPC.Channel.t() | nil
) :: String.t() | {:error, term()}
store_file( Enumerable.t() | ForgeAbi.RequestStoreFile.t() | [ForgeAbi.RequestStoreFile.t()] | Keyword.t() | [Keyword.t()], GRPC.Channel.t() | nil ) :: String.t() | {:error, term()}
Chunk the file and delegate the rest to Rpc.store_file/2.