Documentation ¶
Index ¶
- Variables
- func RegisterTodoServiceServer(s grpc.ServiceRegistrar, srv TodoServiceServer)
- type CreateTodoRequest
- func (*CreateTodoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTodoRequest) GetTodo() *Todo
- func (*CreateTodoRequest) ProtoMessage()
- func (x *CreateTodoRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTodoRequest) Reset()
- func (x *CreateTodoRequest) String() string
- func (m *CreateTodoRequest) Validate() error
- type CreateTodoRequestValidationError
- func (e CreateTodoRequestValidationError) Cause() error
- func (e CreateTodoRequestValidationError) Error() string
- func (e CreateTodoRequestValidationError) ErrorName() string
- func (e CreateTodoRequestValidationError) Field() string
- func (e CreateTodoRequestValidationError) Key() bool
- func (e CreateTodoRequestValidationError) Reason() string
- type DeleteTodoRequest
- func (*DeleteTodoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTodoRequest) GetTodoId() string
- func (*DeleteTodoRequest) ProtoMessage()
- func (x *DeleteTodoRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTodoRequest) Reset()
- func (x *DeleteTodoRequest) String() string
- func (m *DeleteTodoRequest) Validate() error
- type DeleteTodoRequestValidationError
- func (e DeleteTodoRequestValidationError) Cause() error
- func (e DeleteTodoRequestValidationError) Error() string
- func (e DeleteTodoRequestValidationError) ErrorName() string
- func (e DeleteTodoRequestValidationError) Field() string
- func (e DeleteTodoRequestValidationError) Key() bool
- func (e DeleteTodoRequestValidationError) Reason() string
- type Event
- type ListTodosRequest
- type ListTodosRequestValidationError
- func (e ListTodosRequestValidationError) Cause() error
- func (e ListTodosRequestValidationError) Error() string
- func (e ListTodosRequestValidationError) ErrorName() string
- func (e ListTodosRequestValidationError) Field() string
- func (e ListTodosRequestValidationError) Key() bool
- func (e ListTodosRequestValidationError) Reason() string
- type ListTodosResponse
- func (*ListTodosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTodosResponse) GetTodos() []*Todo
- func (*ListTodosResponse) ProtoMessage()
- func (x *ListTodosResponse) ProtoReflect() protoreflect.Message
- func (x *ListTodosResponse) Reset()
- func (x *ListTodosResponse) String() string
- func (m *ListTodosResponse) Validate() error
- type ListTodosResponseValidationError
- func (e ListTodosResponseValidationError) Cause() error
- func (e ListTodosResponseValidationError) Error() string
- func (e ListTodosResponseValidationError) ErrorName() string
- func (e ListTodosResponseValidationError) Field() string
- func (e ListTodosResponseValidationError) Key() bool
- func (e ListTodosResponseValidationError) Reason() string
- type SubscribeEventRequest
- func (*SubscribeEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeEventRequest) GetEvents() []Event
- func (*SubscribeEventRequest) ProtoMessage()
- func (x *SubscribeEventRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeEventRequest) Reset()
- func (x *SubscribeEventRequest) String() string
- func (m *SubscribeEventRequest) Validate() error
- type SubscribeEventRequestValidationError
- func (e SubscribeEventRequestValidationError) Cause() error
- func (e SubscribeEventRequestValidationError) Error() string
- func (e SubscribeEventRequestValidationError) ErrorName() string
- func (e SubscribeEventRequestValidationError) Field() string
- func (e SubscribeEventRequestValidationError) Key() bool
- func (e SubscribeEventRequestValidationError) Reason() string
- type SubscribeEventResponse
- func (*SubscribeEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeEventResponse) GetEvent() Event
- func (x *SubscribeEventResponse) GetTodo() *Todo
- func (*SubscribeEventResponse) ProtoMessage()
- func (x *SubscribeEventResponse) ProtoReflect() protoreflect.Message
- func (x *SubscribeEventResponse) Reset()
- func (x *SubscribeEventResponse) String() string
- func (m *SubscribeEventResponse) Validate() error
- type SubscribeEventResponseValidationError
- func (e SubscribeEventResponseValidationError) Cause() error
- func (e SubscribeEventResponseValidationError) Error() string
- func (e SubscribeEventResponseValidationError) ErrorName() string
- func (e SubscribeEventResponseValidationError) Field() string
- func (e SubscribeEventResponseValidationError) Key() bool
- func (e SubscribeEventResponseValidationError) Reason() string
- type Todo
- func (*Todo) Descriptor() ([]byte, []int)deprecated
- func (x *Todo) GetCompleted() bool
- func (x *Todo) GetCreatedAt() *timestamppb.Timestamp
- func (x *Todo) GetDescription() string
- func (x *Todo) GetId() string
- func (x *Todo) GetModifiedAt() *timestamppb.Timestamp
- func (*Todo) ProtoMessage()
- func (x *Todo) ProtoReflect() protoreflect.Message
- func (x *Todo) Reset()
- func (x *Todo) String() string
- func (m *Todo) Validate() error
- type TodoServiceClient
- type TodoServiceServer
- type TodoService_SubscribeEventClient
- type TodoService_SubscribeEventServer
- type TodoValidationError
- type UnimplementedTodoServiceServer
- func (UnimplementedTodoServiceServer) CreateTodo(context.Context, *CreateTodoRequest) (*emptypb.Empty, error)
- func (UnimplementedTodoServiceServer) DeleteTodo(context.Context, *DeleteTodoRequest) (*emptypb.Empty, error)
- func (UnimplementedTodoServiceServer) ListTodos(context.Context, *ListTodosRequest) (*ListTodosResponse, error)
- func (UnimplementedTodoServiceServer) SubscribeEvent(*SubscribeEventRequest, TodoService_SubscribeEventServer) error
- func (UnimplementedTodoServiceServer) UpdateTodo(context.Context, *UpdateTodoRequest) (*emptypb.Empty, error)
- type UnsafeTodoServiceServer
- type UpdateTodoRequest
- func (*UpdateTodoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTodoRequest) GetTodo() *Todo
- func (*UpdateTodoRequest) ProtoMessage()
- func (x *UpdateTodoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTodoRequest) Reset()
- func (x *UpdateTodoRequest) String() string
- func (m *UpdateTodoRequest) Validate() error
- type UpdateTodoRequestValidationError
- func (e UpdateTodoRequestValidationError) Cause() error
- func (e UpdateTodoRequestValidationError) Error() string
- func (e UpdateTodoRequestValidationError) ErrorName() string
- func (e UpdateTodoRequestValidationError) Field() string
- func (e UpdateTodoRequestValidationError) Key() bool
- func (e UpdateTodoRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( Event_name = map[int32]string{ 0: "EVENT_UNSPECIFIED", 1: "EVENT_CREATE", 2: "EVENT_UPDATE", 3: "EVENT_DELETE", } Event_value = map[string]int32{ "EVENT_UNSPECIFIED": 0, "EVENT_CREATE": 1, "EVENT_UPDATE": 2, "EVENT_DELETE": 3, } )
Enum value maps for Event.
var File_todo_v1_event_proto protoreflect.FileDescriptor
var File_todo_v1_todo_proto protoreflect.FileDescriptor
var File_todo_v1_todo_service_proto protoreflect.FileDescriptor
var TodoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "todo.v1.TodoService", HandlerType: (*TodoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListTodos", Handler: _TodoService_ListTodos_Handler, }, { MethodName: "CreateTodo", Handler: _TodoService_CreateTodo_Handler, }, { MethodName: "UpdateTodo", Handler: _TodoService_UpdateTodo_Handler, }, { MethodName: "DeleteTodo", Handler: _TodoService_DeleteTodo_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SubscribeEvent", Handler: _TodoService_SubscribeEvent_Handler, ServerStreams: true, }, }, Metadata: "todo/v1/todo_service.proto", }
TodoService_ServiceDesc is the grpc.ServiceDesc for TodoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTodoServiceServer ¶
func RegisterTodoServiceServer(s grpc.ServiceRegistrar, srv TodoServiceServer)
Types ¶
type CreateTodoRequest ¶
type CreateTodoRequest struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*CreateTodoRequest) Descriptor
deprecated
func (*CreateTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTodoRequest.ProtoReflect.Descriptor instead.
func (*CreateTodoRequest) GetTodo ¶
func (x *CreateTodoRequest) GetTodo() *Todo
func (*CreateTodoRequest) ProtoMessage ¶
func (*CreateTodoRequest) ProtoMessage()
func (*CreateTodoRequest) ProtoReflect ¶
func (x *CreateTodoRequest) ProtoReflect() protoreflect.Message
func (*CreateTodoRequest) Reset ¶
func (x *CreateTodoRequest) Reset()
func (*CreateTodoRequest) String ¶
func (x *CreateTodoRequest) String() string
func (*CreateTodoRequest) Validate ¶
func (m *CreateTodoRequest) Validate() error
Validate checks the field values on CreateTodoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateTodoRequestValidationError ¶
type CreateTodoRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTodoRequestValidationError is the validation error returned by CreateTodoRequest.Validate if the designated constraints aren't met.
func (CreateTodoRequestValidationError) Cause ¶
func (e CreateTodoRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTodoRequestValidationError) Error ¶
func (e CreateTodoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTodoRequestValidationError) ErrorName ¶
func (e CreateTodoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTodoRequestValidationError) Field ¶
func (e CreateTodoRequestValidationError) Field() string
Field function returns field value.
func (CreateTodoRequestValidationError) Key ¶
func (e CreateTodoRequestValidationError) Key() bool
Key function returns key value.
func (CreateTodoRequestValidationError) Reason ¶
func (e CreateTodoRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteTodoRequest ¶
type DeleteTodoRequest struct { TodoId string `protobuf:"bytes,1,opt,name=todo_id,json=todoId,proto3" json:"todo_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTodoRequest) Descriptor
deprecated
func (*DeleteTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTodoRequest.ProtoReflect.Descriptor instead.
func (*DeleteTodoRequest) GetTodoId ¶
func (x *DeleteTodoRequest) GetTodoId() string
func (*DeleteTodoRequest) ProtoMessage ¶
func (*DeleteTodoRequest) ProtoMessage()
func (*DeleteTodoRequest) ProtoReflect ¶
func (x *DeleteTodoRequest) ProtoReflect() protoreflect.Message
func (*DeleteTodoRequest) Reset ¶
func (x *DeleteTodoRequest) Reset()
func (*DeleteTodoRequest) String ¶
func (x *DeleteTodoRequest) String() string
func (*DeleteTodoRequest) Validate ¶
func (m *DeleteTodoRequest) Validate() error
Validate checks the field values on DeleteTodoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteTodoRequestValidationError ¶
type DeleteTodoRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteTodoRequestValidationError is the validation error returned by DeleteTodoRequest.Validate if the designated constraints aren't met.
func (DeleteTodoRequestValidationError) Cause ¶
func (e DeleteTodoRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteTodoRequestValidationError) Error ¶
func (e DeleteTodoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteTodoRequestValidationError) ErrorName ¶
func (e DeleteTodoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteTodoRequestValidationError) Field ¶
func (e DeleteTodoRequestValidationError) Field() string
Field function returns field value.
func (DeleteTodoRequestValidationError) Key ¶
func (e DeleteTodoRequestValidationError) Key() bool
Key function returns key value.
func (DeleteTodoRequestValidationError) Reason ¶
func (e DeleteTodoRequestValidationError) Reason() string
Reason function returns reason value.
type Event ¶
type Event int32
func (Event) Descriptor ¶
func (Event) Descriptor() protoreflect.EnumDescriptor
func (Event) EnumDescriptor
deprecated
func (Event) Number ¶
func (x Event) Number() protoreflect.EnumNumber
func (Event) Type ¶
func (Event) Type() protoreflect.EnumType
type ListTodosRequest ¶
type ListTodosRequest struct {
// contains filtered or unexported fields
}
func (*ListTodosRequest) Descriptor
deprecated
func (*ListTodosRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTodosRequest.ProtoReflect.Descriptor instead.
func (*ListTodosRequest) ProtoMessage ¶
func (*ListTodosRequest) ProtoMessage()
func (*ListTodosRequest) ProtoReflect ¶
func (x *ListTodosRequest) ProtoReflect() protoreflect.Message
func (*ListTodosRequest) Reset ¶
func (x *ListTodosRequest) Reset()
func (*ListTodosRequest) String ¶
func (x *ListTodosRequest) String() string
func (*ListTodosRequest) Validate ¶
func (m *ListTodosRequest) Validate() error
Validate checks the field values on ListTodosRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListTodosRequestValidationError ¶
type ListTodosRequestValidationError struct {
// contains filtered or unexported fields
}
ListTodosRequestValidationError is the validation error returned by ListTodosRequest.Validate if the designated constraints aren't met.
func (ListTodosRequestValidationError) Cause ¶
func (e ListTodosRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTodosRequestValidationError) Error ¶
func (e ListTodosRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTodosRequestValidationError) ErrorName ¶
func (e ListTodosRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTodosRequestValidationError) Field ¶
func (e ListTodosRequestValidationError) Field() string
Field function returns field value.
func (ListTodosRequestValidationError) Key ¶
func (e ListTodosRequestValidationError) Key() bool
Key function returns key value.
func (ListTodosRequestValidationError) Reason ¶
func (e ListTodosRequestValidationError) Reason() string
Reason function returns reason value.
type ListTodosResponse ¶
type ListTodosResponse struct { Todos []*Todo `protobuf:"bytes,1,rep,name=todos,proto3" json:"todos,omitempty"` // contains filtered or unexported fields }
func (*ListTodosResponse) Descriptor
deprecated
func (*ListTodosResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTodosResponse.ProtoReflect.Descriptor instead.
func (*ListTodosResponse) GetTodos ¶
func (x *ListTodosResponse) GetTodos() []*Todo
func (*ListTodosResponse) ProtoMessage ¶
func (*ListTodosResponse) ProtoMessage()
func (*ListTodosResponse) ProtoReflect ¶
func (x *ListTodosResponse) ProtoReflect() protoreflect.Message
func (*ListTodosResponse) Reset ¶
func (x *ListTodosResponse) Reset()
func (*ListTodosResponse) String ¶
func (x *ListTodosResponse) String() string
func (*ListTodosResponse) Validate ¶
func (m *ListTodosResponse) Validate() error
Validate checks the field values on ListTodosResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListTodosResponseValidationError ¶
type ListTodosResponseValidationError struct {
// contains filtered or unexported fields
}
ListTodosResponseValidationError is the validation error returned by ListTodosResponse.Validate if the designated constraints aren't met.
func (ListTodosResponseValidationError) Cause ¶
func (e ListTodosResponseValidationError) Cause() error
Cause function returns cause value.
func (ListTodosResponseValidationError) Error ¶
func (e ListTodosResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListTodosResponseValidationError) ErrorName ¶
func (e ListTodosResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListTodosResponseValidationError) Field ¶
func (e ListTodosResponseValidationError) Field() string
Field function returns field value.
func (ListTodosResponseValidationError) Key ¶
func (e ListTodosResponseValidationError) Key() bool
Key function returns key value.
func (ListTodosResponseValidationError) Reason ¶
func (e ListTodosResponseValidationError) Reason() string
Reason function returns reason value.
type SubscribeEventRequest ¶
type SubscribeEventRequest struct { Events []Event `protobuf:"varint,1,rep,packed,name=events,proto3,enum=todo.v1.Event" json:"events,omitempty"` // contains filtered or unexported fields }
func (*SubscribeEventRequest) Descriptor
deprecated
func (*SubscribeEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeEventRequest.ProtoReflect.Descriptor instead.
func (*SubscribeEventRequest) GetEvents ¶
func (x *SubscribeEventRequest) GetEvents() []Event
func (*SubscribeEventRequest) ProtoMessage ¶
func (*SubscribeEventRequest) ProtoMessage()
func (*SubscribeEventRequest) ProtoReflect ¶
func (x *SubscribeEventRequest) ProtoReflect() protoreflect.Message
func (*SubscribeEventRequest) Reset ¶
func (x *SubscribeEventRequest) Reset()
func (*SubscribeEventRequest) String ¶
func (x *SubscribeEventRequest) String() string
func (*SubscribeEventRequest) Validate ¶
func (m *SubscribeEventRequest) Validate() error
Validate checks the field values on SubscribeEventRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubscribeEventRequestValidationError ¶
type SubscribeEventRequestValidationError struct {
// contains filtered or unexported fields
}
SubscribeEventRequestValidationError is the validation error returned by SubscribeEventRequest.Validate if the designated constraints aren't met.
func (SubscribeEventRequestValidationError) Cause ¶
func (e SubscribeEventRequestValidationError) Cause() error
Cause function returns cause value.
func (SubscribeEventRequestValidationError) Error ¶
func (e SubscribeEventRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SubscribeEventRequestValidationError) ErrorName ¶
func (e SubscribeEventRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SubscribeEventRequestValidationError) Field ¶
func (e SubscribeEventRequestValidationError) Field() string
Field function returns field value.
func (SubscribeEventRequestValidationError) Key ¶
func (e SubscribeEventRequestValidationError) Key() bool
Key function returns key value.
func (SubscribeEventRequestValidationError) Reason ¶
func (e SubscribeEventRequestValidationError) Reason() string
Reason function returns reason value.
type SubscribeEventResponse ¶
type SubscribeEventResponse struct { Event Event `protobuf:"varint,1,opt,name=event,proto3,enum=todo.v1.Event" json:"event,omitempty"` Todo *Todo `protobuf:"bytes,2,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*SubscribeEventResponse) Descriptor
deprecated
func (*SubscribeEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeEventResponse.ProtoReflect.Descriptor instead.
func (*SubscribeEventResponse) GetEvent ¶
func (x *SubscribeEventResponse) GetEvent() Event
func (*SubscribeEventResponse) GetTodo ¶
func (x *SubscribeEventResponse) GetTodo() *Todo
func (*SubscribeEventResponse) ProtoMessage ¶
func (*SubscribeEventResponse) ProtoMessage()
func (*SubscribeEventResponse) ProtoReflect ¶
func (x *SubscribeEventResponse) ProtoReflect() protoreflect.Message
func (*SubscribeEventResponse) Reset ¶
func (x *SubscribeEventResponse) Reset()
func (*SubscribeEventResponse) String ¶
func (x *SubscribeEventResponse) String() string
func (*SubscribeEventResponse) Validate ¶
func (m *SubscribeEventResponse) Validate() error
Validate checks the field values on SubscribeEventResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type SubscribeEventResponseValidationError ¶
type SubscribeEventResponseValidationError struct {
// contains filtered or unexported fields
}
SubscribeEventResponseValidationError is the validation error returned by SubscribeEventResponse.Validate if the designated constraints aren't met.
func (SubscribeEventResponseValidationError) Cause ¶
func (e SubscribeEventResponseValidationError) Cause() error
Cause function returns cause value.
func (SubscribeEventResponseValidationError) Error ¶
func (e SubscribeEventResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SubscribeEventResponseValidationError) ErrorName ¶
func (e SubscribeEventResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SubscribeEventResponseValidationError) Field ¶
func (e SubscribeEventResponseValidationError) Field() string
Field function returns field value.
func (SubscribeEventResponseValidationError) Key ¶
func (e SubscribeEventResponseValidationError) Key() bool
Key function returns key value.
func (SubscribeEventResponseValidationError) Reason ¶
func (e SubscribeEventResponseValidationError) Reason() string
Reason function returns reason value.
type Todo ¶
type Todo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Completed bool `protobuf:"varint,3,opt,name=completed,proto3" json:"completed,omitempty"` ModifiedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Todo) Descriptor
deprecated
func (*Todo) GetCompleted ¶
func (*Todo) GetCreatedAt ¶
func (x *Todo) GetCreatedAt() *timestamppb.Timestamp
func (*Todo) GetDescription ¶
func (*Todo) GetModifiedAt ¶
func (x *Todo) GetModifiedAt() *timestamppb.Timestamp
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
func (*Todo) ProtoReflect ¶
func (x *Todo) ProtoReflect() protoreflect.Message
type TodoServiceClient ¶
type TodoServiceClient interface { ListTodos(ctx context.Context, in *ListTodosRequest, opts ...grpc.CallOption) (*ListTodosResponse, error) CreateTodo(ctx context.Context, in *CreateTodoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateTodo(ctx context.Context, in *UpdateTodoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteTodo(ctx context.Context, in *DeleteTodoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) SubscribeEvent(ctx context.Context, in *SubscribeEventRequest, opts ...grpc.CallOption) (TodoService_SubscribeEventClient, error) }
TodoServiceClient is the client API for TodoService 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 NewTodoServiceClient ¶
func NewTodoServiceClient(cc grpc.ClientConnInterface) TodoServiceClient
type TodoServiceServer ¶
type TodoServiceServer interface { ListTodos(context.Context, *ListTodosRequest) (*ListTodosResponse, error) CreateTodo(context.Context, *CreateTodoRequest) (*emptypb.Empty, error) UpdateTodo(context.Context, *UpdateTodoRequest) (*emptypb.Empty, error) DeleteTodo(context.Context, *DeleteTodoRequest) (*emptypb.Empty, error) SubscribeEvent(*SubscribeEventRequest, TodoService_SubscribeEventServer) error // contains filtered or unexported methods }
TodoServiceServer is the server API for TodoService service. All implementations must embed UnimplementedTodoServiceServer for forward compatibility
type TodoService_SubscribeEventClient ¶
type TodoService_SubscribeEventClient interface { Recv() (*SubscribeEventResponse, error) grpc.ClientStream }
type TodoService_SubscribeEventServer ¶
type TodoService_SubscribeEventServer interface { Send(*SubscribeEventResponse) error grpc.ServerStream }
type TodoValidationError ¶
type TodoValidationError struct {
// contains filtered or unexported fields
}
TodoValidationError is the validation error returned by Todo.Validate if the designated constraints aren't met.
func (TodoValidationError) Cause ¶
func (e TodoValidationError) Cause() error
Cause function returns cause value.
func (TodoValidationError) Error ¶
func (e TodoValidationError) Error() string
Error satisfies the builtin error interface
func (TodoValidationError) ErrorName ¶
func (e TodoValidationError) ErrorName() string
ErrorName returns error name.
func (TodoValidationError) Field ¶
func (e TodoValidationError) Field() string
Field function returns field value.
func (TodoValidationError) Key ¶
func (e TodoValidationError) Key() bool
Key function returns key value.
func (TodoValidationError) Reason ¶
func (e TodoValidationError) Reason() string
Reason function returns reason value.
type UnimplementedTodoServiceServer ¶
type UnimplementedTodoServiceServer struct { }
UnimplementedTodoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTodoServiceServer) CreateTodo ¶
func (UnimplementedTodoServiceServer) CreateTodo(context.Context, *CreateTodoRequest) (*emptypb.Empty, error)
func (UnimplementedTodoServiceServer) DeleteTodo ¶
func (UnimplementedTodoServiceServer) DeleteTodo(context.Context, *DeleteTodoRequest) (*emptypb.Empty, error)
func (UnimplementedTodoServiceServer) ListTodos ¶
func (UnimplementedTodoServiceServer) ListTodos(context.Context, *ListTodosRequest) (*ListTodosResponse, error)
func (UnimplementedTodoServiceServer) SubscribeEvent ¶
func (UnimplementedTodoServiceServer) SubscribeEvent(*SubscribeEventRequest, TodoService_SubscribeEventServer) error
func (UnimplementedTodoServiceServer) UpdateTodo ¶
func (UnimplementedTodoServiceServer) UpdateTodo(context.Context, *UpdateTodoRequest) (*emptypb.Empty, error)
type UnsafeTodoServiceServer ¶
type UnsafeTodoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTodoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TodoServiceServer will result in compilation errors.
type UpdateTodoRequest ¶
type UpdateTodoRequest struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*UpdateTodoRequest) Descriptor
deprecated
func (*UpdateTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTodoRequest.ProtoReflect.Descriptor instead.
func (*UpdateTodoRequest) GetTodo ¶
func (x *UpdateTodoRequest) GetTodo() *Todo
func (*UpdateTodoRequest) ProtoMessage ¶
func (*UpdateTodoRequest) ProtoMessage()
func (*UpdateTodoRequest) ProtoReflect ¶
func (x *UpdateTodoRequest) ProtoReflect() protoreflect.Message
func (*UpdateTodoRequest) Reset ¶
func (x *UpdateTodoRequest) Reset()
func (*UpdateTodoRequest) String ¶
func (x *UpdateTodoRequest) String() string
func (*UpdateTodoRequest) Validate ¶
func (m *UpdateTodoRequest) Validate() error
Validate checks the field values on UpdateTodoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateTodoRequestValidationError ¶
type UpdateTodoRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateTodoRequestValidationError is the validation error returned by UpdateTodoRequest.Validate if the designated constraints aren't met.
func (UpdateTodoRequestValidationError) Cause ¶
func (e UpdateTodoRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateTodoRequestValidationError) Error ¶
func (e UpdateTodoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTodoRequestValidationError) ErrorName ¶
func (e UpdateTodoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTodoRequestValidationError) Field ¶
func (e UpdateTodoRequestValidationError) Field() string
Field function returns field value.
func (UpdateTodoRequestValidationError) Key ¶
func (e UpdateTodoRequestValidationError) Key() bool
Key function returns key value.
func (UpdateTodoRequestValidationError) Reason ¶
func (e UpdateTodoRequestValidationError) Reason() string
Reason function returns reason value.