disfunction

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: 26 Imported by: 0

Documentation

Index

Constants

View Source
const OperationDisfunctionCreateDisfunction = "/api.patient.disfunction.Disfunction/CreateDisfunction"
View Source
const OperationDisfunctionDeleteDisfunction = "/api.patient.disfunction.Disfunction/DeleteDisfunction"
View Source
const OperationDisfunctionGetDisfunction = "/api.patient.disfunction.Disfunction/GetDisfunction"
View Source
const OperationDisfunctionListDisfunction = "/api.patient.disfunction.Disfunction/ListDisfunction"
View Source
const OperationDisfunctionUpdateDisfunction = "/api.patient.disfunction.Disfunction/UpdateDisfunction"

Variables

View Source
var Disfunction_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.patient.disfunction.Disfunction",
	HandlerType: (*DisfunctionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateDisfunction",
			Handler:    _Disfunction_CreateDisfunction_Handler,
		},
		{
			MethodName: "UpdateDisfunction",
			Handler:    _Disfunction_UpdateDisfunction_Handler,
		},
		{
			MethodName: "DeleteDisfunction",
			Handler:    _Disfunction_DeleteDisfunction_Handler,
		},
		{
			MethodName: "GetDisfunction",
			Handler:    _Disfunction_GetDisfunction_Handler,
		},
		{
			MethodName: "ListDisfunction",
			Handler:    _Disfunction_ListDisfunction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/patient/disfunction/disfunction.proto",
}

Disfunction_ServiceDesc is the grpc.ServiceDesc for Disfunction 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_api_patient_disfunction_disfunction_proto protoreflect.FileDescriptor

Functions

func RegisterDisfunctionHTTPServer

func RegisterDisfunctionHTTPServer(s *http.Server, srv DisfunctionHTTPServer)

func RegisterDisfunctionServer

func RegisterDisfunctionServer(s grpc.ServiceRegistrar, srv DisfunctionServer)

Types

type CreateDisfunctionRequest

type CreateDisfunctionRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDisfunctionRequest) Descriptor deprecated

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

Deprecated: Use CreateDisfunctionRequest.ProtoReflect.Descriptor instead.

func (*CreateDisfunctionRequest) GetComment

func (x *CreateDisfunctionRequest) GetComment() string

func (*CreateDisfunctionRequest) GetName

func (x *CreateDisfunctionRequest) GetName() string

func (*CreateDisfunctionRequest) ProtoMessage

func (*CreateDisfunctionRequest) ProtoMessage()

func (*CreateDisfunctionRequest) ProtoReflect

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

func (*CreateDisfunctionRequest) Reset

func (x *CreateDisfunctionRequest) Reset()

func (*CreateDisfunctionRequest) String

func (x *CreateDisfunctionRequest) String() string

func (*CreateDisfunctionRequest) Validate

func (m *CreateDisfunctionRequest) Validate() error

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

func (m *CreateDisfunctionRequest) ValidateAll() error

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

type CreateDisfunctionRequestMultiError

type CreateDisfunctionRequestMultiError []error

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

func (CreateDisfunctionRequestMultiError) AllErrors

func (m CreateDisfunctionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateDisfunctionRequestMultiError) Error

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

type CreateDisfunctionRequestValidationError

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

CreateDisfunctionRequestValidationError is the validation error returned by CreateDisfunctionRequest.Validate if the designated constraints aren't met.

func (CreateDisfunctionRequestValidationError) Cause

Cause function returns cause value.

func (CreateDisfunctionRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateDisfunctionRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateDisfunctionRequestValidationError) Field

Field function returns field value.

func (CreateDisfunctionRequestValidationError) Key

Key function returns key value.

func (CreateDisfunctionRequestValidationError) Reason

Reason function returns reason value.

type DisfunctionClient

