Documentation
¶
Overview ¶
Package todoappv1beta1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterToDoAppHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterToDoAppHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ToDoAppClient) error
- func RegisterToDoAppHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterToDoAppHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ToDoAppServer) error
- func RegisterToDoAppServer(s grpc.ServiceRegistrar, srv ToDoAppServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetDetails() string
- func (x *CreateRequest) GetTitle() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- func (m *CreateRequest) Validate() error
- func (m *CreateRequest) ValidateAll() error
- type CreateRequestMultiError
- type CreateRequestValidationError
- func (e CreateRequestValidationError) Cause() error
- func (e CreateRequestValidationError) Error() string
- func (e CreateRequestValidationError) ErrorName() string
- func (e CreateRequestValidationError) Field() string
- func (e CreateRequestValidationError) Key() bool
- func (e CreateRequestValidationError) Reason() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetDetails() string
- func (x *CreateResponse) GetId() string
- func (x *CreateResponse) GetTitle() string
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- func (m *CreateResponse) Validate() error
- func (m *CreateResponse) ValidateAll() error
- type CreateResponseMultiError
- type CreateResponseValidationError
- func (e CreateResponseValidationError) Cause() error
- func (e CreateResponseValidationError) Error() string
- func (e CreateResponseValidationError) ErrorName() string
- func (e CreateResponseValidationError) Field() string
- func (e CreateResponseValidationError) Key() bool
- func (e CreateResponseValidationError) Reason() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() string
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- func (m *DeleteResponse) Validate() error
- func (m *DeleteResponse) ValidateAll() error
- type DeleteResponseMultiError
- type DeleteResponseValidationError
- func (e DeleteResponseValidationError) Cause() error
- func (e DeleteResponseValidationError) Error() string
- func (e DeleteResponseValidationError) ErrorName() string
- func (e DeleteResponseValidationError) Field() string
- func (e DeleteResponseValidationError) Key() bool
- func (e DeleteResponseValidationError) Reason() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetTodoItems() []*ListResponse_ToDoItem
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type ListResponse_ToDoItem
- func (*ListResponse_ToDoItem) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse_ToDoItem) GetDetails() string
- func (x *ListResponse_ToDoItem) GetId() string
- func (x *ListResponse_ToDoItem) GetTitle() string
- func (*ListResponse_ToDoItem) ProtoMessage()
- func (x *ListResponse_ToDoItem) ProtoReflect() protoreflect.Message
- func (x *ListResponse_ToDoItem) Reset()
- func (x *ListResponse_ToDoItem) String() string
- func (m *ListResponse_ToDoItem) Validate() error
- func (m *ListResponse_ToDoItem) ValidateAll() error
- type ListResponse_ToDoItemMultiError
- type ListResponse_ToDoItemValidationError
- func (e ListResponse_ToDoItemValidationError) Cause() error
- func (e ListResponse_ToDoItemValidationError) Error() string
- func (e ListResponse_ToDoItemValidationError) ErrorName() string
- func (e ListResponse_ToDoItemValidationError) Field() string
- func (e ListResponse_ToDoItemValidationError) Key() bool
- func (e ListResponse_ToDoItemValidationError) Reason() string
- type ToDoAppClient
- type ToDoAppServer
- type UnimplementedToDoAppServer
- func (UnimplementedToDoAppServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedToDoAppServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedToDoAppServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedToDoAppServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeToDoAppServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetId() string
- func (x *UpdateRequest) GetItem() *UpdateRequest_ToDoItem
- func (x *UpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- func (m *UpdateRequest) Validate() error
- func (m *UpdateRequest) ValidateAll() error
- type UpdateRequestMultiError
- type UpdateRequestValidationError
- func (e UpdateRequestValidationError) Cause() error
- func (e UpdateRequestValidationError) Error() string
- func (e UpdateRequestValidationError) ErrorName() string
- func (e UpdateRequestValidationError) Field() string
- func (e UpdateRequestValidationError) Key() bool
- func (e UpdateRequestValidationError) Reason() string
- type UpdateRequest_ToDoItem
- func (*UpdateRequest_ToDoItem) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest_ToDoItem) GetDetails() string
- func (x *UpdateRequest_ToDoItem) GetTitle() string
- func (*UpdateRequest_ToDoItem) ProtoMessage()
- func (x *UpdateRequest_ToDoItem) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest_ToDoItem) Reset()
- func (x *UpdateRequest_ToDoItem) String() string
- func (m *UpdateRequest_ToDoItem) Validate() error
- func (m *UpdateRequest_ToDoItem) ValidateAll() error
- type UpdateRequest_ToDoItemMultiError
- type UpdateRequest_ToDoItemValidationError
- func (e UpdateRequest_ToDoItemValidationError) Cause() error
- func (e UpdateRequest_ToDoItemValidationError) Error() string
- func (e UpdateRequest_ToDoItemValidationError) ErrorName() string
- func (e UpdateRequest_ToDoItemValidationError) Field() string
- func (e UpdateRequest_ToDoItemValidationError) Key() bool
- func (e UpdateRequest_ToDoItemValidationError) Reason() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
- func (m *UpdateResponse) Validate() error
- func (m *UpdateResponse) ValidateAll() error
- type UpdateResponseMultiError
- type UpdateResponseValidationError
- func (e UpdateResponseValidationError) Cause() error
- func (e UpdateResponseValidationError) Error() string
- func (e UpdateResponseValidationError) ErrorName() string
- func (e UpdateResponseValidationError) Field() string
- func (e UpdateResponseValidationError) Key() bool
- func (e UpdateResponseValidationError) Reason() string
Constants ¶
const ( ToDoApp_List_FullMethodName = "/todo.todoapp.v1beta1.ToDoApp/List" ToDoApp_Create_FullMethodName = "/todo.todoapp.v1beta1.ToDoApp/Create" ToDoApp_Update_FullMethodName = "/todo.todoapp.v1beta1.ToDoApp/Update" ToDoApp_Delete_FullMethodName = "/todo.todoapp.v1beta1.ToDoApp/Delete" )
Variables ¶
var File_todo_todoapp_v1beta1_todoapp_proto protoreflect.FileDescriptor
var ToDoApp_ServiceDesc = grpc.ServiceDesc{ ServiceName: "todo.todoapp.v1beta1.ToDoApp", HandlerType: (*ToDoAppServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _ToDoApp_List_Handler, }, { MethodName: "Create", Handler: _ToDoApp_Create_Handler, }, { MethodName: "Update", Handler: _ToDoApp_Update_Handler, }, { MethodName: "Delete", Handler: _ToDoApp_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "todo/todoapp/v1beta1/todoapp.proto", }
ToDoApp_ServiceDesc is the grpc.ServiceDesc for ToDoApp service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterToDoAppHandler ¶
func RegisterToDoAppHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterToDoAppHandler registers the http handlers for service ToDoApp to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterToDoAppHandlerClient ¶
func RegisterToDoAppHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ToDoAppClient) error
RegisterToDoAppHandlerClient registers the http handlers for service ToDoApp to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ToDoAppClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ToDoAppClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ToDoAppClient" to call the correct interceptors.
func RegisterToDoAppHandlerFromEndpoint ¶
func RegisterToDoAppHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterToDoAppHandlerFromEndpoint is same as RegisterToDoAppHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterToDoAppHandlerServer ¶
func RegisterToDoAppHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ToDoAppServer) error
RegisterToDoAppHandlerServer registers the http handlers for service ToDoApp to "mux". UnaryRPC :call ToDoAppServer 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 RegisterToDoAppHandlerFromEndpoint instead.
func RegisterToDoAppServer ¶
func RegisterToDoAppServer(s grpc.ServiceRegistrar, srv ToDoAppServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetDetails ¶
func (x *CreateRequest) GetDetails() string
func (*CreateRequest) GetTitle ¶
func (x *CreateRequest) GetTitle() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
func (*CreateRequest) Validate ¶
func (m *CreateRequest) Validate() error
Validate checks the field values on CreateRequest 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 (*CreateRequest) ValidateAll ¶
func (m *CreateRequest) ValidateAll() error
ValidateAll checks the field values on CreateRequest 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 CreateRequestMultiError, or nil if none found.
type CreateRequestMultiError ¶
type CreateRequestMultiError []error
CreateRequestMultiError is an error wrapping multiple validation errors returned by CreateRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRequestMultiError) AllErrors ¶
func (m CreateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRequestMultiError) Error ¶
func (m CreateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRequestValidationError ¶
type CreateRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.
func (CreateRequestValidationError) Cause ¶
func (e CreateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRequestValidationError) Error ¶
func (e CreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequestValidationError) ErrorName ¶
func (e CreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequestValidationError) Field ¶
func (e CreateRequestValidationError) Field() string
Field function returns field value.
func (CreateRequestValidationError) Key ¶
func (e CreateRequestValidationError) Key() bool
Key function returns key value.
func (CreateRequestValidationError) Reason ¶
func (e CreateRequestValidationError) Reason() string
Reason function returns reason value.
type CreateResponse ¶
type CreateResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetDetails ¶
func (x *CreateResponse) GetDetails() string
func (*CreateResponse) GetId ¶
func (x *CreateResponse) GetId() string
func (*CreateResponse) GetTitle ¶
func (x *CreateResponse) GetTitle() string
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
func (*CreateResponse) Validate ¶
func (m *CreateResponse) Validate() error
Validate checks the field values on CreateResponse 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 (*CreateResponse) ValidateAll ¶
func (m *CreateResponse) ValidateAll() error
ValidateAll checks the field values on CreateResponse 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 CreateResponseMultiError, or nil if none found.
type CreateResponseMultiError ¶
type CreateResponseMultiError []error
CreateResponseMultiError is an error wrapping multiple validation errors returned by CreateResponse.ValidateAll() if the designated constraints aren't met.
func (CreateResponseMultiError) AllErrors ¶
func (m CreateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateResponseMultiError) Error ¶
func (m CreateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateResponseValidationError ¶
type CreateResponseValidationError struct {
// contains filtered or unexported fields
}
CreateResponseValidationError is the validation error returned by CreateResponse.Validate if the designated constraints aren't met.
func (CreateResponseValidationError) Cause ¶
func (e CreateResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateResponseValidationError) Error ¶
func (e CreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateResponseValidationError) ErrorName ¶
func (e CreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateResponseValidationError) Field ¶
func (e CreateResponseValidationError) Field() string
Field function returns field value.
func (CreateResponseValidationError) Key ¶
func (e CreateResponseValidationError) Key() bool
Key function returns key value.
func (CreateResponseValidationError) Reason ¶
func (e CreateResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteRequest ¶
type DeleteRequest struct { // ID of the todo item Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest 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 (*DeleteRequest) ValidateAll ¶
func (m *DeleteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRequest 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 DeleteRequestMultiError, or nil if none found.
type DeleteRequestMultiError ¶
type DeleteRequestMultiError []error
DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRequestMultiError) AllErrors ¶
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) Validate ¶
func (m *DeleteResponse) Validate() error
Validate checks the field values on DeleteResponse 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 (*DeleteResponse) ValidateAll ¶
func (m *DeleteResponse) ValidateAll() error
ValidateAll checks the field values on DeleteResponse 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 DeleteResponseMultiError, or nil if none found.
type DeleteResponseMultiError ¶
type DeleteResponseMultiError []error
DeleteResponseMultiError is an error wrapping multiple validation errors returned by DeleteResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteResponseMultiError) AllErrors ¶
func (m DeleteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteResponseMultiError) Error ¶
func (m DeleteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteResponseValidationError ¶
type DeleteResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.
func (DeleteResponseValidationError) Cause ¶
func (e DeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteResponseValidationError) Error ¶
func (e DeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteResponseValidationError) ErrorName ¶
func (e DeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteResponseValidationError) Field ¶
func (e DeleteResponseValidationError) Field() string
Field function returns field value.
func (DeleteResponseValidationError) Key ¶
func (e DeleteResponseValidationError) Key() bool
Key function returns key value.
func (DeleteResponseValidationError) Reason ¶
func (e DeleteResponseValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest 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 (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest 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 ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { // List of ToDo items TodoItems []*ListResponse_ToDoItem `protobuf:"bytes,1,rep,name=todo_items,json=todoItems,proto3" json:"todo_items,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetTodoItems ¶
func (x *ListResponse) GetTodoItems() []*ListResponse_ToDoItem
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse 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 (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse 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 ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type ListResponse_ToDoItem ¶
type ListResponse_ToDoItem struct { // ID of the item Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Title of the item Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Details of the item Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*ListResponse_ToDoItem) Descriptor
deprecated
func (*ListResponse_ToDoItem) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse_ToDoItem.ProtoReflect.Descriptor instead.
func (*ListResponse_ToDoItem) GetDetails ¶
func (x *ListResponse_ToDoItem) GetDetails() string
func (*ListResponse_ToDoItem) GetId ¶
func (x *ListResponse_ToDoItem) GetId() string
func (*ListResponse_ToDoItem) GetTitle ¶
func (x *ListResponse_ToDoItem) GetTitle() string
func (*ListResponse_ToDoItem) ProtoMessage ¶
func (*ListResponse_ToDoItem) ProtoMessage()
func (*ListResponse_ToDoItem) ProtoReflect ¶
func (x *ListResponse_ToDoItem) ProtoReflect() protoreflect.Message
func (*ListResponse_ToDoItem) Reset ¶
func (x *ListResponse_ToDoItem) Reset()
func (*ListResponse_ToDoItem) String ¶
func (x *ListResponse_ToDoItem) String() string
func (*ListResponse_ToDoItem) Validate ¶
func (m *ListResponse_ToDoItem) Validate() error
Validate checks the field values on ListResponse_ToDoItem 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 (*ListResponse_ToDoItem) ValidateAll ¶
func (m *ListResponse_ToDoItem) ValidateAll() error
ValidateAll checks the field values on ListResponse_ToDoItem 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 ListResponse_ToDoItemMultiError, or nil if none found.
type ListResponse_ToDoItemMultiError ¶
type ListResponse_ToDoItemMultiError []error
ListResponse_ToDoItemMultiError is an error wrapping multiple validation errors returned by ListResponse_ToDoItem.ValidateAll() if the designated constraints aren't met.
func (ListResponse_ToDoItemMultiError) AllErrors ¶
func (m ListResponse_ToDoItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponse_ToDoItemMultiError) Error ¶
func (m ListResponse_ToDoItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponse_ToDoItemValidationError ¶
type ListResponse_ToDoItemValidationError struct {
// contains filtered or unexported fields
}
ListResponse_ToDoItemValidationError is the validation error returned by ListResponse_ToDoItem.Validate if the designated constraints aren't met.
func (ListResponse_ToDoItemValidationError) Cause ¶
func (e ListResponse_ToDoItemValidationError) Cause() error
Cause function returns cause value.
func (ListResponse_ToDoItemValidationError) Error ¶
func (e ListResponse_ToDoItemValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponse_ToDoItemValidationError) ErrorName ¶
func (e ListResponse_ToDoItemValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponse_ToDoItemValidationError) Field ¶
func (e ListResponse_ToDoItemValidationError) Field() string
Field function returns field value.
func (ListResponse_ToDoItemValidationError) Key ¶
func (e ListResponse_ToDoItemValidationError) Key() bool
Key function returns key value.
func (ListResponse_ToDoItemValidationError) Reason ¶
func (e ListResponse_ToDoItemValidationError) Reason() string
Reason function returns reason value.
type ToDoAppClient ¶
type ToDoAppClient interface { // List todos. List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) // Create a todo. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // Update a todo. Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) // Delete todo. Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
ToDoAppClient is the client API for ToDoApp 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 NewToDoAppClient ¶
func NewToDoAppClient(cc grpc.ClientConnInterface) ToDoAppClient
type ToDoAppServer ¶
type ToDoAppServer interface { // List todos. List(context.Context, *ListRequest) (*ListResponse, error) // Create a todo. Create(context.Context, *CreateRequest) (*CreateResponse, error) // Update a todo. Update(context.Context, *UpdateRequest) (*UpdateResponse, error) // Delete todo. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // contains filtered or unexported methods }
ToDoAppServer is the server API for ToDoApp service. All implementations must embed UnimplementedToDoAppServer for forward compatibility
type UnimplementedToDoAppServer ¶
type UnimplementedToDoAppServer struct { }
UnimplementedToDoAppServer must be embedded to have forward compatible implementations.
func (UnimplementedToDoAppServer) Create ¶
func (UnimplementedToDoAppServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedToDoAppServer) Delete ¶
func (UnimplementedToDoAppServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedToDoAppServer) List ¶
func (UnimplementedToDoAppServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedToDoAppServer) Update ¶
func (UnimplementedToDoAppServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeToDoAppServer ¶
type UnsafeToDoAppServer interface {
// contains filtered or unexported methods
}
UnsafeToDoAppServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ToDoAppServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { // ID of the todo item resource to update. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // A ToDo item containing the updated resource. Item *UpdateRequest_ToDoItem `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` // Standard field mask for the set of fields to be updated. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() string
func (*UpdateRequest) GetItem ¶
func (x *UpdateRequest) GetItem() *UpdateRequest_ToDoItem
func (*UpdateRequest) GetUpdateMask ¶
func (x *UpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (m *UpdateRequest) Validate() error
Validate checks the field values on UpdateRequest 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 (*UpdateRequest) ValidateAll ¶
func (m *UpdateRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRequest 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 UpdateRequestMultiError, or nil if none found.
type UpdateRequestMultiError ¶
type UpdateRequestMultiError []error
UpdateRequestMultiError is an error wrapping multiple validation errors returned by UpdateRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRequestMultiError) AllErrors ¶
func (m UpdateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRequestMultiError) Error ¶
func (m UpdateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRequestValidationError ¶
type UpdateRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.
func (UpdateRequestValidationError) Cause ¶
func (e UpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRequestValidationError) Error ¶
func (e UpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRequestValidationError) ErrorName ¶
func (e UpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRequestValidationError) Field ¶
func (e UpdateRequestValidationError) Field() string
Field function returns field value.
func (UpdateRequestValidationError) Key ¶
func (e UpdateRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRequestValidationError) Reason ¶
func (e UpdateRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRequest_ToDoItem ¶
type UpdateRequest_ToDoItem struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest_ToDoItem) Descriptor
deprecated
func (*UpdateRequest_ToDoItem) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest_ToDoItem.ProtoReflect.Descriptor instead.
func (*UpdateRequest_ToDoItem) GetDetails ¶
func (x *UpdateRequest_ToDoItem) GetDetails() string
func (*UpdateRequest_ToDoItem) GetTitle ¶
func (x *UpdateRequest_ToDoItem) GetTitle() string
func (*UpdateRequest_ToDoItem) ProtoMessage ¶
func (*UpdateRequest_ToDoItem) ProtoMessage()
func (*UpdateRequest_ToDoItem) ProtoReflect ¶
func (x *UpdateRequest_ToDoItem) ProtoReflect() protoreflect.Message
func (*UpdateRequest_ToDoItem) Reset ¶
func (x *UpdateRequest_ToDoItem) Reset()
func (*UpdateRequest_ToDoItem) String ¶
func (x *UpdateRequest_ToDoItem) String() string
func (*UpdateRequest_ToDoItem) Validate ¶
func (m *UpdateRequest_ToDoItem) Validate() error
Validate checks the field values on UpdateRequest_ToDoItem 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 (*UpdateRequest_ToDoItem) ValidateAll ¶
func (m *UpdateRequest_ToDoItem) ValidateAll() error
ValidateAll checks the field values on UpdateRequest_ToDoItem 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 UpdateRequest_ToDoItemMultiError, or nil if none found.
type UpdateRequest_ToDoItemMultiError ¶
type UpdateRequest_ToDoItemMultiError []error
UpdateRequest_ToDoItemMultiError is an error wrapping multiple validation errors returned by UpdateRequest_ToDoItem.ValidateAll() if the designated constraints aren't met.
func (UpdateRequest_ToDoItemMultiError) AllErrors ¶
func (m UpdateRequest_ToDoItemMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRequest_ToDoItemMultiError) Error ¶
func (m UpdateRequest_ToDoItemMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRequest_ToDoItemValidationError ¶
type UpdateRequest_ToDoItemValidationError struct {
// contains filtered or unexported fields
}
UpdateRequest_ToDoItemValidationError is the validation error returned by UpdateRequest_ToDoItem.Validate if the designated constraints aren't met.
func (UpdateRequest_ToDoItemValidationError) Cause ¶
func (e UpdateRequest_ToDoItemValidationError) Cause() error
Cause function returns cause value.
func (UpdateRequest_ToDoItemValidationError) Error ¶
func (e UpdateRequest_ToDoItemValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRequest_ToDoItemValidationError) ErrorName ¶
func (e UpdateRequest_ToDoItemValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRequest_ToDoItemValidationError) Field ¶
func (e UpdateRequest_ToDoItemValidationError) Field() string
Field function returns field value.
func (UpdateRequest_ToDoItemValidationError) Key ¶
func (e UpdateRequest_ToDoItemValidationError) Key() bool
Key function returns key value.
func (UpdateRequest_ToDoItemValidationError) Reason ¶
func (e UpdateRequest_ToDoItemValidationError) Reason() string
Reason function returns reason value.
type UpdateResponse ¶
type UpdateResponse struct {
// contains filtered or unexported fields
}
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
func (*UpdateResponse) Validate ¶
func (m *UpdateResponse) Validate() error
Validate checks the field values on UpdateResponse 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 (*UpdateResponse) ValidateAll ¶
func (m *UpdateResponse) ValidateAll() error
ValidateAll checks the field values on UpdateResponse 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 UpdateResponseMultiError, or nil if none found.
type UpdateResponseMultiError ¶
type UpdateResponseMultiError []error
UpdateResponseMultiError is an error wrapping multiple validation errors returned by UpdateResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateResponseMultiError) AllErrors ¶
func (m UpdateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateResponseMultiError) Error ¶
func (m UpdateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateResponseValidationError ¶
type UpdateResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.
func (UpdateResponseValidationError) Cause ¶
func (e UpdateResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateResponseValidationError) Error ¶
func (e UpdateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateResponseValidationError) ErrorName ¶
func (e UpdateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateResponseValidationError) Field ¶
func (e UpdateResponseValidationError) Field() string
Field function returns field value.
func (UpdateResponseValidationError) Key ¶
func (e UpdateResponseValidationError) Key() bool
Key function returns key value.
func (UpdateResponseValidationError) Reason ¶
func (e UpdateResponseValidationError) Reason() string
Reason function returns reason value.