order_check_api

package module
v0.0.0-...-266dbdf Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package order_check_api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var CheckService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ozonmp.order_check_api.v1.CheckService",
	HandlerType: (*CheckServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCheckV1",
			Handler:    _CheckService_CreateCheckV1_Handler,
		},
		{
			MethodName: "DescribeCheckV1",
			Handler:    _CheckService_DescribeCheckV1_Handler,
		},
		{
			MethodName: "ListChecksV1",
			Handler:    _CheckService_ListChecksV1_Handler,
		},
		{
			MethodName: "RemoveCheckV1",
			Handler:    _CheckService_RemoveCheckV1_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ozonmp/order_check_api/v1/order_check_api.proto",
}

CheckService_ServiceDesc is the grpc.ServiceDesc for CheckService 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_ozonmp_order_check_api_v1_order_check_api_proto protoreflect.FileDescriptor

Functions

func RegisterCheckServiceHandler

func RegisterCheckServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCheckServiceHandler registers the http handlers for service CheckService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCheckServiceHandlerClient

func RegisterCheckServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CheckServiceClient) error

RegisterCheckServiceHandlerClient registers the http handlers for service CheckService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CheckServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CheckServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CheckServiceClient" to call the correct interceptors.

func RegisterCheckServiceHandlerFromEndpoint

func RegisterCheckServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCheckServiceHandlerFromEndpoint is same as RegisterCheckServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCheckServiceHandlerServer

func RegisterCheckServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CheckServiceServer) error

RegisterCheckServiceHandlerServer registers the http handlers for service CheckService to "mux". UnaryRPC :call CheckServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCheckServiceHandlerFromEndpoint instead.

func RegisterCheckServiceServer

func RegisterCheckServiceServer(s grpc.ServiceRegistrar, srv CheckServiceServer)

Types

type CheckServiceClient

