native

package module
v0.0.0-...-3b69245 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0 Imports: 20 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyValueStorageConnection

func NewKeyValueStorageConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, keyvaluestorage.KeyValueStorageServiceClient, error)

Connect to KeyValueStorage service

func NewNamespaceConnection

func NewNamespaceConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, namespace.NamespaceServiceClient, error)

Connect to Namespace service

Types

type GrpcServiceConfig

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

type IamActorServices

type IamActorServices struct {
	User iamActorUserGrpc.ActorUserServiceClient
}

type NativeStub

type NativeStub struct {
	Services services
	// contains filtered or unexported fields
}

func NewNativeStub

func NewNativeStub(config *StubConfig) *NativeStub

func (*NativeStub) Close

func (n *NativeStub) Close()

func (*NativeStub) Connect

func (n *NativeStub) Connect() error

type StorageService

type StorageService struct {
	Bucket storageBucketGrpc.BucketServiceClient
	FS     storageFSGrpc.FSServiceClient
}

func NewStorageConnection

func NewStorageConnection(address string, opts ...grpc.DialOption) (*grpc.ClientConn, *StorageService, error)

Connect to Storage service

type StubConfig

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

func NewStubConfig

func NewStubConfig() *StubConfig

func (*StubConfig) WithIAMService

func (sc *StubConfig) WithIAMService(conf ...GrpcServiceConfig) *StubConfig

func (*StubConfig) WithKeyValueStorageService

func (sc *StubConfig) WithKeyValueStorageService(conf ...GrpcServiceConfig) *StubConfig

func (*StubConfig) WithLogger

func (sc *StubConfig) WithLogger(logger *log.Logger) *StubConfig

func (*StubConfig) WithNamespaceService

func (sc *StubConfig) WithNamespaceService(conf ...GrpcServiceConfig) *StubConfig

func (*StubConfig) WithStorageService

func (sc *StubConfig) WithStorageService(conf ...GrpcServiceConfig) *StubConfig

Jump to

Keyboard shortcuts

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