Versions in this module Expand all Collapse all v2 v2.1.0 Mar 6, 2023 Changes in this version + var UploadURL = "/upload" + type BasicSudoClient struct + func NewBasicSudoClient(ctx context.Context, opts ...DialOption) (*BasicSudoClient, error) + func (client *BasicSudoClient) Close() error + func (client *BasicSudoClient) CreateVtableFromDB(ctx context.Context, dataSrcName, dbName, tableName string) (uint64, error) + func (client *BasicSudoClient) CreateVtableFromLocalFile(ctx context.Context, tableFilePath string) (uint64, error) + type ConnPool interface + Close func() error + Conn func() *grpc.ClientConn + Num func() int + type DialOption interface + Apply func(*dialOptions) + func WithAccount(account, password string) DialOption + func WithConnPool(grpcConnPool ConnPool) DialOption + func WithGrpcClientInterceptor(interceptor grpc.UnaryClientInterceptor) DialOption + func WithGrpcDialOption(grpcOpt grpc.DialOption) DialOption + func WithGrpcEndpoint(endPoint string) DialOption + func WithHTTPEndpoint(endpoint string) DialOption + func WithHTTPTransport(transport http.RoundTripper) DialOption + func WithTokenSource(tokenSource TokenSource) DialOption + type SudoClient struct + func NewSudoClient(ctx context.Context, opts ...DialOption) (*SudoClient, error) + func (client *SudoClient) Close() error + type SudoHTTPClient struct + func NewHTTPClient(ctx context.Context, opts ...DialOption) (*SudoHTTPClient, error) + func (client *SudoHTTPClient) UploadVtableFile(ctx context.Context, filePath, identityName string) (string, error) + type TokenSource interface + Close func() error + func NewUserAccountToken(ctx context.Context, opts ...DialOption) (TokenSource, error)