Documentation
¶
Index ¶
- func ConvertToRecord(data any) *v2.Record
- func MapToStruct(data map[string]interface{}, target interface{}) error
- func MapToValue(v interface{}) *v2.Value
- func NewCommandCompletionClient(conn *grpc.ClientConn) *commandCompletion
- func NewCommandServiceClient(conn *grpc.ClientConn) *commandService
- func NewCommandSubmissionClient(conn *grpc.ClientConn) *commandSubmission
- func NewEventQueryClient(conn *grpc.ClientConn) *eventQuery
- func NewPackageServiceClient(conn *grpc.ClientConn) *packageService
- func NewStateServiceClient(conn *grpc.ClientConn) *stateService
- func NewUpdateServiceClient(conn *grpc.ClientConn) *updateService
- func NewVersionServiceClient(conn *grpc.ClientConn) *versionService
- func RecordToStruct(data interface{}, target interface{}) error
- type CommandCompletion
- type CommandService
- type CommandSubmission
- type EventQuery
- type InteractiveSubmissionService
- type PackageService
- type StateService
- type UpdateService
- type VersionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToRecord ¶
func MapToStruct ¶
func MapToValue ¶
MapToValue exposes the internal any->Value conversion (useful for choice args later).
func NewCommandCompletionClient ¶
func NewCommandCompletionClient(conn *grpc.ClientConn) *commandCompletion
func NewCommandServiceClient ¶
func NewCommandServiceClient(conn *grpc.ClientConn) *commandService
func NewCommandSubmissionClient ¶
func NewCommandSubmissionClient(conn *grpc.ClientConn) *commandSubmission
func NewEventQueryClient ¶
func NewEventQueryClient(conn *grpc.ClientConn) *eventQuery
func NewPackageServiceClient ¶
func NewPackageServiceClient(conn *grpc.ClientConn) *packageService
func NewStateServiceClient ¶
func NewStateServiceClient(conn *grpc.ClientConn) *stateService
func NewUpdateServiceClient ¶
func NewUpdateServiceClient(conn *grpc.ClientConn) *updateService
func NewVersionServiceClient ¶
func NewVersionServiceClient(conn *grpc.ClientConn) *versionService
func RecordToStruct ¶
func RecordToStruct(data interface{}, target interface{}) error
Types ¶
type CommandCompletion ¶
type CommandCompletion interface {
CompletionStream(ctx context.Context, req *model.CompletionStreamRequest) (<-chan *model.CompletionStreamResponse, <-chan error)
}
type CommandService ¶
type CommandService interface {
SubmitAndWait(ctx context.Context, req *model.SubmitAndWaitRequest) (*model.SubmitAndWaitResponse, error)
// New method added to interface
SubmitAndWaitForTransaction(ctx context.Context, req *model.SubmitAndWaitRequest) (*model.SubmitAndWaitForTransactionResponse, error)
}
type CommandSubmission ¶
type CommandSubmission interface {
Submit(ctx context.Context, req *model.SubmitRequest) (*model.SubmitResponse, error)
}
type EventQuery ¶
type EventQuery interface {
GetEventsByContractID(ctx context.Context, req *model.GetEventsByContractIDRequest) (*model.GetEventsByContractIDResponse, error)
}
type InteractiveSubmissionService ¶
type InteractiveSubmissionService interface {
PrepareSubmission(ctx context.Context, req *model.PrepareSubmissionRequest) (*model.PrepareSubmissionResponse, error)
ExecuteSubmission(ctx context.Context, req *model.ExecuteSubmissionRequest) (*model.ExecuteSubmissionResponse, error)
GetPreferredPackageVersion(ctx context.Context, req *model.GetPreferredPackageVersionRequest) (*model.GetPreferredPackageVersionResponse, error)
}
func NewInteractiveSubmissionServiceClient ¶
func NewInteractiveSubmissionServiceClient(conn *grpc.ClientConn) InteractiveSubmissionService
type PackageService ¶
type PackageService interface {
ListPackages(ctx context.Context, req *model.ListPackagesRequest) (*model.ListPackagesResponse, error)
GetPackage(ctx context.Context, req *model.GetPackageRequest) (*model.GetPackageResponse, error)
GetPackageStatus(ctx context.Context, req *model.GetPackageStatusRequest) (*model.GetPackageStatusResponse, error)
}
type StateService ¶
type StateService interface {
GetActiveContracts(ctx context.Context, req *model.GetActiveContractsRequest) (<-chan *model.GetActiveContractsResponse, <-chan error)
GetConnectedSynchronizers(ctx context.Context, req *model.GetConnectedSynchronizersRequest) (*model.GetConnectedSynchronizersResponse, error)
GetLedgerEnd(ctx context.Context, req *model.GetLedgerEndRequest) (*model.GetLedgerEndResponse, error)
GetLatestPrunedOffsets(ctx context.Context, req *model.GetLatestPrunedOffsetsRequest) (*model.GetLatestPrunedOffsetsResponse, error)
}
type UpdateService ¶
type UpdateService interface {
GetUpdates(ctx context.Context, req *model.GetUpdatesRequest) (<-chan *model.GetUpdatesResponse, <-chan error)
GetUpdateById(ctx context.Context, req *model.GetUpdateByIDRequest) (*model.GetUpdateResponse, error)
GetTransactionByID(ctx context.Context, req *model.GetTransactionByIDRequest) (*model.GetTransactionResponse, error)
GetTransactionByOffset(ctx context.Context, req *model.GetTransactionByOffsetRequest) (*model.GetTransactionResponse, error)
}
type VersionService ¶
type VersionService interface {
GetLedgerAPIVersion(ctx context.Context, req *model.GetLedgerAPIVersionRequest) (*model.GetLedgerAPIVersionResponse, error)
}
Click to show internal directories.
Click to hide internal directories.