type DisfunctionClient interface {
	CreateDisfunction(ctx context.Context, in *CreateDisfunctionRequest, opts ...grpc.CallOption) (*api.Success, error)
	UpdateDisfunction(ctx context.Context, in *UpdateDisfunctionRequest, opts ...grpc.CallOption) (*api.Success, error)
	DeleteDisfunction(ctx context.Context, in *api.IDRequest, opts ...grpc.CallOption) (*api.Success, error)
	GetDisfunction(ctx context.Context, in *api.IDRequest, opts ...grpc.CallOption) (*GetDisfunctionReply, error)
	ListDisfunction(ctx context.Context, in *ListDisfunctionRequest, opts ...grpc.CallOption) (*ListDisfunctionReply, error)
}

DisfunctionClient is the client API for Disfunction 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 DisfunctionHTTPClient

type DisfunctionHTTPClient interface {
	CreateDisfunction(ctx context.Context, req *CreateDisfunctionRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	DeleteDisfunction(ctx context.Context, req *api.IDRequest, opts ...http.CallOption) (rsp *api.Success, err error)
	GetDisfunction(ctx context.Context, req *api.IDRequest, opts ...http.CallOption) (rsp *GetDisfunctionReply, err error)
	ListDisfunction(ctx context.Context, req *ListDisfunctionRequest, opts ...http.CallOption) (rsp *ListDisfunctionReply, err error)
	UpdateDisfunction(ctx context.Context, req *UpdateDisfunctionRequest, opts ...http.CallOption) (rsp *api.Success, err error)
}

func NewDisfunctionHTTPClient

func NewDisfunctionHTTPClient(client *http.Client) DisfunctionHTTPClient

type DisfunctionHTTPClientImpl

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

func (*DisfunctionHTTPClientImpl) CreateDisfunction

func (*DisfunctionHTTPClientImpl) DeleteDisfunction

func (c *DisfunctionHTTPClientImpl) DeleteDisfunction(ctx context.Context, in *api.IDRequest, opts ...http.CallOption) (*api.Success, error)

func (*DisfunctionHTTPClientImpl) GetDisfunction

func (*DisfunctionHTTPClientImpl) ListDisfunction

func (*DisfunctionHTTPClientImpl) UpdateDisfunction

type DisfunctionHTTPServer

type DisfunctionHTTPServer interface {
	CreateDisfunction(context.Context, *CreateDisfunctionRequest) (*api.Success, error)
	DeleteDisfunction(context.Context, *api.IDRequest) (*api.Success, error)
	GetDisfunction(context.Context, *api.IDRequest) (*GetDisfunctionReply, error)
	ListDisfunction(context.Context, *ListDisfunctionRequest) (*ListDisfunctionReply, error)
	UpdateDisfunction(context.Context, *UpdateDisfunctionRequest) (*api.Success, error)
}

type DisfunctionServer

type DisfunctionServer interface {
	CreateDisfunction(context.Context, *CreateDisfunctionRequest) (*api.Success, error)
	UpdateDisfunction(context.Context, *UpdateDisfunctionRequest) (*api.Success, error)
	DeleteDisfunction(context.Context, *api.IDRequest) (*api.Success, error)
	GetDisfunction(context.Context, *api.IDRequest) (*GetDisfunctionReply, error)
	ListDisfunction(context.Context, *ListDisfunctionRequest) (*ListDisfunctionReply, error)
	// contains filtered or unexported methods
}

DisfunctionServer is the server API for Disfunction service. All implementations must embed UnimplementedDisfunctionServer for forward compatibility

type GetDisfunctionReply

type GetDisfunctionReply struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDisfunctionReply) Descriptor deprecated

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

Deprecated: Use GetDisfunctionReply.ProtoReflect.Descriptor instead.

func (*GetDisfunctionReply) GetComment

func (x *GetDisfunctionReply) GetComment() string

func (*GetDisfunctionReply) GetId

func (x *GetDisfunctionReply) GetId() string

func (*GetDisfunctionReply) GetName

func (x *GetDisfunctionReply) GetName() string

func (*GetDisfunctionReply) ProtoMessage

func (*GetDisfunctionReply) ProtoMessage()

