Documentation ¶
Index ¶
- Variables
- func RegisterBracketsServiceServer(s grpc.ServiceRegistrar, srv BracketsServiceServer)
- type BracketsFixRequest
- func (*BracketsFixRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BracketsFixRequest) GetInput() string
- func (*BracketsFixRequest) ProtoMessage()
- func (x *BracketsFixRequest) ProtoReflect() protoreflect.Message
- func (x *BracketsFixRequest) Reset()
- func (x *BracketsFixRequest) String() string
- type BracketsFixResponse
- func (*BracketsFixResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BracketsFixResponse) GetResult() string
- func (*BracketsFixResponse) ProtoMessage()
- func (x *BracketsFixResponse) ProtoReflect() protoreflect.Message
- func (x *BracketsFixResponse) Reset()
- func (x *BracketsFixResponse) String() string
- type BracketsServiceClient
- type BracketsServiceServer
- type BracketsValidateRequest
- func (*BracketsValidateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BracketsValidateRequest) GetInput() string
- func (*BracketsValidateRequest) ProtoMessage()
- func (x *BracketsValidateRequest) ProtoReflect() protoreflect.Message
- func (x *BracketsValidateRequest) Reset()
- func (x *BracketsValidateRequest) String() string
- type BracketsValidateResponse
- func (*BracketsValidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BracketsValidateResponse) GetResult() BracketsValidateResponse_BracketsValidationResult
- func (*BracketsValidateResponse) ProtoMessage()
- func (x *BracketsValidateResponse) ProtoReflect() protoreflect.Message
- func (x *BracketsValidateResponse) Reset()
- func (x *BracketsValidateResponse) String() string
- type BracketsValidateResponse_BracketsValidationResult
- func (BracketsValidateResponse_BracketsValidationResult) Descriptor() protoreflect.EnumDescriptor
- func (x BracketsValidateResponse_BracketsValidationResult) Enum() *BracketsValidateResponse_BracketsValidationResult
- func (BracketsValidateResponse_BracketsValidationResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x BracketsValidateResponse_BracketsValidationResult) Number() protoreflect.EnumNumber
- func (x BracketsValidateResponse_BracketsValidationResult) String() string
- func (BracketsValidateResponse_BracketsValidationResult) Type() protoreflect.EnumType
- type UnimplementedBracketsServiceServer
- type UnsafeBracketsServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( BracketsValidateResponse_BracketsValidationResult_name = map[int32]string{ 0: "UNKNOWN", 1: "BALANCED", 2: "NOT_BALANCED", } BracketsValidateResponse_BracketsValidationResult_value = map[string]int32{ "UNKNOWN": 0, "BALANCED": 1, "NOT_BALANCED": 2, } )
Enum value maps for BracketsValidateResponse_BracketsValidationResult.
var File_internal_proto_brackets_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBracketsServiceServer ¶
func RegisterBracketsServiceServer(s grpc.ServiceRegistrar, srv BracketsServiceServer)
Types ¶
type BracketsFixRequest ¶
type BracketsFixRequest struct { Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
func (*BracketsFixRequest) Descriptor
deprecated
func (*BracketsFixRequest) Descriptor() ([]byte, []int)
Deprecated: Use BracketsFixRequest.ProtoReflect.Descriptor instead.
func (*BracketsFixRequest) GetInput ¶
func (x *BracketsFixRequest) GetInput() string
func (*BracketsFixRequest) ProtoMessage ¶
func (*BracketsFixRequest) ProtoMessage()
func (*BracketsFixRequest) ProtoReflect ¶
func (x *BracketsFixRequest) ProtoReflect() protoreflect.Message
func (*BracketsFixRequest) Reset ¶
func (x *BracketsFixRequest) Reset()
func (*BracketsFixRequest) String ¶
func (x *BracketsFixRequest) String() string
type BracketsFixResponse ¶
type BracketsFixResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*BracketsFixResponse) Descriptor
deprecated
func (*BracketsFixResponse) Descriptor() ([]byte, []int)
Deprecated: Use BracketsFixResponse.ProtoReflect.Descriptor instead.
func (*BracketsFixResponse) GetResult ¶
func (x *BracketsFixResponse) GetResult() string
func (*BracketsFixResponse) ProtoMessage ¶
func (*BracketsFixResponse) ProtoMessage()
func (*BracketsFixResponse) ProtoReflect ¶
func (x *BracketsFixResponse) ProtoReflect() protoreflect.Message
func (*BracketsFixResponse) Reset ¶
func (x *BracketsFixResponse) Reset()
func (*BracketsFixResponse) String ¶
func (x *BracketsFixResponse) String() string
type BracketsServiceClient ¶
type BracketsServiceClient interface { Validate(ctx context.Context, in *BracketsValidateRequest, opts ...grpc.CallOption) (*BracketsValidateResponse, error) Fix(ctx context.Context, in *BracketsFixRequest, opts ...grpc.CallOption) (*BracketsFixResponse, error) }
BracketsServiceClient is the client API for BracketsService 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 NewBracketsServiceClient ¶
func NewBracketsServiceClient(cc grpc.ClientConnInterface) BracketsServiceClient
type BracketsServiceServer ¶
type BracketsServiceServer interface { Validate(context.Context, *BracketsValidateRequest) (*BracketsValidateResponse, error) Fix(context.Context, *BracketsFixRequest) (*BracketsFixResponse, error) // contains filtered or unexported methods }
BracketsServiceServer is the server API for BracketsService service. All implementations must embed UnimplementedBracketsServiceServer for forward compatibility
type BracketsValidateRequest ¶
type BracketsValidateRequest struct { Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` // contains filtered or unexported fields }
func (*BracketsValidateRequest) Descriptor
deprecated
func (*BracketsValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use BracketsValidateRequest.ProtoReflect.Descriptor instead.
func (*BracketsValidateRequest) GetInput ¶
func (x *BracketsValidateRequest) GetInput() string
func (*BracketsValidateRequest) ProtoMessage ¶
func (*BracketsValidateRequest) ProtoMessage()
func (*BracketsValidateRequest) ProtoReflect ¶
func (x *BracketsValidateRequest) ProtoReflect() protoreflect.Message
func (*BracketsValidateRequest) Reset ¶
func (x *BracketsValidateRequest) Reset()
func (*BracketsValidateRequest) String ¶
func (x *BracketsValidateRequest) String() string
type BracketsValidateResponse ¶
type BracketsValidateResponse struct { Result BracketsValidateResponse_BracketsValidationResult `protobuf:"varint,1,opt,name=result,proto3,enum=BracketsValidateResponse_BracketsValidationResult" json:"result,omitempty"` // contains filtered or unexported fields }
func (*BracketsValidateResponse) Descriptor
deprecated
func (*BracketsValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use BracketsValidateResponse.ProtoReflect.Descriptor instead.
func (*BracketsValidateResponse) GetResult ¶
func (x *BracketsValidateResponse) GetResult() BracketsValidateResponse_BracketsValidationResult
func (*BracketsValidateResponse) ProtoMessage ¶
func (*BracketsValidateResponse) ProtoMessage()
func (*BracketsValidateResponse) ProtoReflect ¶
func (x *BracketsValidateResponse) ProtoReflect() protoreflect.Message
func (*BracketsValidateResponse) Reset ¶
func (x *BracketsValidateResponse) Reset()
func (*BracketsValidateResponse) String ¶
func (x *BracketsValidateResponse) String() string
type BracketsValidateResponse_BracketsValidationResult ¶
type BracketsValidateResponse_BracketsValidationResult int32
const ( BracketsValidateResponse_UNKNOWN BracketsValidateResponse_BracketsValidationResult = 0 BracketsValidateResponse_BALANCED BracketsValidateResponse_BracketsValidationResult = 1 BracketsValidateResponse_NOT_BALANCED BracketsValidateResponse_BracketsValidationResult = 2 )
func (BracketsValidateResponse_BracketsValidationResult) Descriptor ¶
func (BracketsValidateResponse_BracketsValidationResult) Descriptor() protoreflect.EnumDescriptor
func (BracketsValidateResponse_BracketsValidationResult) EnumDescriptor
deprecated
func (BracketsValidateResponse_BracketsValidationResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use BracketsValidateResponse_BracketsValidationResult.Descriptor instead.
func (BracketsValidateResponse_BracketsValidationResult) Number ¶
func (x BracketsValidateResponse_BracketsValidationResult) Number() protoreflect.EnumNumber
func (BracketsValidateResponse_BracketsValidationResult) String ¶
func (x BracketsValidateResponse_BracketsValidationResult) String() string
type UnimplementedBracketsServiceServer ¶
type UnimplementedBracketsServiceServer struct { }
UnimplementedBracketsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBracketsServiceServer) Fix ¶
func (UnimplementedBracketsServiceServer) Fix(context.Context, *BracketsFixRequest) (*BracketsFixResponse, error)
func (UnimplementedBracketsServiceServer) Validate ¶
func (UnimplementedBracketsServiceServer) Validate(context.Context, *BracketsValidateRequest) (*BracketsValidateResponse, error)
type UnsafeBracketsServiceServer ¶
type UnsafeBracketsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBracketsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BracketsServiceServer will result in compilation errors.