Versions in this module Expand all Collapse all v0 v0.6.0 Mar 31, 2026 Changes in this version + type AuthConfig struct + Token string + TokenProvider auth.TokenProvider + type Client struct + func NewClient(config *Config) *Client + func (c *Client) Close() error + func (c *Client) Connect(ctx context.Context) (*Connection, error) + type Config struct + Address string + AdminAddress string + Auth *AuthConfig + TLS *TLSConfig + func NewConfig(opts ...ConfigOption) *Config + type ConfigOption func(*Config) + func WithAddress(addr string) ConfigOption + func WithAdminAddress(addr string) ConfigOption + func WithTLS(tls *TLSConfig) ConfigOption + func WithToken(token string) ConfigOption + func WithTokenProvider(provider auth.TokenProvider) ConfigOption + type Connection struct + func Connect(ctx context.Context, address string, opts ...ConfigOption) (*Connection, error) + func ConnectWithToken(ctx context.Context, address, token string, opts ...ConfigOption) (*Connection, error) + func ConnectWithTokenProvider(ctx context.Context, address string, provider auth.TokenProvider, ...) (*Connection, error) + func NewConnection(client *Client, conn *grpc.ClientConn, adminConn *grpc.ClientConn) *Connection + func (c *Connection) AdminGRPCConn() *grpc.ClientConn + func (c *Connection) GRPCConn() *grpc.ClientConn + type DamlBindingClient struct + CommandCompletion ledger.CommandCompletion + CommandInspectionMng admin.CommandInspection + CommandService ledger.CommandService + CommandSubmission ledger.CommandSubmission + EventQuery ledger.EventQuery + IdentityProviderMng admin.IdentityProviderConfig + InteractiveSubmissionService ledger.InteractiveSubmissionService + PackageMng admin.PackageManagement + PackageService ledger.PackageService + PartyMng admin.PartyManagement + PruningMng admin.ParticipantPruning + StateService ledger.StateService + TimeService testing.TimeService + TopologyManagerRead topology.TopologyManagerRead + TopologyManagerWrite topology.TopologyManagerWrite + UpdateService ledger.UpdateService + UserMng admin.UserManagement + VersionService ledger.VersionService + func NewDamlBindingClient(client *DamlClient, conn *Connection) *DamlBindingClient + func (c *DamlBindingClient) Close() + func (c *DamlBindingClient) Ping(ctx context.Context) error + func (c *DamlBindingClient) ValidateSDKVersion(ctx context.Context, contractSDKVersion string) error + type DamlClient struct + func NewDamlClient(token string, grpcAddress string) *DamlClient + func (c *DamlClient) Build(ctx context.Context) (*DamlBindingClient, error) + func (c *DamlClient) WithAdminAddress(addr string) *DamlClient + func (c *DamlClient) WithTLSConfig(cfg TlsConfig) *DamlClient + type TLSConfig struct + CertFile string + InsecureSkipVerify bool + ServerName string + type TlsConfig struct + Certificate string