type CheckServiceClient interface {
	// Create check
	CreateCheckV1(ctx context.Context, in *CreateCheckV1Request, opts ...grpc.CallOption) (*CreateCheckV1Response, error)
	// Describe Check
	DescribeCheckV1(ctx context.Context, in *DescribeCheckV1Request, opts ...grpc.CallOption) (*DescribeCheckV1Response, error)
	// List of checks
	ListChecksV1(ctx context.Context, in *ListChecksV1Request, opts ...grpc.CallOption) (*ListChecksV1Response, error)
	// Remove check
	RemoveCheckV1(ctx context.Context, in *RemoveCheckV1Request, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CheckServiceClient is the client API for CheckService 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.

type CheckServiceServer

type CheckServiceServer interface {
	// Create check
	CreateCheckV1(context.Context, *CreateCheckV1Request) (*CreateCheckV1Response, error)
	// Describe Check
	DescribeCheckV1(context.Context, *DescribeCheckV1Request) (*DescribeCheckV1Response, error)
	// List of checks
	ListChecksV1(context.Context, *ListChecksV1Request) (*ListChecksV1Response, error)
	// Remove check
	RemoveCheckV1(context.Context, *RemoveCheckV1Request) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

CheckServiceServer is the server API for CheckService service. All implementations must embed UnimplementedCheckServiceServer for forward compatibility

type CheckV1

type CheckV1 struct {
	CheckId  uint64 `protobuf:"varint,1,opt,name=check_id,json=checkId,proto3" json:"check_id,omitempty"`
	OrderId  string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	TotalSum uint64 `protobuf:"varint,3,opt,name=total_sum,json=totalSum,proto3" json:"total_sum,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckV1) Descriptor deprecated

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

Deprecated: Use CheckV1.ProtoReflect.Descriptor instead.

func (*CheckV1) GetCheckId

func (x *CheckV1) GetCheckId() uint64

func (*CheckV1) GetOrderId

func (x *CheckV1) GetOrderId() string

func (*CheckV1) GetTotalSum

func (x *CheckV1) GetTotalSum() uint64

func (*CheckV1) ProtoMessage

func (*CheckV1) ProtoMessage()

func (*CheckV1) ProtoReflect

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

func (*CheckV1) Reset

func (x *CheckV1) Reset()

func (*CheckV1) String

func (x *CheckV1) String() string

func (*CheckV1) Validate

func (m *CheckV1) Validate() error

Validate checks the field values on CheckV1 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CheckV1ValidationError

type CheckV1ValidationError struct {
	// contains filtered or unexported fields
}

CheckV1ValidationError is the validation error returned by CheckV1.Validate if the designated constraints aren't met.

func (CheckV1ValidationError) Cause

func (e CheckV1ValidationError) Cause() error

Cause function returns cause value.

func (CheckV1ValidationError) Error

func (e CheckV1ValidationError) Error() string

Error satisfies the builtin error interface

func (CheckV1ValidationError) ErrorName

func (e CheckV1ValidationError) ErrorName() string

ErrorName returns error name.

func (CheckV1ValidationError) Field

func (e CheckV1ValidationError) Field() string

Field function returns field value.

func (CheckV1ValidationError) Key

func (e CheckV1ValidationError) Key() bool

Key function returns key value.

func (CheckV1ValidationError) Reason

func (e CheckV1ValidationError) Reason() string

Reason function returns reason value.

type CreateCheckV1Request

type CreateCheckV1Request struct {
	OrderId  string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	TotalSum uint64 `protobuf:"varint,2,opt,name=total_sum,json=totalSum,proto3" json:"total_sum,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCheckV1Request) Descriptor deprecated

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

Deprecated: Use CreateCheckV1Request.ProtoReflect.Descriptor instead.

func (*CreateCheckV1Request) GetOrderId

func (x *CreateCheckV1Request) GetOrderId() string

func (*CreateCheckV1Request) GetTotalSum

func (x *CreateCheckV1Request) GetTotalSum() uint64

func (*CreateCheckV1Request) ProtoMessage

func (*CreateCheckV1Request) ProtoMessage()

func (*CreateCheckV1Request) ProtoReflect

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

func (*CreateCheckV1Request) Reset

func (x *CreateCheckV1Request) Reset()

func (*CreateCheckV1Request) String

func (x *CreateCheckV1Request) String() string

func (*CreateCheckV1Request) Validate

func (m *CreateCheckV1Request) Validate() error

Validate checks the field values on CreateCheckV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateCheckV1RequestValidationError

type CreateCheckV1RequestValidationError struct {
	// contains filtered or unexported fields
}

CreateCheckV1RequestValidationError is the validation error returned by CreateCheckV1Request.Validate if the designated constraints aren't met.

func (CreateCheckV1RequestValidationError) Cause

Cause function returns cause value.

func (CreateCheckV1RequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCheckV1RequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCheckV1RequestValidationError) Field

Field function returns field value.

func (CreateCheckV1RequestValidationError) Key

Key function returns key value.

func (CreateCheckV1RequestValidationError) Reason

Reason function returns reason value.

type CreateCheckV1Response

type CreateCheckV1Response struct {
	Check *CheckV1 `protobuf:"bytes,1,opt,name=check,proto3" json:"check,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCheckV1Response) Descriptor deprecated

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

Deprecated: Use CreateCheckV1Response.ProtoReflect.Descriptor instead.

func (*CreateCheckV1Response) GetCheck

func (x *CreateCheckV1Response) GetCheck() *CheckV1

func (*CreateCheckV1Response) ProtoMessage

func (*CreateCheckV1Response) ProtoMessage()

func (*CreateCheckV1Response) ProtoReflect

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

func (*CreateCheckV1Response) Reset

func (x *CreateCheckV1Response) Reset()

func (*CreateCheckV1Response) String

func (x *CreateCheckV1Response) String() string

func (*CreateCheckV1Response) Validate

func (m *CreateCheckV1Response) Validate() error

Validate checks the field values on CreateCheckV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateCheckV1ResponseValidationError

type CreateCheckV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateCheckV1ResponseValidationError is the validation error returned by CreateCheckV1Response.Validate if the designated constraints aren't met.

func (CreateCheckV1ResponseValidationError) Cause

Cause function returns cause value.

func (CreateCheckV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateCheckV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateCheckV1ResponseValidationError) Field

Field function returns field value.

func (CreateCheckV1ResponseValidationError) Key

Key function returns key value.

func (CreateCheckV1ResponseValidationError) Reason

Reason function returns reason value.

type DescribeCheckV1Request

type DescribeCheckV1Request struct {
	CheckId uint64 `protobuf:"varint,1,opt,name=check_id,json=checkId,proto3" json:"check_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeCheckV1Request) Descriptor deprecated

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

Deprecated: Use DescribeCheckV1Request.ProtoReflect.Descriptor instead.

func (*DescribeCheckV1Request) GetCheckId

func (x *DescribeCheckV1Request) GetCheckId() uint64

func (*DescribeCheckV1Request) ProtoMessage

func (*DescribeCheckV1Request) ProtoMessage()

func (*DescribeCheckV1Request) ProtoReflect

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

func (*DescribeCheckV1Request) Reset

func (x *DescribeCheckV1Request) Reset()

func (*DescribeCheckV1Request) String

func (x *DescribeCheckV1Request) String() string

func (*DescribeCheckV1Request) Validate

func (m *DescribeCheckV1Request) Validate() error

Validate checks the field values on DescribeCheckV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DescribeCheckV1RequestValidationError

type DescribeCheckV1RequestValidationError struct {
	// contains filtered or unexported fields
}

DescribeCheckV1RequestValidationError is the validation error returned by DescribeCheckV1Request.Validate if the designated constraints aren't met.

func (DescribeCheckV1RequestValidationError) Cause

Cause function returns cause value.

func (DescribeCheckV1RequestValidationError) Error

Error satisfies the builtin error interface

func (DescribeCheckV1RequestValidationError) ErrorName

ErrorName returns error name.

func (DescribeCheckV1RequestValidationError) Field

Field function returns field value.

func (DescribeCheckV1RequestValidationError) Key

Key function returns key value.

func (DescribeCheckV1RequestValidationError) Reason

Reason function returns reason value.

type DescribeCheckV1Response

type DescribeCheckV1Response struct {
	Check *CheckV1 `protobuf:"bytes,1,opt,name=check,proto3" json:"check,omitempty"`
	// contains filtered or unexported fields
}

func (*DescribeCheckV1Response) Descriptor deprecated

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

Deprecated: Use DescribeCheckV1Response.ProtoReflect.Descriptor instead.

func (*DescribeCheckV1Response) GetCheck

func (x *DescribeCheckV1Response) GetCheck() *CheckV1

func (*DescribeCheckV1Response) ProtoMessage

func (*DescribeCheckV1Response) ProtoMessage()

func (*DescribeCheckV1Response) ProtoReflect

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

func (*DescribeCheckV1Response) Reset

func (x *DescribeCheckV1Response) Reset()

func (*DescribeCheckV1Response) String

func (x *DescribeCheckV1Response) String() string

func (*DescribeCheckV1Response) Validate

func (m *DescribeCheckV1Response) Validate() error

Validate checks the field values on DescribeCheckV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DescribeCheckV1ResponseValidationError

type DescribeCheckV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

DescribeCheckV1ResponseValidationError is the validation error returned by DescribeCheckV1Response.Validate if the designated constraints aren't met.

func (DescribeCheckV1ResponseValidationError) Cause

Cause function returns cause value.

func (DescribeCheckV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (DescribeCheckV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (DescribeCheckV1ResponseValidationError) Field

Field function returns field value.

func (DescribeCheckV1ResponseValidationError) Key

Key function returns key value.

func (DescribeCheckV1ResponseValidationError) Reason

Reason function returns reason value.

type ListChecksV1Request

type ListChecksV1Request struct {
	Paging *ListChecksV1Request_Paging `protobuf:"bytes,1,opt,name=paging,proto3" json:"paging,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChecksV1Request) Descriptor deprecated

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

Deprecated: Use ListChecksV1Request.ProtoReflect.Descriptor instead.

func (*ListChecksV1Request) GetPaging

func (*ListChecksV1Request) ProtoMessage

func (*ListChecksV1Request) ProtoMessage()

func (*ListChecksV1Request) ProtoReflect

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

func (*ListChecksV1Request) Reset

func (x *ListChecksV1Request) Reset()

func (*ListChecksV1Request) String

func (x *ListChecksV1Request) String() string

func (*ListChecksV1Request) Validate

func (m *ListChecksV1Request) Validate() error

Validate checks the field values on ListChecksV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListChecksV1RequestValidationError

type ListChecksV1RequestValidationError struct {
	// contains filtered or unexported fields
}

ListChecksV1RequestValidationError is the validation error returned by ListChecksV1Request.Validate if the designated constraints aren't met.

func (ListChecksV1RequestValidationError) Cause

Cause function returns cause value.

func (ListChecksV1RequestValidationError) Error

Error satisfies the builtin error interface

func (ListChecksV1RequestValidationError) ErrorName

ErrorName returns error name.

func (ListChecksV1RequestValidationError) Field

Field function returns field value.

func (ListChecksV1RequestValidationError) Key

Key function returns key value.

func (ListChecksV1RequestValidationError) Reason

Reason function returns reason value.

type ListChecksV1Request_Paging

type ListChecksV1Request_Paging struct {
	Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit  uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChecksV1Request_Paging) Descriptor deprecated

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

Deprecated: Use ListChecksV1Request_Paging.ProtoReflect.Descriptor instead.

func (*ListChecksV1Request_Paging) GetLimit

func (x *ListChecksV1Request_Paging) GetLimit() uint64

func (*ListChecksV1Request_Paging) GetOffset

func (x *ListChecksV1Request_Paging) GetOffset() uint64

func (*ListChecksV1Request_Paging) ProtoMessage

func (*ListChecksV1Request_Paging) ProtoMessage()

func (*ListChecksV1Request_Paging) ProtoReflect

func (*ListChecksV1Request_Paging) Reset

func (x *ListChecksV1Request_Paging) Reset()

func (*ListChecksV1Request_Paging) String

func (x *ListChecksV1Request_Paging) String() string

func (*ListChecksV1Request_Paging) Validate

func (m *ListChecksV1Request_Paging) Validate() error

Validate checks the field values on ListChecksV1Request_Paging with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListChecksV1Request_PagingValidationError

type ListChecksV1Request_PagingValidationError struct {
	// contains filtered or unexported fields
}

ListChecksV1Request_PagingValidationError is the validation error returned by ListChecksV1Request_Paging.Validate if the designated constraints aren't met.

func (ListChecksV1Request_PagingValidationError) Cause

Cause function returns cause value.

func (ListChecksV1Request_PagingValidationError) Error

Error satisfies the builtin error interface

func (ListChecksV1Request_PagingValidationError) ErrorName

ErrorName returns error name.

func (ListChecksV1Request_PagingValidationError) Field

Field function returns field value.

func (ListChecksV1Request_PagingValidationError) Key

Key function returns key value.

func (ListChecksV1Request_PagingValidationError) Reason

Reason function returns reason value.

type ListChecksV1Response

type ListChecksV1Response struct {
	Checks []*CheckV1 `protobuf:"bytes,1,rep,name=checks,proto3" json:"checks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListChecksV1Response) Descriptor deprecated

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

Deprecated: Use ListChecksV1Response.ProtoReflect.Descriptor instead.

func (*ListChecksV1Response) GetChecks

func (x *ListChecksV1Response) GetChecks() []*CheckV1

func (*ListChecksV1Response) ProtoMessage

func (*ListChecksV1Response) ProtoMessage()

func (*ListChecksV1Response) ProtoReflect

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

func (*ListChecksV1Response) Reset

func (x *ListChecksV1Response) Reset()

func (*ListChecksV1Response) String

func (x *ListChecksV1Response) String() string

func (*ListChecksV1Response) Validate

func (m *ListChecksV1Response) Validate() error

Validate checks the field values on ListChecksV1Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListChecksV1ResponseValidationError

type ListChecksV1ResponseValidationError struct {
	// contains filtered or unexported fields
}

ListChecksV1ResponseValidationError is the validation error returned by ListChecksV1Response.Validate if the designated constraints aren't met.

func (ListChecksV1ResponseValidationError) Cause

Cause function returns cause value.

func (ListChecksV1ResponseValidationError) Error

Error satisfies the builtin error interface

func (ListChecksV1ResponseValidationError) ErrorName

ErrorName returns error name.

func (ListChecksV1ResponseValidationError) Field

Field function returns field value.

func (ListChecksV1ResponseValidationError) Key

Key function returns key value.

func (ListChecksV1ResponseValidationError) Reason

Reason function returns reason value.

type RemoveCheckV1Request

type RemoveCheckV1Request struct {
	CheckId uint64 `protobuf:"varint,1,opt,name=check_id,json=checkId,proto3" json:"check_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveCheckV1Request) Descriptor deprecated

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

Deprecated: Use RemoveCheckV1Request.ProtoReflect.Descriptor instead.

func (*RemoveCheckV1Request) GetCheckId

func (x *RemoveCheckV1Request) GetCheckId() uint64

func (*RemoveCheckV1Request) ProtoMessage

func (*RemoveCheckV1Request) ProtoMessage()

func (*RemoveCheckV1Request) ProtoReflect

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

func (*RemoveCheckV1Request) Reset

func (x *RemoveCheckV1Request) Reset()

func (*RemoveCheckV1Request) String

func (x *RemoveCheckV1Request) String() string

func (*RemoveCheckV1Request) Validate

func (m *RemoveCheckV1Request) Validate() error

Validate checks the field values on RemoveCheckV1Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RemoveCheckV1RequestValidationError

type RemoveCheckV1RequestValidationError struct {
	// contains filtered or unexported fields
}

RemoveCheckV1RequestValidationError is the validation error returned by RemoveCheckV1Request.Validate if the designated constraints aren't met.

func (RemoveCheckV1RequestValidationError) Cause

Cause function returns cause value.

func (RemoveCheckV1RequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveCheckV1RequestValidationError) ErrorName

ErrorName returns error name.

func (RemoveCheckV1RequestValidationError) Field

Field function returns field value.

func (RemoveCheckV1RequestValidationError) Key

Key function returns key value.

func (RemoveCheckV1RequestValidationError) Reason

Reason function returns reason value.

type UnimplementedCheckServiceServer

type UnimplementedCheckServiceServer struct {
}

UnimplementedCheckServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCheckServiceServer) CreateCheckV1

func (UnimplementedCheckServiceServer) DescribeCheckV1

func (UnimplementedCheckServiceServer) ListChecksV1

func (UnimplementedCheckServiceServer) RemoveCheckV1

type UnsafeCheckServiceServer

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

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

Directories

Path Synopsis
google.golang.org
protobuf/types/known/timestamppb
Package timestamppb contains generated types for google/protobuf/timestamp.proto.
Package timestamppb contains generated types for google/protobuf/timestamp.proto.

Jump to

Keyboard shortcuts

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