proto

package
v0.0.0-...-f767cfc Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	NoteService_CreateNote_FullMethodName = "/NoteService/CreateNote"
	NoteService_GetNote_FullMethodName    = "/NoteService/GetNote"
	NoteService_GetNotes_FullMethodName   = "/NoteService/GetNotes"
	NoteService_UpdateNote_FullMethodName = "/NoteService/UpdateNote"
	NoteService_DeleteNote_FullMethodName = "/NoteService/DeleteNote"
)

Variables

View Source
var File_createnote_proto protoreflect.FileDescriptor
View Source
var File_deletenote_proto protoreflect.FileDescriptor
View Source
var File_getnote_proto protoreflect.FileDescriptor
View Source
var File_getnotes_proto protoreflect.FileDescriptor
View Source
var File_updatenote_proto protoreflect.FileDescriptor
View Source
var NoteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "NoteService",
	HandlerType: (*NoteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateNote",
			Handler:    _NoteService_CreateNote_Handler,
		},
		{
			MethodName: "GetNote",
			Handler:    _NoteService_GetNote_Handler,
		},
		{
			MethodName: "UpdateNote",
			Handler:    _NoteService_UpdateNote_Handler,
		},
		{
			MethodName: "DeleteNote",
			Handler:    _NoteService_DeleteNote_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetNotes",
			Handler:       _NoteService_GetNotes_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "note.proto",
}

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

Functions

func RegisterNoteServiceHandler

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

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

func RegisterNoteServiceHandlerClient

func RegisterNoteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NoteServiceClient) error

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

func RegisterNoteServiceHandlerFromEndpoint

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

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

func RegisterNoteServiceHandlerServer

func RegisterNoteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NoteServiceServer) error

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

func RegisterNoteServiceServer

func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)

Types

type CreateNoteRequest

