icd

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const OperationIcdListIcd = "/api.patient.icd.Icd/ListIcd"

Variables

View Source
var File_api_patient_icd_icd_proto protoreflect.FileDescriptor
View Source
var Icd_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.patient.icd.Icd",
	HandlerType: (*IcdServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListIcd",
			Handler:    _Icd_ListIcd_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/patient/icd/icd.proto",
}

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

Functions

func RegisterIcdHTTPServer

func RegisterIcdHTTPServer(s *http.Server, srv IcdHTTPServer)

func RegisterIcdServer

func RegisterIcdServer(s grpc.ServiceRegistrar, srv IcdServer)

Types

type GetIcdReply

type GetIcdReply struct {
	Code      string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Diagnosis string `protobuf:"bytes,2,opt,name=diagnosis,proto3" json:"diagnosis,omitempty"`
	ExtraCode string `protobuf:"bytes,3,opt,name=extraCode,proto3" json:"extraCode,omitempty"`
	// contains filtered or unexported fields
}

func (*GetIcdReply) Descriptor deprecated

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

Deprecated: Use GetIcdReply.ProtoReflect.Descriptor instead.

func (*GetIcdReply) GetCode

func (x *GetIcdReply) GetCode() string

func (*GetIcdReply) GetDiagnosis

func (x *GetIcdReply) GetDiagnosis() string

func (*GetIcdReply) GetExtraCode

func (x *GetIcdReply) GetExtraCode() string

func (*GetIcdReply) ProtoMessage

func (*GetIcdReply) ProtoMessage()

func (*GetIcdReply) ProtoReflect

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

func (*GetIcdReply) Reset

func (x *GetIcdReply) Reset()

func (*GetIcdReply) String

func (x *GetIcdReply) String() string

func (*GetIcdReply) Validate

func (m *GetIcdReply) Validate() error

Validate checks the field values on GetIcdReply 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 (*GetIcdReply) ValidateAll

func (m *GetIcdReply) ValidateAll() error

ValidateAll checks the field values on GetIcdReply 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 GetIcdReplyMultiError, or nil if none found.

type GetIcdReplyMultiError

type GetIcdReplyMultiError []error

GetIcdReplyMultiError is an error wrapping multiple validation errors returned by GetIcdReply.ValidateAll() if the designated constraints aren't met.

func (GetIcdReplyMultiError) AllErrors

func (m GetIcdReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetIcdReplyMultiError) Error

