sqlpb

package
v0.0.0-...-b74d46b Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_nitric_proto_sql_v1_sql_proto protoreflect.FileDescriptor
View Source
var Sql_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nitric.proto.sql.v1.Sql",
	HandlerType: (*SqlServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ConnectionString",
			Handler:    _Sql_ConnectionString_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "nitric/proto/sql/v1/sql.proto",
}

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

Functions

func RegisterSqlServer

func RegisterSqlServer(s grpc.ServiceRegistrar, srv SqlServer)

Types

type SqlClient

type SqlClient interface {
	// Retrieve the connection string for a given database
	ConnectionString(ctx context.Context, in *SqlConnectionStringRequest, opts ...grpc.CallOption) (*SqlConnectionStringResponse, error)
}

SqlClient is the client API for Sql 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 NewSqlClient

func NewSqlClient(cc grpc.ClientConnInterface) SqlClient

type SqlConnectionStringRequest

type SqlConnectionStringRequest struct {

	// The name of the database to retrieve the connection string for
	DatabaseName string `protobuf:"bytes,1,opt,name=database_name,json=databaseName,proto3" json:"database_name,omitempty"`
	// contains filtered or unexported fields
}

func (*SqlConnectionStringRequest) Descriptor deprecated

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

Deprecated: Use SqlConnectionStringRequest.ProtoReflect.Descriptor instead.

func (*SqlConnectionStringRequest) GetDatabaseName

func (x *SqlConnectionStringRequest) GetDatabaseName() string

func (*SqlConnectionStringRequest) ProtoMessage

func (*SqlConnectionStringRequest) ProtoMessage()

func (*SqlConnectionStringRequest) ProtoReflect

func (*SqlConnectionStringRequest) Reset

func (x *SqlConnectionStringRequest) Reset()

func (*SqlConnectionStringRequest) String

func (x *SqlConnectionStringRequest) String() string

type SqlConnectionStringResponse

type SqlConnectionStringResponse struct {

	// The connection string for the database
	ConnectionString string `protobuf:"bytes,1,opt,name=connection_string,json=connectionString,proto3" json:"connection_string,omitempty"`
	// contains filtered or unexported fields
}

func (*SqlConnectionStringResponse) Descriptor deprecated

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

Deprecated: Use SqlConnectionStringResponse.ProtoReflect.Descriptor instead.

func (*SqlConnectionStringResponse) GetConnectionString

func (x *SqlConnectionStringResponse) GetConnectionString() string

func (*SqlConnectionStringResponse) ProtoMessage

func (*SqlConnectionStringResponse) ProtoMessage()

func (*SqlConnectionStringResponse) ProtoReflect

func (*SqlConnectionStringResponse) Reset

func (x *SqlConnectionStringResponse) Reset()

func (*SqlConnectionStringResponse) String

func (x *SqlConnectionStringResponse) String() string

type SqlServer

type SqlServer interface {
	// Retrieve the connection string for a given database
	ConnectionString(context.Context, *SqlConnectionStringRequest) (*SqlConnectionStringResponse, error)
}

SqlServer is the server API for Sql service. All implementations should embed UnimplementedSqlServer for forward compatibility

type UnimplementedSqlServer

type UnimplementedSqlServer struct {
}

UnimplementedSqlServer should be embedded to have forward compatible implementations.

type UnsafeSqlServer

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

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

Jump to

Keyboard shortcuts

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