func (*GetDisfunctionReply) ProtoReflect

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

func (*GetDisfunctionReply) Reset

func (x *GetDisfunctionReply) Reset()

func (*GetDisfunctionReply) String

func (x *GetDisfunctionReply) String() string

func (*GetDisfunctionReply) Validate

func (m *GetDisfunctionReply) Validate() error

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

func (m *GetDisfunctionReply) ValidateAll() error

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

type GetDisfunctionReplyMultiError

type GetDisfunctionReplyMultiError []error

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

func (GetDisfunctionReplyMultiError) AllErrors

func (m GetDisfunctionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetDisfunctionReplyMultiError) Error

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

type GetDisfunctionReplyValidationError

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

GetDisfunctionReplyValidationError is the validation error returned by GetDisfunctionReply.Validate if the designated constraints aren't met.

func (GetDisfunctionReplyValidationError) Cause

Cause function returns cause value.

func (GetDisfunctionReplyValidationError) Error

Error satisfies the builtin error interface

func (GetDisfunctionReplyValidationError) ErrorName

ErrorName returns error name.

func (GetDisfunctionReplyValidationError) Field

Field function returns field value.

func (GetDisfunctionReplyValidationError) Key

Key function returns key value.

func (GetDisfunctionReplyValidationError) Reason

Reason function returns reason value.

type ListDisfunctionReply

type ListDisfunctionReply struct {
	DataList []*GetDisfunctionReply `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 (*ListDisfunctionReply) Descriptor deprecated

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

Deprecated: Use ListDisfunctionReply.ProtoReflect.Descriptor instead.

func (*ListDisfunctionReply) GetDataList

func (x *ListDisfunctionReply) GetDataList() []*GetDisfunctionReply

func (*ListDisfunctionReply) GetPage

func (x *ListDisfunctionReply) GetPage() int32

func (*ListDisfunctionReply) GetPerPage

func (x *ListDisfunctionReply) GetPerPage() int32

func (*ListDisfunctionReply) GetTotal

func (x *ListDisfunctionReply) GetTotal() int32

func (*ListDisfunctionReply) ProtoMessage

func (*ListDisfunctionReply) ProtoMessage()

func (*ListDisfunctionReply) ProtoReflect

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

func (*ListDisfunctionReply) Reset

func (x *ListDisfunctionReply) Reset()

func (*ListDisfunctionReply) String

func (x *ListDisfunctionReply) String() string

func (*ListDisfunctionReply) Validate

func (m *ListDisfunctionReply) Validate() error

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

func (m *ListDisfunctionReply) ValidateAll() error

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

type ListDisfunctionReplyMultiError

type ListDisfunctionReplyMultiError []error

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

func (ListDisfunctionReplyMultiError) AllErrors

func (m ListDisfunctionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDisfunctionReplyMultiError) Error

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

type ListDisfunctionReplyValidationError

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

ListDisfunctionReplyValidationError is the validation error returned by ListDisfunctionReply.Validate if the designated constraints aren't met.

func (ListDisfunctionReplyValidationError) Cause

Cause function returns cause value.

func (ListDisfunctionReplyValidationError) Error

Error satisfies the builtin error interface

func (ListDisfunctionReplyValidationError) ErrorName

ErrorName returns error name.

func (ListDisfunctionReplyValidationError) Field

Field function returns field value.

func (ListDisfunctionReplyValidationError) Key

Key function returns key value.

func (ListDisfunctionReplyValidationError) Reason

Reason function returns reason value.

type ListDisfunctionRequest

type ListDisfunctionRequest 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"`
	Name    string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDisfunctionRequest) Descriptor deprecated

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

Deprecated: Use ListDisfunctionRequest.ProtoReflect.Descriptor instead.

func (*ListDisfunctionRequest) GetName

func (x *ListDisfunctionRequest) GetName() string

func (*ListDisfunctionRequest) GetPage

func (x *ListDisfunctionRequest) GetPage() int32

func (*ListDisfunctionRequest) GetPerPage

