Documentation
¶
Index ¶
- func NewClient(config *Config, sID SigningIdentity, hasher hash2.Hasher, ...) (*client, error)
- func ValidateClientConfig(config Config) error
- type Config
- type Configs
- type LocalClient
- type MSPInfo
- type Signer
- type SigningIdentity
- type Stream
- type TimeFunc
- type ViewServiceClient
- type ViewServiceClientImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateClientConfig ¶
Types ¶
type Config ¶
type Config struct {
ID string
ConnectionConfig *grpc.ConnectionConfig
}
Config will be updated after the CR for token client config is merged, where the config data will be populated based on a config file.
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
func NewLocalClient ¶
func NewLocalClient(registry services.Provider) *LocalClient
type SigningIdentity ¶
func NewX509SigningIdentity ¶
func NewX509SigningIdentity(certPath, skPath string) (SigningIdentity, error)
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) RecvProtoMsg ¶
func (*Stream) SendProtoMsg ¶
type ViewServiceClient ¶
type ViewServiceClient interface {
// CreateViewClient creates a grpc connection and client to view peer
CreateViewClient() (*grpc.ClientConn, protos2.ViewServiceClient, error)
// Certificate returns tls client certificate
Certificate() *tls.Certificate
}
ViewServiceClient defines an interface that creates a client to communicate with the view service in a peer
type ViewServiceClientImpl ¶
type ViewServiceClientImpl struct {
Address string
ServerNameOverride string
GRPCClient *grpc2.Client
}
ViewServiceClientImpl implements ViewServiceClient interface
func (*ViewServiceClientImpl) Certificate ¶
func (pc *ViewServiceClientImpl) Certificate() *tls.Certificate
func (*ViewServiceClientImpl) CreateViewClient ¶
func (pc *ViewServiceClientImpl) CreateViewClient() (*grpc.ClientConn, protos2.ViewServiceClient, error)
Click to show internal directories.
Click to hide internal directories.