client

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *Config) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) Connect

func (c *Client) Connect(ctx context.Context) (*Connection, error)

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) Ping

func (c *DamlBindingClient) Ping(ctx context.Context) error

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

type TLSConfig

type TLSConfig struct {
	CertFile           string
	ServerName         string
	InsecureSkipVerify bool
}

type TlsConfig

type TlsConfig struct {
	Certificate string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL