Documentation ¶
Index ¶
- Variables
- func RegisterSqlServer(s grpc.ServiceRegistrar, srv SqlServer)
- type SqlClient
- type SqlConnectionStringRequest
- func (*SqlConnectionStringRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SqlConnectionStringRequest) GetDatabaseName() string
- func (*SqlConnectionStringRequest) ProtoMessage()
- func (x *SqlConnectionStringRequest) ProtoReflect() protoreflect.Message
- func (x *SqlConnectionStringRequest) Reset()
- func (x *SqlConnectionStringRequest) String() string
- type SqlConnectionStringResponse
- func (*SqlConnectionStringResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SqlConnectionStringResponse) GetConnectionString() string
- func (*SqlConnectionStringResponse) ProtoMessage()
- func (x *SqlConnectionStringResponse) ProtoReflect() protoreflect.Message
- func (x *SqlConnectionStringResponse) Reset()
- func (x *SqlConnectionStringResponse) String() string
- type SqlServer
- type UnimplementedSqlServer
- type UnsafeSqlServer
Constants ¶
This section is empty.
Variables ¶
var File_nitric_proto_sql_v1_sql_proto protoreflect.FileDescriptor
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 (x *SqlConnectionStringRequest) ProtoReflect() protoreflect.Message
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 (x *SqlConnectionStringResponse) ProtoReflect() protoreflect.Message
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.
func (UnimplementedSqlServer) ConnectionString ¶
func (UnimplementedSqlServer) ConnectionString(context.Context, *SqlConnectionStringRequest) (*SqlConnectionStringResponse, error)
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.