pb

package
v0.0.0-...-935c85c Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminShellClient = "adminShell"
)
View Source
const (
	Max_Message_Size = 1 << 30 // 1 GB
)

Variables

This section is empty.

Functions

func GrpcDial

func GrpcDial(ctx context.Context, address string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

func MaybeLoadVolumeInfo

func MaybeLoadVolumeInfo(fileName string) (*volume_server_pb.VolumeInfo, bool, error)

MaybeLoadVolumeInfo load the file data as *volume_server_pb.VolumeInfo, the returned volumeInfo will not be nil

func NewGrpcServer

func NewGrpcServer(opts ...grpc.ServerOption) *grpc.Server

func ParseFilerGrpcAddress

func ParseFilerGrpcAddress(filer string) (filerGrpcAddress string, err error)

func ParseServerToGrpcAddress

func ParseServerToGrpcAddress(server string) (serverGrpcAddress string, err error)

func SaveVolumeInfo

func SaveVolumeInfo(fileName string, volumeInfo *volume_server_pb.VolumeInfo) error

func ServerToGrpcAddress

func ServerToGrpcAddress(server string) (serverGrpcAddress string)

func WithBrokerGrpcClient

func WithBrokerGrpcClient(brokerGrpcAddress string, grpcDialOption grpc.DialOption, fn func(client messaging_pb.SeaweedMessagingClient) error) error

func WithCachedGrpcClient

func WithCachedGrpcClient(fn func(*grpc.ClientConn) error, address string, opts ...grpc.DialOption) error

func WithFilerClient

func WithFilerClient(filer string, grpcDialOption grpc.DialOption, fn func(client filer_pb.SeaweedFilerClient) error) error

func WithGrpcFilerClient

func WithGrpcFilerClient(filerGrpcAddress string, grpcDialOption grpc.DialOption, fn func(client filer_pb.SeaweedFilerClient) error) error

func WithMasterClient

func WithMasterClient(master string, grpcDialOption grpc.DialOption, fn func(client master_pb.SeaweedClient) error) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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