Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMsgServiceHTTPServer(s *http.Server, srv MsgServiceHTTPServer)
- func RegisterMsgServiceServer(s grpc.ServiceRegistrar, srv MsgServiceServer)
- type MsgServiceClient
- type MsgServiceHTTPClient
- type MsgServiceHTTPClientImpl
- type MsgServiceHTTPServer
- type MsgServiceServer
- type QueryPreparedRequest
- func (*QueryPreparedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPreparedRequest) GetService() string
- func (*QueryPreparedRequest) ProtoMessage()
- func (x *QueryPreparedRequest) ProtoReflect() protoreflect.Message
- func (x *QueryPreparedRequest) Reset()
- func (x *QueryPreparedRequest) String() string
- func (m *QueryPreparedRequest) Validate() error
- func (m *QueryPreparedRequest) ValidateAll() error
- type QueryPreparedRequestMultiError
- type QueryPreparedRequestValidationError
- func (e QueryPreparedRequestValidationError) Cause() error
- func (e QueryPreparedRequestValidationError) Error() string
- func (e QueryPreparedRequestValidationError) ErrorName() string
- func (e QueryPreparedRequestValidationError) Field() string
- func (e QueryPreparedRequestValidationError) Key() bool
- func (e QueryPreparedRequestValidationError) Reason() string
- type UnimplementedMsgServiceServer
- type UnsafeMsgServiceServer
Constants ¶
const OperationMsgServiceQueryPrepared = "/dtm.api.dtm.v1.MsgService/QueryPrepared"
Variables ¶
var File_dtm_api_dtm_v1_dtm_proto protoreflect.FileDescriptor
var MsgService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dtm.api.dtm.v1.MsgService", HandlerType: (*MsgServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "QueryPrepared", Handler: _MsgService_QueryPrepared_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dtm/api/dtm/v1/dtm.proto", }
MsgService_ServiceDesc is the grpc.ServiceDesc for MsgService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServiceHTTPServer ¶
func RegisterMsgServiceHTTPServer(s *http.Server, srv MsgServiceHTTPServer)
func RegisterMsgServiceServer ¶
func RegisterMsgServiceServer(s grpc.ServiceRegistrar, srv MsgServiceServer)
Types ¶
type MsgServiceClient ¶
type MsgServiceClient interface {
QueryPrepared(ctx context.Context, in *QueryPreparedRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
MsgServiceClient is the client API for MsgService 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 NewMsgServiceClient ¶
func NewMsgServiceClient(cc grpc.ClientConnInterface) MsgServiceClient
type MsgServiceHTTPClient ¶
type MsgServiceHTTPClient interface {
QueryPrepared(ctx context.Context, req *QueryPreparedRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}
func NewMsgServiceHTTPClient ¶
func NewMsgServiceHTTPClient(client *http.Client) MsgServiceHTTPClient
type MsgServiceHTTPClientImpl ¶
type MsgServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MsgServiceHTTPClientImpl) QueryPrepared ¶
func (c *MsgServiceHTTPClientImpl) QueryPrepared(ctx context.Context, in *QueryPreparedRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type MsgServiceHTTPServer ¶
type MsgServiceServer ¶
type MsgServiceServer interface {
QueryPrepared(context.Context, *QueryPreparedRequest) (*emptypb.Empty, error)
}
MsgServiceServer is the server API for MsgService service. All implementations should embed UnimplementedMsgServiceServer for forward compatibility
func NewMsgServiceClientProxy ¶
func NewMsgServiceClientProxy(cc MsgServiceClient) MsgServiceServer
type QueryPreparedRequest ¶
type QueryPreparedRequest struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*QueryPreparedRequest) Descriptor
deprecated
func (*QueryPreparedRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPreparedRequest.ProtoReflect.Descriptor instead.
func (*QueryPreparedRequest) GetService ¶
func (x *QueryPreparedRequest) GetService() string
func (*QueryPreparedRequest) ProtoMessage ¶
func (*QueryPreparedRequest) ProtoMessage()
func (*QueryPreparedRequest) ProtoReflect ¶
func (x *QueryPreparedRequest) ProtoReflect() protoreflect.Message
func (*QueryPreparedRequest) Reset ¶
func (x *QueryPreparedRequest) Reset()
func (*QueryPreparedRequest) String ¶
func (x *QueryPreparedRequest) String() string
func (*QueryPreparedRequest) Validate ¶
func (m *QueryPreparedRequest) Validate() error
Validate checks the field values on QueryPreparedRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryPreparedRequest) ValidateAll ¶
func (m *QueryPreparedRequest) ValidateAll() error
ValidateAll checks the field values on QueryPreparedRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryPreparedRequestMultiError, or nil if none found.
type QueryPreparedRequestMultiError ¶
type QueryPreparedRequestMultiError []error
QueryPreparedRequestMultiError is an error wrapping multiple validation errors returned by QueryPreparedRequest.ValidateAll() if the designated constraints aren't met.
func (QueryPreparedRequestMultiError) AllErrors ¶
func (m QueryPreparedRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryPreparedRequestMultiError) Error ¶
func (m QueryPreparedRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryPreparedRequestValidationError ¶
type QueryPreparedRequestValidationError struct {
// contains filtered or unexported fields
}
QueryPreparedRequestValidationError is the validation error returned by QueryPreparedRequest.Validate if the designated constraints aren't met.
func (QueryPreparedRequestValidationError) Cause ¶
func (e QueryPreparedRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryPreparedRequestValidationError) Error ¶
func (e QueryPreparedRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryPreparedRequestValidationError) ErrorName ¶
func (e QueryPreparedRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryPreparedRequestValidationError) Field ¶
func (e QueryPreparedRequestValidationError) Field() string
Field function returns field value.
func (QueryPreparedRequestValidationError) Key ¶
func (e QueryPreparedRequestValidationError) Key() bool
Key function returns key value.
func (QueryPreparedRequestValidationError) Reason ¶
func (e QueryPreparedRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMsgServiceServer ¶
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMsgServiceServer) QueryPrepared ¶
func (UnimplementedMsgServiceServer) QueryPrepared(context.Context, *QueryPreparedRequest) (*emptypb.Empty, error)
type UnsafeMsgServiceServer ¶
type UnsafeMsgServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServiceServer will result in compilation errors.