func (m GetIcdReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetIcdReplyValidationError

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

GetIcdReplyValidationError is the validation error returned by GetIcdReply.Validate if the designated constraints aren't met.

func (GetIcdReplyValidationError) Cause

Cause function returns cause value.

func (GetIcdReplyValidationError) Error

Error satisfies the builtin error interface

func (GetIcdReplyValidationError) ErrorName

func (e GetIcdReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetIcdReplyValidationError) Field

Field function returns field value.

func (GetIcdReplyValidationError) Key

Key function returns key value.

func (GetIcdReplyValidationError) Reason

Reason function returns reason value.

type IcdClient

type IcdClient interface {
	ListIcd(ctx context.Context, in *ListIcdRequest, opts ...grpc.CallOption) (*ListIcdReply, error)
}

IcdClient is the client API for Icd 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 NewIcdClient

func NewIcdClient(cc grpc.ClientConnInterface) IcdClient

type IcdHTTPClient

type IcdHTTPClient interface {
	ListIcd(ctx context.Context, req *ListIcdRequest, opts ...http.CallOption) (rsp *ListIcdReply, err error)
}

func NewIcdHTTPClient

func NewIcdHTTPClient(client *http.Client) IcdHTTPClient

type IcdHTTPClientImpl

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

func (*IcdHTTPClientImpl) ListIcd

type IcdHTTPServer

type IcdHTTPServer interface {
	ListIcd(context.Context, *ListIcdRequest) (*ListIcdReply, error)
}

type IcdServer

type IcdServer interface {
	ListIcd(context.Context, *ListIcdRequest) (*ListIcdReply, error)
	// contains filtered or unexported methods
}

IcdServer is the server API for Icd service. All implementations must embed UnimplementedIcdServer for forward compatibility

type ListIcdReply

type ListIcdReply struct {
	DataList []*GetIcdReply `protobuf:"bytes,1,rep,name=dataList,proto3" json:"dataList,omitempty"`
	Total    int32          `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Page     int32          `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PerPage  int32          `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"`
	// contains filtered or unexported fields
}

func (*ListIcdReply) Descriptor deprecated

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

Deprecated: Use ListIcdReply.ProtoReflect.Descriptor instead.

func (*ListIcdReply) GetDataList

func (x *ListIcdReply) GetDataList() []*GetIcdReply

func (*ListIcdReply) GetPage

func (x *ListIcdReply) GetPage() int32

func (*ListIcdReply) GetPerPage

func (x *ListIcdReply) GetPerPage() int32

func (*ListIcdReply) GetTotal

func (x *ListIcdReply) GetTotal() int32

func (*ListIcdReply) ProtoMessage

func (*ListIcdReply) ProtoMessage()

func (*ListIcdReply) ProtoReflect

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

func (*ListIcdReply) Reset

func (x *ListIcdReply) Reset()

func (*ListIcdReply) String

func (x *ListIcdReply) String() string

func (*ListIcdReply) Validate

func (m *ListIcdReply) Validate() error

Validate checks the field values on ListIcdReply 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 (*ListIcdReply) ValidateAll

func (m *ListIcdReply) ValidateAll() error

ValidateAll checks the field values on ListIcdReply 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 ListIcdReplyMultiError, or nil if none found.

type ListIcdReplyMultiError

type ListIcdReplyMultiError []error

ListIcdReplyMultiError is an error wrapping multiple validation errors returned by ListIcdReply.ValidateAll() if the designated constraints aren't met.

func (ListIcdReplyMultiError) AllErrors

func (m ListIcdReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListIcdReplyMultiError) Error

func (m ListIcdReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListIcdReplyValidationError

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

ListIcdReplyValidationError is the validation error returned by ListIcdReply.Validate if the designated constraints aren't met.

func (ListIcdReplyValidationError) Cause

Cause function returns cause value.

func (ListIcdReplyValidationError) Error

Error satisfies the builtin error interface

func (ListIcdReplyValidationError) ErrorName

func (e ListIcdReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListIcdReplyValidationError) Field

Field function returns field value.

func (ListIcdReplyValidationError) Key

Key function returns key value.

func (ListIcdReplyValidationError) Reason

Reason function returns reason value.

type ListIcdRequest

type ListIcdRequest struct {
	Page      int32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PerPage   int32  `protobuf:"varint,2,opt,name=perPage,proto3" json:"perPage,omitempty"`
	Code      string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	Diagnosis string `protobuf:"bytes,4,opt,name=diagnosis,proto3" json:"diagnosis,omitempty"`
	// contains filtered or unexported fields
}

func (*ListIcdRequest) Descriptor deprecated

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

Deprecated: Use ListIcdRequest.ProtoReflect.Descriptor instead.

func (*ListIcdRequest) GetCode

func (x *ListIcdRequest) GetCode() string

func (*ListIcdRequest) GetDiagnosis

func (x *ListIcdRequest) GetDiagnosis() string

func (*ListIcdRequest) GetPage

func (x *ListIcdRequest) GetPage() int32

func (*ListIcdRequest) GetPerPage

func (x *ListIcdRequest) GetPerPage() int32

func (*ListIcdRequest) ProtoMessage

func (*ListIcdRequest) ProtoMessage()

func (*ListIcdRequest) ProtoReflect

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

func (*ListIcdRequest) Reset

func (x *ListIcdRequest) Reset()

func (*ListIcdRequest) String

func (x *ListIcdRequest) String() string

func (*ListIcdRequest) Validate

func (m *ListIcdRequest) Validate() error

Validate checks the field values on ListIcdRequest 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 (*ListIcdRequest) ValidateAll

func (m *ListIcdRequest) ValidateAll() error

ValidateAll checks the field values on ListIcdRequest 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 ListIcdRequestMultiError, or nil if none found.

type ListIcdRequestMultiError

type ListIcdRequestMultiError []error

ListIcdRequestMultiError is an error wrapping multiple validation errors returned by ListIcdRequest.ValidateAll() if the designated constraints aren't met.

func (ListIcdRequestMultiError) AllErrors

func (m ListIcdRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListIcdRequestMultiError) Error

func (m ListIcdRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListIcdRequestValidationError

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

ListIcdRequestValidationError is the validation error returned by ListIcdRequest.Validate if the designated constraints aren't met.

func (ListIcdRequestValidationError) Cause

Cause function returns cause value.

func (ListIcdRequestValidationError) Error

Error satisfies the builtin error interface

func (ListIcdRequestValidationError) ErrorName

func (e ListIcdRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListIcdRequestValidationError) Field

Field function returns field value.

func (ListIcdRequestValidationError) Key

Key function returns key value.

func (ListIcdRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedIcdServer

type UnimplementedIcdServer struct {
}

UnimplementedIcdServer must be embedded to have forward compatible implementations.

func (UnimplementedIcdServer) ListIcd

type UnsafeIcdServer

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

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

Jump to

Keyboard shortcuts

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