func (x *ListDisfunctionRequest) GetPerPage() int32

func (*ListDisfunctionRequest) ProtoMessage

func (*ListDisfunctionRequest) ProtoMessage()

func (*ListDisfunctionRequest) ProtoReflect

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

func (*ListDisfunctionRequest) Reset

func (x *ListDisfunctionRequest) Reset()

func (*ListDisfunctionRequest) String

func (x *ListDisfunctionRequest) String() string

func (*ListDisfunctionRequest) Validate

func (m *ListDisfunctionRequest) Validate() error

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

func (m *ListDisfunctionRequest) ValidateAll() error

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

type ListDisfunctionRequestMultiError

type ListDisfunctionRequestMultiError []error

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

func (ListDisfunctionRequestMultiError) AllErrors

func (m ListDisfunctionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListDisfunctionRequestMultiError) Error

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

type ListDisfunctionRequestValidationError

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

ListDisfunctionRequestValidationError is the validation error returned by ListDisfunctionRequest.Validate if the designated constraints aren't met.

func (ListDisfunctionRequestValidationError) Cause

Cause function returns cause value.

func (ListDisfunctionRequestValidationError) Error

Error satisfies the builtin error interface

func (ListDisfunctionRequestValidationError) ErrorName

ErrorName returns error name.

func (ListDisfunctionRequestValidationError) Field

Field function returns field value.

func (ListDisfunctionRequestValidationError) Key

Key function returns key value.

func (ListDisfunctionRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedDisfunctionServer

type UnimplementedDisfunctionServer struct {
}

UnimplementedDisfunctionServer must be embedded to have forward compatible implementations.

func (UnimplementedDisfunctionServer) CreateDisfunction

func (UnimplementedDisfunctionServer) DeleteDisfunction

func (UnimplementedDisfunctionServer) GetDisfunction

func (UnimplementedDisfunctionServer) ListDisfunction

func (UnimplementedDisfunctionServer) UpdateDisfunction

type UnsafeDisfunctionServer

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

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

type UpdateDisfunctionRequest

type UpdateDisfunctionRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Id      string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateDisfunctionRequest) Descriptor deprecated

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

Deprecated: Use UpdateDisfunctionRequest.ProtoReflect.Descriptor instead.

func (*UpdateDisfunctionRequest) GetComment

func (x *UpdateDisfunctionRequest) GetComment() string

func (*UpdateDisfunctionRequest) GetId

func (x *UpdateDisfunctionRequest) GetId() string

func (*UpdateDisfunctionRequest) GetName

func (x *UpdateDisfunctionRequest) GetName() string

func (*UpdateDisfunctionRequest) ProtoMessage

func (*UpdateDisfunctionRequest) ProtoMessage()

func (*UpdateDisfunctionRequest) ProtoReflect

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

func (*UpdateDisfunctionRequest) Reset

func (x *UpdateDisfunctionRequest) Reset()

func (*UpdateDisfunctionRequest) String

func (x *UpdateDisfunctionRequest) String() string

func (*UpdateDisfunctionRequest) Validate

func (m *UpdateDisfunctionRequest) Validate() error

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

func (m *UpdateDisfunctionRequest) ValidateAll() error

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

type UpdateDisfunctionRequestMultiError

type UpdateDisfunctionRequestMultiError []error

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

func (UpdateDisfunctionRequestMultiError) AllErrors

func (m UpdateDisfunctionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateDisfunctionRequestMultiError) Error

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

type UpdateDisfunctionRequestValidationError

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

UpdateDisfunctionRequestValidationError is the validation error returned by UpdateDisfunctionRequest.Validate if the designated constraints aren't met.

func (UpdateDisfunctionRequestValidationError) Cause

Cause function returns cause value.

func (UpdateDisfunctionRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateDisfunctionRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateDisfunctionRequestValidationError) Field

Field function returns field value.

func (UpdateDisfunctionRequestValidationError) Key

Key function returns key value.

func (UpdateDisfunctionRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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