type CreateNoteRequest struct {
	Title          string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Content        string                 `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Priority       *string                `protobuf:"bytes,3,opt,name=priority,proto3,oneof" json:"priority,omitempty"`
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=completion_time,json=completionTime,proto3,oneof" json:"completion_time,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNoteRequest) Descriptor deprecated

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

Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.

func (*CreateNoteRequest) GetCompletionTime

func (x *CreateNoteRequest) GetCompletionTime() *timestamppb.Timestamp

func (*CreateNoteRequest) GetContent

func (x *CreateNoteRequest) GetContent() string

func (*CreateNoteRequest) GetPriority

func (x *CreateNoteRequest) GetPriority() string

func (*CreateNoteRequest) GetTitle

func (x *CreateNoteRequest) GetTitle() string

func (*CreateNoteRequest) ProtoMessage

func (*CreateNoteRequest) ProtoMessage()

func (*CreateNoteRequest) ProtoReflect

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

func (*CreateNoteRequest) Reset

func (x *CreateNoteRequest) Reset()

func (*CreateNoteRequest) String

func (x *CreateNoteRequest) String() string

func (*CreateNoteRequest) Validate

func (m *CreateNoteRequest) Validate() error

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

func (m *CreateNoteRequest) ValidateAll() error

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

type CreateNoteRequestMultiError

type CreateNoteRequestMultiError []error

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

func (CreateNoteRequestMultiError) AllErrors

func (m CreateNoteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateNoteRequestMultiError) Error

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

type CreateNoteRequestValidationError

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

CreateNoteRequestValidationError is the validation error returned by CreateNoteRequest.Validate if the designated constraints aren't met.

func (CreateNoteRequestValidationError) Cause

Cause function returns cause value.

func (CreateNoteRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateNoteRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateNoteRequestValidationError) Field

Field function returns field value.

func (CreateNoteRequestValidationError) Key

Key function returns key value.

func (CreateNoteRequestValidationError) Reason

Reason function returns reason value.

type CreateNoteResponse

type CreateNoteResponse struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNoteResponse) Descriptor deprecated

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

Deprecated: Use CreateNoteResponse.ProtoReflect.Descriptor instead.

func (*CreateNoteResponse) GetId

func (x *CreateNoteResponse) GetId() string

func (*CreateNoteResponse) GetUserId

func (x *CreateNoteResponse) GetUserId() string

func (*CreateNoteResponse) ProtoMessage

func (*CreateNoteResponse) ProtoMessage()

func (*CreateNoteResponse) ProtoReflect

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

func (*CreateNoteResponse) Reset

func (x *CreateNoteResponse) Reset()

func (*CreateNoteResponse) String

func (x *CreateNoteResponse) String() string

func (*CreateNoteResponse) Validate

func (m *CreateNoteResponse) Validate() error

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

func (m *CreateNoteResponse) ValidateAll() error

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

type CreateNoteResponseMultiError

type CreateNoteResponseMultiError []error

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

func (CreateNoteResponseMultiError) AllErrors

func (m CreateNoteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateNoteResponseMultiError) Error

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

type CreateNoteResponseValidationError

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

CreateNoteResponseValidationError is the validation error returned by CreateNoteResponse.Validate if the designated constraints aren't met.

func (CreateNoteResponseValidationError) Cause

Cause function returns cause value.

func (CreateNoteResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateNoteResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateNoteResponseValidationError) Field

Field function returns field value.

func (CreateNoteResponseValidationError) Key

Key function returns key value.

func (CreateNoteResponseValidationError) Reason

Reason function returns reason value.

type DeleteNoteRequest

type DeleteNoteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNoteRequest) Descriptor deprecated

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

Deprecated: Use DeleteNoteRequest.ProtoReflect.Descriptor instead.

func (*DeleteNoteRequest) GetId

func (x *DeleteNoteRequest) GetId() string

func (*DeleteNoteRequest) ProtoMessage

func (*DeleteNoteRequest) ProtoMessage()

func (*DeleteNoteRequest) ProtoReflect

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

func (*DeleteNoteRequest) Reset

func (x *DeleteNoteRequest) Reset()

func (*DeleteNoteRequest) String

func (x *DeleteNoteRequest) String() string

func (*DeleteNoteRequest) Validate

func (m *DeleteNoteRequest) Validate() error

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

func (m *DeleteNoteRequest) ValidateAll() error

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

type DeleteNoteRequestMultiError

type DeleteNoteRequestMultiError []error

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

func (DeleteNoteRequestMultiError) AllErrors

func (m DeleteNoteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteNoteRequestMultiError) Error

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

type DeleteNoteRequestValidationError

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

DeleteNoteRequestValidationError is the validation error returned by DeleteNoteRequest.Validate if the designated constraints aren't met.

func (DeleteNoteRequestValidationError) Cause

Cause function returns cause value.

func (DeleteNoteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteNoteRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteNoteRequestValidationError) Field

Field function returns field value.

func (DeleteNoteRequestValidationError) Key

Key function returns key value.

func (DeleteNoteRequestValidationError) Reason

Reason function returns reason value.

type DeleteNoteResponse

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

func (*DeleteNoteResponse) Descriptor deprecated

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

Deprecated: Use DeleteNoteResponse.ProtoReflect.Descriptor instead.

func (*DeleteNoteResponse) ProtoMessage

func (*DeleteNoteResponse) ProtoMessage()

func (*DeleteNoteResponse) ProtoReflect

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

func (*DeleteNoteResponse) Reset

func (x *DeleteNoteResponse) Reset()

func (*DeleteNoteResponse) String

func (x *DeleteNoteResponse) String() string

func (*DeleteNoteResponse) Validate

func (m *DeleteNoteResponse) Validate() error

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

func (m *DeleteNoteResponse) ValidateAll() error

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

type DeleteNoteResponseMultiError

type DeleteNoteResponseMultiError []error

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

func (DeleteNoteResponseMultiError) AllErrors

func (m DeleteNoteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteNoteResponseMultiError) Error

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

type DeleteNoteResponseValidationError

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

DeleteNoteResponseValidationError is the validation error returned by DeleteNoteResponse.Validate if the designated constraints aren't met.

func (DeleteNoteResponseValidationError) Cause

Cause function returns cause value.

func (DeleteNoteResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteNoteResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteNoteResponseValidationError) Field

Field function returns field value.

func (DeleteNoteResponseValidationError) Key

Key function returns key value.

func (DeleteNoteResponseValidationError) Reason

Reason function returns reason value.

type GetNoteRequest

type GetNoteRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNoteRequest) Descriptor deprecated

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

Deprecated: Use GetNoteRequest.ProtoReflect.Descriptor instead.

func (*GetNoteRequest) GetId

func (x *GetNoteRequest) GetId() string

func (*GetNoteRequest) ProtoMessage

func (*GetNoteRequest) ProtoMessage()

func (*GetNoteRequest) ProtoReflect

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

func (*GetNoteRequest) Reset

func (x *GetNoteRequest) Reset()

func (*GetNoteRequest) String

func (x *GetNoteRequest) String() string

func (*GetNoteRequest) Validate

func (m *GetNoteRequest) Validate() error

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

func (m *GetNoteRequest) ValidateAll() error

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

type GetNoteRequestMultiError

type GetNoteRequestMultiError []error

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

func (GetNoteRequestMultiError) AllErrors

func (m GetNoteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNoteRequestMultiError) Error

func (m GetNoteRequestMultiError) Error() string

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

type GetNoteRequestValidationError

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

GetNoteRequestValidationError is the validation error returned by GetNoteRequest.Validate if the designated constraints aren't met.

func (GetNoteRequestValidationError) Cause

Cause function returns cause value.

func (GetNoteRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNoteRequestValidationError) ErrorName

func (e GetNoteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetNoteRequestValidationError) Field

Field function returns field value.

func (GetNoteRequestValidationError) Key

Key function returns key value.

func (GetNoteRequestValidationError) Reason

Reason function returns reason value.

type GetNoteResponse

type GetNoteResponse struct {
	Title          string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Content        string                 `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	UserId         string                 `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CreatedAt      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Priority       *string                `protobuf:"bytes,5,opt,name=priority,proto3,oneof" json:"priority,omitempty"`
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completion_time,json=completionTime,proto3,oneof" json:"completion_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNoteResponse) Descriptor deprecated

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

Deprecated: Use GetNoteResponse.ProtoReflect.Descriptor instead.

func (*GetNoteResponse) GetCompletionTime

func (x *GetNoteResponse) GetCompletionTime() *timestamppb.Timestamp

func (*GetNoteResponse) GetContent

func (x *GetNoteResponse) GetContent() string

func (*GetNoteResponse) GetCreatedAt

func (x *GetNoteResponse) GetCreatedAt() *timestamppb.Timestamp

func (*GetNoteResponse) GetPriority

func (x *GetNoteResponse) GetPriority() string

func (*GetNoteResponse) GetTitle

func (x *GetNoteResponse) GetTitle() string

func (*GetNoteResponse) GetUserId

func (x *GetNoteResponse) GetUserId() string

func (*GetNoteResponse) ProtoMessage

func (*GetNoteResponse) ProtoMessage()

func (*GetNoteResponse) ProtoReflect

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

func (*GetNoteResponse) Reset

func (x *GetNoteResponse) Reset()

func (*GetNoteResponse) String

func (x *GetNoteResponse) String() string

func (*GetNoteResponse) Validate

func (m *GetNoteResponse) Validate() error

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

func (m *GetNoteResponse) ValidateAll() error

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

type GetNoteResponseMultiError

type GetNoteResponseMultiError []error

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

func (GetNoteResponseMultiError) AllErrors

func (m GetNoteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNoteResponseMultiError) Error

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

type GetNoteResponseValidationError

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

GetNoteResponseValidationError is the validation error returned by GetNoteResponse.Validate if the designated constraints aren't met.

func (GetNoteResponseValidationError) Cause

Cause function returns cause value.

func (GetNoteResponseValidationError) Error

Error satisfies the builtin error interface

func (GetNoteResponseValidationError) ErrorName

func (e GetNoteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetNoteResponseValidationError) Field

Field function returns field value.

func (GetNoteResponseValidationError) Key

Key function returns key value.

func (GetNoteResponseValidationError) Reason

Reason function returns reason value.

type GetNotesRequest

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

func (*GetNotesRequest) Descriptor deprecated

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

Deprecated: Use GetNotesRequest.ProtoReflect.Descriptor instead.

func (*GetNotesRequest) ProtoMessage

func (*GetNotesRequest) ProtoMessage()

func (*GetNotesRequest) ProtoReflect

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

func (*GetNotesRequest) Reset

func (x *GetNotesRequest) Reset()

func (*GetNotesRequest) String

func (x *GetNotesRequest) String() string

func (*GetNotesRequest) Validate

func (m *GetNotesRequest) Validate() error

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

func (m *GetNotesRequest) ValidateAll() error

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

type GetNotesRequestMultiError

type GetNotesRequestMultiError []error

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

func (GetNotesRequestMultiError) AllErrors

func (m GetNotesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNotesRequestMultiError) Error

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

type GetNotesRequestValidationError

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

GetNotesRequestValidationError is the validation error returned by GetNotesRequest.Validate if the designated constraints aren't met.

func (GetNotesRequestValidationError) Cause

Cause function returns cause value.

func (GetNotesRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNotesRequestValidationError) ErrorName

func (e GetNotesRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetNotesRequestValidationError) Field

Field function returns field value.

func (GetNotesRequestValidationError) Key

Key function returns key value.

func (GetNotesRequestValidationError) Reason

Reason function returns reason value.

type GetNotesResponse

type GetNotesResponse 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"`
	Content        string                 `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	CreatedAt      *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Priority       *string                `protobuf:"bytes,5,opt,name=priority,proto3,oneof" json:"priority,omitempty"`
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completion_time,json=completionTime,proto3,oneof" json:"completion_time,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotesResponse) Descriptor deprecated

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

Deprecated: Use GetNotesResponse.ProtoReflect.Descriptor instead.

func (*GetNotesResponse) GetCompletionTime

func (x *GetNotesResponse) GetCompletionTime() *timestamppb.Timestamp

func (*GetNotesResponse) GetContent

func (x *GetNotesResponse) GetContent() string

func (*GetNotesResponse) GetCreatedAt

func (x *GetNotesResponse) GetCreatedAt() *timestamppb.Timestamp

func (*GetNotesResponse) GetId

func (x *GetNotesResponse) GetId() string

func (*GetNotesResponse) GetPriority

func (x *GetNotesResponse) GetPriority() string

func (*GetNotesResponse) GetTitle

func (x *GetNotesResponse) GetTitle() string

func (*GetNotesResponse) ProtoMessage

func (*GetNotesResponse) ProtoMessage()

func (*GetNotesResponse) ProtoReflect

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

func (*GetNotesResponse) Reset

func (x *GetNotesResponse) Reset()

func (*GetNotesResponse) String

func (x *GetNotesResponse) String() string

func (*GetNotesResponse) Validate

func (m *GetNotesResponse) Validate() error

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

func (m *GetNotesResponse) ValidateAll() error

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

type GetNotesResponseMultiError

type GetNotesResponseMultiError []error

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

func (GetNotesResponseMultiError) AllErrors

func (m GetNotesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNotesResponseMultiError) Error

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

type GetNotesResponseValidationError

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

GetNotesResponseValidationError is the validation error returned by GetNotesResponse.Validate if the designated constraints aren't met.

func (GetNotesResponseValidationError) Cause

Cause function returns cause value.

func (GetNotesResponseValidationError) Error

Error satisfies the builtin error interface

func (GetNotesResponseValidationError) ErrorName

ErrorName returns error name.

func (GetNotesResponseValidationError) Field

Field function returns field value.

func (GetNotesResponseValidationError) Key

Key function returns key value.

func (GetNotesResponseValidationError) Reason

Reason function returns reason value.

type NoteServiceClient

type NoteServiceClient interface {
	CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*CreateNoteResponse, error)
	GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*GetNoteResponse, error)
	GetNotes(ctx context.Context, in *GetNotesRequest, opts ...grpc.CallOption) (NoteService_GetNotesClient, error)
	UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*UpdateNoteResponse, error)
	DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*DeleteNoteResponse, error)
}

NoteServiceClient is the client API for NoteService 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 NoteServiceServer

type NoteServiceServer interface {
	CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error)
	GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
	GetNotes(*GetNotesRequest, NoteService_GetNotesServer) error
	UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
	DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
	// contains filtered or unexported methods
}

NoteServiceServer is the server API for NoteService service. All implementations must embed UnimplementedNoteServiceServer for forward compatibility

type NoteService_GetNotesClient

type NoteService_GetNotesClient interface {
	Recv() (*GetNotesResponse, error)
	grpc.ClientStream
}

type NoteService_GetNotesServer

type NoteService_GetNotesServer interface {
	Send(*GetNotesResponse) error
	grpc.ServerStream
}

type UnimplementedNoteServiceServer

type UnimplementedNoteServiceServer struct {
}

UnimplementedNoteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNoteServiceServer) CreateNote

func (UnimplementedNoteServiceServer) DeleteNote

func (UnimplementedNoteServiceServer) GetNote

func (UnimplementedNoteServiceServer) GetNotes

func (UnimplementedNoteServiceServer) UpdateNote

type UnsafeNoteServiceServer

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

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

type UpdateNoteRequest

type UpdateNoteRequest struct {
	Id                string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	NewTitle          string                 `protobuf:"bytes,2,opt,name=new_title,json=newTitle,proto3" json:"new_title,omitempty"`
	NewContent        string                 `protobuf:"bytes,3,opt,name=new_content,json=newContent,proto3" json:"new_content,omitempty"`
	NewPriority       *string                `protobuf:"bytes,5,opt,name=new_priority,json=newPriority,proto3,oneof" json:"new_priority,omitempty"`
	NewCompletionTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=new_completion_time,json=newCompletionTime,proto3,oneof" json:"new_completion_time,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNoteRequest) Descriptor deprecated

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

Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.

func (*UpdateNoteRequest) GetId

func (x *UpdateNoteRequest) GetId() string

func (*UpdateNoteRequest) GetNewCompletionTime

func (x *UpdateNoteRequest) GetNewCompletionTime() *timestamppb.Timestamp

func (*UpdateNoteRequest) GetNewContent

func (x *UpdateNoteRequest) GetNewContent() string

func (*UpdateNoteRequest) GetNewPriority

func (x *UpdateNoteRequest) GetNewPriority() string

func (*UpdateNoteRequest) GetNewTitle

func (x *UpdateNoteRequest) GetNewTitle() string

func (*UpdateNoteRequest) ProtoMessage

func (*UpdateNoteRequest) ProtoMessage()

func (*UpdateNoteRequest) ProtoReflect

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

func (*UpdateNoteRequest) Reset

func (x *UpdateNoteRequest) Reset()

func (*UpdateNoteRequest) String

func (x *UpdateNoteRequest) String() string

func (*UpdateNoteRequest) Validate

func (m *UpdateNoteRequest) Validate() error

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

func (m *UpdateNoteRequest) ValidateAll() error

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

type UpdateNoteRequestMultiError

type UpdateNoteRequestMultiError []error

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

func (UpdateNoteRequestMultiError) AllErrors

func (m UpdateNoteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateNoteRequestMultiError) Error

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

type UpdateNoteRequestValidationError

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

UpdateNoteRequestValidationError is the validation error returned by UpdateNoteRequest.Validate if the designated constraints aren't met.

func (UpdateNoteRequestValidationError) Cause

Cause function returns cause value.

func (UpdateNoteRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateNoteRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateNoteRequestValidationError) Field

Field function returns field value.

func (UpdateNoteRequestValidationError) Key

Key function returns key value.

func (UpdateNoteRequestValidationError) Reason

Reason function returns reason value.

type UpdateNoteResponse

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

func (*UpdateNoteResponse) Descriptor deprecated

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

Deprecated: Use UpdateNoteResponse.ProtoReflect.Descriptor instead.

func (*UpdateNoteResponse) ProtoMessage

func (*UpdateNoteResponse) ProtoMessage()

func (*UpdateNoteResponse) ProtoReflect

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

func (*UpdateNoteResponse) Reset

func (x *UpdateNoteResponse) Reset()

func (*UpdateNoteResponse) String

func (x *UpdateNoteResponse) String() string

func (*UpdateNoteResponse) Validate

func (m *UpdateNoteResponse) Validate() error

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

func (m *UpdateNoteResponse) ValidateAll() error

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

type UpdateNoteResponseMultiError

type UpdateNoteResponseMultiError []error

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

func (UpdateNoteResponseMultiError) AllErrors

func (m UpdateNoteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateNoteResponseMultiError) Error

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

type UpdateNoteResponseValidationError

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

UpdateNoteResponseValidationError is the validation error returned by UpdateNoteResponse.Validate if the designated constraints aren't met.

func (UpdateNoteResponseValidationError) Cause

Cause function returns cause value.

func (UpdateNoteResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateNoteResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateNoteResponseValidationError) Field

Field function returns field value.

func (UpdateNoteResponseValidationError) Key

Key function returns key value.

func (UpdateNoteResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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