v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const OperationMsgServiceQueryPrepared = "/dtm.api.dtm.v1.MsgService/QueryPrepared"

Variables

View Source
var File_dtm_api_dtm_v1_dtm_proto protoreflect.FileDescriptor
View Source
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

type MsgServiceHTTPServer

type MsgServiceHTTPServer interface {
	QueryPrepared(context.Context, *QueryPreparedRequest) (*emptypb.Empty, error)
}

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

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

Cause function returns cause value.

func (QueryPreparedRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryPreparedRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryPreparedRequestValidationError) Field

Field function returns field value.

func (QueryPreparedRequestValidationError) Key

Key function returns key value.

func (QueryPreparedRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedMsgServiceServer

type UnimplementedMsgServiceServer struct {
}

UnimplementedMsgServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedMsgServiceServer) QueryPrepared

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.

Jump to

Keyboard shortcuts

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