console

package
v0.7.93 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Console_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "console.Console",
	HandlerType: (*ConsoleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UploadDBSCHEMA",
			Handler:    _Console_UploadDBSCHEMA_Handler,
		},
		{
			MethodName: "LambdaSCHEMA",
			Handler:    _Console_LambdaSCHEMA_Handler,
		},
		{
			MethodName: "RoleData",
			Handler:    _Console_RoleData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "console.proto",
}

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

View Source
var File_console_proto protoreflect.FileDescriptor

Functions

func RegisterConsoleServer

func RegisterConsoleServer(s grpc.ServiceRegistrar, srv ConsoleServer)

Types

type ConsoleClient

type ConsoleClient interface {
	UploadDBSCHEMA(ctx context.Context, in *SchemaParams, opts ...grpc.CallOption) (*Response, error)
	LambdaSCHEMA(ctx context.Context, in *LambdaSchemaParams, opts ...grpc.CallOption) (*LambdaSchemaResponse, error)
	RoleData(ctx context.Context, in *LambdaSchemaParams, opts ...grpc.CallOption) (*LambdaSchemaResponse, error)
}

ConsoleClient is the client API for Console 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 NewConsoleClient

func NewConsoleClient(cc grpc.ClientConnInterface) ConsoleClient

type ConsoleServer

type ConsoleServer interface {
	UploadDBSCHEMA(context.Context, *SchemaParams) (*Response, error)
	LambdaSCHEMA(context.Context, *LambdaSchemaParams) (*LambdaSchemaResponse, error)
	RoleData(context.Context, *LambdaSchemaParams) (*LambdaSchemaResponse, error)
}

ConsoleServer is the server API for Console service. All implementations should embed UnimplementedConsoleServer for forward compatibility

type LambdaSchemaParams

type LambdaSchemaParams struct {
	ProjectKey string `protobuf:"bytes,1,opt,name=ProjectKey,proto3" json:"ProjectKey,omitempty"`
	// contains filtered or unexported fields
}

func (*LambdaSchemaParams) Descriptor deprecated

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

Deprecated: Use LambdaSchemaParams.ProtoReflect.Descriptor instead.

func (*LambdaSchemaParams) GetProjectKey

func (x *LambdaSchemaParams) GetProjectKey() string

func (*LambdaSchemaParams) ProtoMessage

func (*LambdaSchemaParams) ProtoMessage()

func (*LambdaSchemaParams) ProtoReflect

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

func (*LambdaSchemaParams) Reset

func (x *LambdaSchemaParams) Reset()

func (*LambdaSchemaParams) String

func (x *LambdaSchemaParams) String() string

type LambdaSchemaResponse

type LambdaSchemaResponse struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
	// contains filtered or unexported fields
}

func (*LambdaSchemaResponse) Descriptor deprecated

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

Deprecated: Use LambdaSchemaResponse.ProtoReflect.Descriptor instead.

func (*LambdaSchemaResponse) GetData

func (x *LambdaSchemaResponse) GetData() []byte

func (*LambdaSchemaResponse) GetMessage

func (x *LambdaSchemaResponse) GetMessage() string

func (*LambdaSchemaResponse) GetStatus

func (x *LambdaSchemaResponse) GetStatus() bool

func (*LambdaSchemaResponse) ProtoMessage

func (*LambdaSchemaResponse) ProtoMessage()

func (*LambdaSchemaResponse) ProtoReflect

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

func (*LambdaSchemaResponse) Reset

func (x *LambdaSchemaResponse) Reset()

func (*LambdaSchemaResponse) String

func (x *LambdaSchemaResponse) String() string

type Response

type Response struct {
	Status  bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetStatus

func (x *Response) GetStatus() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type SchemaParams

type SchemaParams struct {
	ProjectKey   string `protobuf:"bytes,1,opt,name=ProjectKey,proto3" json:"ProjectKey,omitempty"`
	DBSchema     []byte `protobuf:"bytes,2,opt,name=DBSchema,proto3" json:"DBSchema,omitempty"`
	LambdaConfig []byte `protobuf:"bytes,3,opt,name=LambdaConfig,proto3" json:"LambdaConfig,omitempty"`
	// contains filtered or unexported fields
}

func (*SchemaParams) Descriptor deprecated

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

Deprecated: Use SchemaParams.ProtoReflect.Descriptor instead.

func (*SchemaParams) GetDBSchema

func (x *SchemaParams) GetDBSchema() []byte

func (*SchemaParams) GetLambdaConfig

func (x *SchemaParams) GetLambdaConfig() []byte

func (*SchemaParams) GetProjectKey

func (x *SchemaParams) GetProjectKey() string

func (*SchemaParams) ProtoMessage

func (*SchemaParams) ProtoMessage()

func (*SchemaParams) ProtoReflect

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

func (*SchemaParams) Reset

func (x *SchemaParams) Reset()

func (*SchemaParams) String

func (x *SchemaParams) String() string

type UnimplementedConsoleServer

type UnimplementedConsoleServer struct {
}

UnimplementedConsoleServer should be embedded to have forward compatible implementations.

func (UnimplementedConsoleServer) LambdaSCHEMA

func (UnimplementedConsoleServer) RoleData

func (UnimplementedConsoleServer) UploadDBSCHEMA

type UnsafeConsoleServer

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

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

Jump to

Keyboard shortcuts

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