Documentation
¶
Index ¶
- type AuthConfig
- type Client
- type Config
- type ConfigOption
- type Connection
- 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
- type DamlBindingClient
- type DamlClient
- type TLSConfig
- type TlsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Token string
TokenProvider auth.TokenProvider
}
type Config ¶
type Config struct {
Address string
AdminAddress string
TLS *TLSConfig
Auth *AuthConfig
}
func NewConfig ¶
func NewConfig(opts ...ConfigOption) *Config
type ConfigOption ¶
type ConfigOption func(*Config)
func WithAddress ¶
func WithAddress(addr string) ConfigOption
func WithAdminAddress ¶
func WithAdminAddress(addr string) ConfigOption
func WithTLS ¶
func WithTLS(tls *TLSConfig) ConfigOption
func WithToken ¶
func WithToken(token string) ConfigOption
func WithTokenProvider ¶
func WithTokenProvider(provider auth.TokenProvider) ConfigOption
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect(ctx context.Context, address string, opts ...ConfigOption) (*Connection, error)
func ConnectWithToken ¶
func ConnectWithToken(ctx context.Context, address, token string, opts ...ConfigOption) (*Connection, error)
func ConnectWithTokenProvider ¶
func ConnectWithTokenProvider(ctx context.Context, address string, provider auth.TokenProvider, opts ...ConfigOption) (*Connection, error)
func NewConnection ¶
func NewConnection(client *Client, conn *grpc.ClientConn, adminConn *grpc.ClientConn) *Connection
func (*Connection) AdminGRPCConn ¶
func (c *Connection) AdminGRPCConn() *grpc.ClientConn
func (*Connection) GRPCConn ¶
func (c *Connection) GRPCConn() *grpc.ClientConn
type DamlBindingClient ¶
type DamlBindingClient struct {
UserMng admin.UserManagement
PartyMng admin.PartyManagement
PruningMng admin.ParticipantPruning
PackageMng admin.PackageManagement
CommandInspectionMng admin.CommandInspection
IdentityProviderMng admin.IdentityProviderConfig
CommandCompletion ledger.CommandCompletion
CommandService ledger.CommandService
CommandSubmission ledger.CommandSubmission
EventQuery ledger.EventQuery
PackageService ledger.PackageService
StateService ledger.StateService
UpdateService ledger.UpdateService
VersionService ledger.VersionService
InteractiveSubmissionService ledger.InteractiveSubmissionService
TimeService testing.TimeService
TopologyManagerWrite topology.TopologyManagerWrite
TopologyManagerRead topology.TopologyManagerRead
// contains filtered or unexported fields
}
func NewDamlBindingClient ¶
func NewDamlBindingClient(client *DamlClient, conn *Connection) *DamlBindingClient
func (*DamlBindingClient) Close ¶
func (c *DamlBindingClient) Close()
func (*DamlBindingClient) ValidateSDKVersion ¶
func (c *DamlBindingClient) ValidateSDKVersion(ctx context.Context, contractSDKVersion string) error
type DamlClient ¶
type DamlClient struct {
// contains filtered or unexported fields
}
func NewDamlClient ¶
func NewDamlClient(token string, grpcAddress string) *DamlClient
func (*DamlClient) Build ¶
func (c *DamlClient) Build(ctx context.Context) (*DamlBindingClient, error)
func (*DamlClient) WithAdminAddress ¶
func (c *DamlClient) WithAdminAddress(addr string) *DamlClient
func (*DamlClient) WithTLSConfig ¶
func (c *DamlClient) WithTLSConfig(cfg TlsConfig) *DamlClient
Click to show internal directories.
Click to hide internal directories.