keystore

package
v1.8.14 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_keystore_keystore_proto protoreflect.FileDescriptor
View Source
var Keystore_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "keystore.Keystore",
	HandlerType: (*KeystoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDatabase",
			Handler:    _Keystore_GetDatabase_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "keystore/keystore.proto",
}

Keystore_ServiceDesc is the grpc.ServiceDesc for Keystore service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKeystoreServer

func RegisterKeystoreServer(s grpc.ServiceRegistrar, srv KeystoreServer)

Types

type GetDatabaseRequest

type GetDatabaseRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDatabaseRequest) Descriptor deprecated

func (*GetDatabaseRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDatabaseRequest.ProtoReflect.Descriptor instead.

func (*GetDatabaseRequest) GetPassword

func (x *GetDatabaseRequest) GetPassword() string

func (*GetDatabaseRequest) GetUsername

func (x *GetDatabaseRequest) GetUsername() string

func (*GetDatabaseRequest) ProtoMessage

func (*GetDatabaseRequest) ProtoMessage()

func (*GetDatabaseRequest) ProtoReflect

func (x *GetDatabaseRequest) ProtoReflect() protoreflect.Message

func (*GetDatabaseRequest) Reset

func (x *GetDatabaseRequest) Reset()

func (*GetDatabaseRequest) String

func (x *GetDatabaseRequest) String() string

type GetDatabaseResponse

type GetDatabaseResponse struct {

	// server_addr is the address of the gRPC server hosting the Database service
	ServerAddr string `protobuf:"bytes,2,opt,name=server_addr,json=serverAddr,proto3" json:"server_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDatabaseResponse) Descriptor deprecated

func (*GetDatabaseResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDatabaseResponse.ProtoReflect.Descriptor instead.

func (*GetDatabaseResponse) GetServerAddr

func (x *GetDatabaseResponse) GetServerAddr() string

func (*GetDatabaseResponse) ProtoMessage

func (*GetDatabaseResponse) ProtoMessage()

func (*GetDatabaseResponse) ProtoReflect

func (x *GetDatabaseResponse) ProtoReflect() protoreflect.Message

func (*GetDatabaseResponse) Reset

func (x *GetDatabaseResponse) Reset()

func (*GetDatabaseResponse) String

func (x *GetDatabaseResponse) String() string

type KeystoreClient

type KeystoreClient interface {
	GetDatabase(ctx context.Context, in *GetDatabaseRequest, opts ...grpc.CallOption) (*GetDatabaseResponse, error)
}

KeystoreClient is the client API for Keystore service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewKeystoreClient

func NewKeystoreClient(cc grpc.ClientConnInterface) KeystoreClient

type KeystoreServer

type KeystoreServer interface {
	GetDatabase(context.Context, *GetDatabaseRequest) (*GetDatabaseResponse, error)
	// contains filtered or unexported methods
}

KeystoreServer is the server API for Keystore service. All implementations must embed UnimplementedKeystoreServer for forward compatibility

type UnimplementedKeystoreServer

type UnimplementedKeystoreServer struct {
}

UnimplementedKeystoreServer must be embedded to have forward compatible implementations.

func (UnimplementedKeystoreServer) GetDatabase

type UnsafeKeystoreServer

type UnsafeKeystoreServer interface {
	// contains filtered or unexported methods
}

UnsafeKeystoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeystoreServer will result in compilation errors.

Jump to

Keyboard shortcuts

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