notes

package
v0.0.0-...-018c32b Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Overview

Package notes is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Notes_SaveNote_FullMethodName       = "/github.com.GO-route256.classroom_8.students.workshop_2.pkg.notes.v1.Notes/SaveNote"
	Notes_ListNotes_FullMethodName      = "/github.com.GO-route256.classroom_8.students.workshop_2.pkg.notes.v1.Notes/ListNotes"
	Notes_GetNoteByID_FullMethodName    = "/github.com.GO-route256.classroom_8.students.workshop_2.pkg.notes.v1.Notes/GetNoteByID"
	Notes_DeleteNoteByID_FullMethodName = "/github.com.GO-route256.classroom_8.students.workshop_2.pkg.notes.v1.Notes/DeleteNoteByID"
	Notes_UpdateNoteByID_FullMethodName = "/github.com.GO-route256.classroom_8.students.workshop_2.pkg.notes.v1.Notes/UpdateNoteByID"
)

Variables

View Source
var File_api_notes_v1_service_proto protoreflect.FileDescriptor
View Source
var Notes_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.GO-route256.classroom_8.students.workshop_2.pkg.notes.v1.Notes",
	HandlerType: (*NotesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SaveNote",
			Handler:    _Notes_SaveNote_Handler,
		},
		{
			MethodName: "ListNotes",
			Handler:    _Notes_ListNotes_Handler,
		},
		{
			MethodName: "GetNoteByID",
			Handler:    _Notes_GetNoteByID_Handler,
		},
		{
			MethodName: "DeleteNoteByID",
			Handler:    _Notes_DeleteNoteByID_Handler,
		},
		{
			MethodName: "UpdateNoteByID",
			Handler:    _Notes_UpdateNoteByID_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/notes/v1/service.proto",
}

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

Functions

func RegisterNotesHandler

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

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

func RegisterNotesHandlerClient

func RegisterNotesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotesClient) error

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

func RegisterNotesHandlerFromEndpoint

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

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

func RegisterNotesHandlerServer

func RegisterNotesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NotesServer) error

RegisterNotesHandlerServer registers the http handlers for service Notes to "mux". UnaryRPC :call NotesServer 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 RegisterNotesHandlerFromEndpoint instead.

func RegisterNotesServer

func RegisterNotesServer(s grpc.ServiceRegistrar, srv NotesServer)

Types

type DeleteNoteByIDRequest

type DeleteNoteByIDRequest struct {
	NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNoteByIDRequest) Descriptor deprecated

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

Deprecated: Use DeleteNoteByIDRequest.ProtoReflect.Descriptor instead.

func (*DeleteNoteByIDRequest) GetNoteId

func (x *DeleteNoteByIDRequest) GetNoteId() uint64

func (*DeleteNoteByIDRequest) ProtoMessage

func (*DeleteNoteByIDRequest) ProtoMessage()

func (*DeleteNoteByIDRequest) ProtoReflect

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

func (*DeleteNoteByIDRequest) Reset

func (x *DeleteNoteByIDRequest) Reset()

func (*DeleteNoteByIDRequest) String

func (x *DeleteNoteByIDRequest) String() string

func (*DeleteNoteByIDRequest) Validate

func (m *DeleteNoteByIDRequest) Validate() error

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

func (m *DeleteNoteByIDRequest) ValidateAll() error

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

type DeleteNoteByIDRequestMultiError

type DeleteNoteByIDRequestMultiError []error

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

func (DeleteNoteByIDRequestMultiError) AllErrors

func (m DeleteNoteByIDRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteNoteByIDRequestMultiError) Error

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

type DeleteNoteByIDRequestValidationError

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

DeleteNoteByIDRequestValidationError is the validation error returned by DeleteNoteByIDRequest.Validate if the designated constraints aren't met.

func (DeleteNoteByIDRequestValidationError) Cause

Cause function returns cause value.

func (DeleteNoteByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteNoteByIDRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteNoteByIDRequestValidationError) Field

Field function returns field value.

func (DeleteNoteByIDRequestValidationError) Key

Key function returns key value.

func (DeleteNoteByIDRequestValidationError) Reason

Reason function returns reason value.

type DeleteNoteByIDResponse

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

func (*DeleteNoteByIDResponse) Descriptor deprecated

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

Deprecated: Use DeleteNoteByIDResponse.ProtoReflect.Descriptor instead.

func (*DeleteNoteByIDResponse) ProtoMessage

func (*DeleteNoteByIDResponse) ProtoMessage()

func (*DeleteNoteByIDResponse) ProtoReflect

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

func (*DeleteNoteByIDResponse) Reset

func (x *DeleteNoteByIDResponse) Reset()

func (*DeleteNoteByIDResponse) String

func (x *DeleteNoteByIDResponse) String() string

func (*DeleteNoteByIDResponse) Validate

func (m *DeleteNoteByIDResponse) Validate() error

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

func (m *DeleteNoteByIDResponse) ValidateAll() error

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

type DeleteNoteByIDResponseMultiError

type DeleteNoteByIDResponseMultiError []error

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

func (DeleteNoteByIDResponseMultiError) AllErrors

func (m DeleteNoteByIDResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteNoteByIDResponseMultiError) Error

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

type DeleteNoteByIDResponseValidationError

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

DeleteNoteByIDResponseValidationError is the validation error returned by DeleteNoteByIDResponse.Validate if the designated constraints aren't met.

func (DeleteNoteByIDResponseValidationError) Cause

Cause function returns cause value.

func (DeleteNoteByIDResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteNoteByIDResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteNoteByIDResponseValidationError) Field

Field function returns field value.

func (DeleteNoteByIDResponseValidationError) Key

Key function returns key value.

func (DeleteNoteByIDResponseValidationError) Reason

Reason function returns reason value.

type GetNoteByIDRequest

type GetNoteByIDRequest struct {
	NoteId         uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	SomeQueryParam bool   `protobuf:"varint,2,opt,name=some_query_param,json=someQueryParam,proto3" json:"some_query_param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNoteByIDRequest) Descriptor deprecated

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

Deprecated: Use GetNoteByIDRequest.ProtoReflect.Descriptor instead.

func (*GetNoteByIDRequest) GetNoteId

func (x *GetNoteByIDRequest) GetNoteId() uint64

func (*GetNoteByIDRequest) GetSomeQueryParam

func (x *GetNoteByIDRequest) GetSomeQueryParam() bool

func (*GetNoteByIDRequest) ProtoMessage

func (*GetNoteByIDRequest) ProtoMessage()

func (*GetNoteByIDRequest) ProtoReflect

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

func (*GetNoteByIDRequest) Reset

func (x *GetNoteByIDRequest) Reset()

func (*GetNoteByIDRequest) String

func (x *GetNoteByIDRequest) String() string

func (*GetNoteByIDRequest) Validate

func (m *GetNoteByIDRequest) Validate() error

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

func (m *GetNoteByIDRequest) ValidateAll() error

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

type GetNoteByIDRequestMultiError

type GetNoteByIDRequestMultiError []error

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

func (GetNoteByIDRequestMultiError) AllErrors

func (m GetNoteByIDRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNoteByIDRequestMultiError) Error

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

type GetNoteByIDRequestValidationError

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

GetNoteByIDRequestValidationError is the validation error returned by GetNoteByIDRequest.Validate if the designated constraints aren't met.

func (GetNoteByIDRequestValidationError) Cause

Cause function returns cause value.

func (GetNoteByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (GetNoteByIDRequestValidationError) ErrorName

ErrorName returns error name.

func (GetNoteByIDRequestValidationError) Field

Field function returns field value.

func (GetNoteByIDRequestValidationError) Key

Key function returns key value.

func (GetNoteByIDRequestValidationError) Reason

Reason function returns reason value.

type GetNoteByIDResponse

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

func (*GetNoteByIDResponse) Descriptor deprecated

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

Deprecated: Use GetNoteByIDResponse.ProtoReflect.Descriptor instead.

func (*GetNoteByIDResponse) ProtoMessage

func (*GetNoteByIDResponse) ProtoMessage()

func (*GetNoteByIDResponse) ProtoReflect

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

func (*GetNoteByIDResponse) Reset

func (x *GetNoteByIDResponse) Reset()

func (*GetNoteByIDResponse) String

func (x *GetNoteByIDResponse) String() string

func (*GetNoteByIDResponse) Validate

func (m *GetNoteByIDResponse) Validate() error

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

func (m *GetNoteByIDResponse) ValidateAll() error

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

type GetNoteByIDResponseMultiError

type GetNoteByIDResponseMultiError []error

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

func (GetNoteByIDResponseMultiError) AllErrors

func (m GetNoteByIDResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetNoteByIDResponseMultiError) Error

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

type GetNoteByIDResponseValidationError

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

GetNoteByIDResponseValidationError is the validation error returned by GetNoteByIDResponse.Validate if the designated constraints aren't met.

func (GetNoteByIDResponseValidationError) Cause

Cause function returns cause value.

func (GetNoteByIDResponseValidationError) Error

Error satisfies the builtin error interface

func (GetNoteByIDResponseValidationError) ErrorName

ErrorName returns error name.

func (GetNoteByIDResponseValidationError) Field

Field function returns field value.

func (GetNoteByIDResponseValidationError) Key

Key function returns key value.

func (GetNoteByIDResponseValidationError) Reason

Reason function returns reason value.

type ListNotesResponse

type ListNotesResponse struct {
	Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNotesResponse) Descriptor deprecated

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

Deprecated: Use ListNotesResponse.ProtoReflect.Descriptor instead.

func (*ListNotesResponse) GetNotes

func (x *ListNotesResponse) GetNotes() []*Note

func (*ListNotesResponse) ProtoMessage

func (*ListNotesResponse) ProtoMessage()

func (*ListNotesResponse) ProtoReflect

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

func (*ListNotesResponse) Reset

func (x *ListNotesResponse) Reset()

func (*ListNotesResponse) String

func (x *ListNotesResponse) String() string

func (*ListNotesResponse) Validate

func (m *ListNotesResponse) Validate() error

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

func (m *ListNotesResponse) ValidateAll() error

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

type ListNotesResponseMultiError

type ListNotesResponseMultiError []error

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

func (ListNotesResponseMultiError) AllErrors

func (m ListNotesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListNotesResponseMultiError) Error

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

type ListNotesResponseValidationError

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

ListNotesResponseValidationError is the validation error returned by ListNotesResponse.Validate if the designated constraints aren't met.

func (ListNotesResponseValidationError) Cause

Cause function returns cause value.

func (ListNotesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListNotesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListNotesResponseValidationError) Field

Field function returns field value.

func (ListNotesResponseValidationError) Key

Key function returns key value.

func (ListNotesResponseValidationError) Reason

Reason function returns reason value.

type Note

type Note struct {
	NoteId uint64    `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	Info   *NoteInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*Note) Descriptor deprecated

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

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetInfo

func (x *Note) GetInfo() *NoteInfo

func (*Note) GetNoteId

func (x *Note) GetNoteId() uint64

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect

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

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

func (*Note) Validate

func (m *Note) Validate() error

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

func (m *Note) ValidateAll() error

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

type NoteInfo

type NoteInfo 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"`
	// contains filtered or unexported fields
}

func (*NoteInfo) Descriptor deprecated

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

Deprecated: Use NoteInfo.ProtoReflect.Descriptor instead.

func (*NoteInfo) GetContent

func (x *NoteInfo) GetContent() string

func (*NoteInfo) GetTitle

func (x *NoteInfo) GetTitle() string

func (*NoteInfo) ProtoMessage

func (*NoteInfo) ProtoMessage()

func (*NoteInfo) ProtoReflect

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

func (*NoteInfo) Reset

func (x *NoteInfo) Reset()

func (*NoteInfo) String

func (x *NoteInfo) String() string

func (*NoteInfo) Validate

func (m *NoteInfo) Validate() error

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

func (m *NoteInfo) ValidateAll() error

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

type NoteInfoMultiError

type NoteInfoMultiError []error

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

func (NoteInfoMultiError) AllErrors

func (m NoteInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NoteInfoMultiError) Error

func (m NoteInfoMultiError) Error() string

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

type NoteInfoValidationError

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

NoteInfoValidationError is the validation error returned by NoteInfo.Validate if the designated constraints aren't met.

func (NoteInfoValidationError) Cause

func (e NoteInfoValidationError) Cause() error

Cause function returns cause value.

func (NoteInfoValidationError) Error

func (e NoteInfoValidationError) Error() string

Error satisfies the builtin error interface

func (NoteInfoValidationError) ErrorName

func (e NoteInfoValidationError) ErrorName() string

ErrorName returns error name.

func (NoteInfoValidationError) Field

func (e NoteInfoValidationError) Field() string

Field function returns field value.

func (NoteInfoValidationError) Key

func (e NoteInfoValidationError) Key() bool

Key function returns key value.

func (NoteInfoValidationError) Reason

func (e NoteInfoValidationError) Reason() string

Reason function returns reason value.

type NoteMultiError

type NoteMultiError []error

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

func (NoteMultiError) AllErrors

func (m NoteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NoteMultiError) Error

func (m NoteMultiError) Error() string

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

type NoteValidationError

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

NoteValidationError is the validation error returned by Note.Validate if the designated constraints aren't met.

func (NoteValidationError) Cause

func (e NoteValidationError) Cause() error

Cause function returns cause value.

func (NoteValidationError) Error

func (e NoteValidationError) Error() string

Error satisfies the builtin error interface

func (NoteValidationError) ErrorName

func (e NoteValidationError) ErrorName() string

ErrorName returns error name.

func (NoteValidationError) Field

func (e NoteValidationError) Field() string

Field function returns field value.

func (NoteValidationError) Key

func (e NoteValidationError) Key() bool

Key function returns key value.

func (NoteValidationError) Reason

func (e NoteValidationError) Reason() string

Reason function returns reason value.

type NotesClient

type NotesClient interface {
	SaveNote(ctx context.Context, in *SaveNoteRequest, opts ...grpc.CallOption) (*SaveNoteResponse, error)
	ListNotes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListNotesResponse, error)
	GetNoteByID(ctx context.Context, in *GetNoteByIDRequest, opts ...grpc.CallOption) (*GetNoteByIDResponse, error)
	DeleteNoteByID(ctx context.Context, in *DeleteNoteByIDRequest, opts ...grpc.CallOption) (*DeleteNoteByIDResponse, error)
	UpdateNoteByID(ctx context.Context, in *UpdateNoteByIDRequest, opts ...grpc.CallOption) (*UpdateNoteByIDResponse, error)
}

NotesClient is the client API for Notes 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 NewNotesClient

func NewNotesClient(cc grpc.ClientConnInterface) NotesClient

type NotesServer

type NotesServer interface {
	SaveNote(context.Context, *SaveNoteRequest) (*SaveNoteResponse, error)
	ListNotes(context.Context, *emptypb.Empty) (*ListNotesResponse, error)
	GetNoteByID(context.Context, *GetNoteByIDRequest) (*GetNoteByIDResponse, error)
	DeleteNoteByID(context.Context, *DeleteNoteByIDRequest) (*DeleteNoteByIDResponse, error)
	UpdateNoteByID(context.Context, *UpdateNoteByIDRequest) (*UpdateNoteByIDResponse, error)
	// contains filtered or unexported methods
}

NotesServer is the server API for Notes service. All implementations must embed UnimplementedNotesServer for forward compatibility

type SaveNoteRequest

type SaveNoteRequest struct {
	Info *NoteInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveNoteRequest) Descriptor deprecated

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

Deprecated: Use SaveNoteRequest.ProtoReflect.Descriptor instead.

func (*SaveNoteRequest) GetInfo

func (x *SaveNoteRequest) GetInfo() *NoteInfo

func (*SaveNoteRequest) ProtoMessage

func (*SaveNoteRequest) ProtoMessage()

func (*SaveNoteRequest) ProtoReflect

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

func (*SaveNoteRequest) Reset

func (x *SaveNoteRequest) Reset()

func (*SaveNoteRequest) String

func (x *SaveNoteRequest) String() string

func (*SaveNoteRequest) Validate

func (m *SaveNoteRequest) Validate() error

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

func (m *SaveNoteRequest) ValidateAll() error

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

type SaveNoteRequestMultiError

type SaveNoteRequestMultiError []error

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

func (SaveNoteRequestMultiError) AllErrors

func (m SaveNoteRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveNoteRequestMultiError) Error

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

type SaveNoteRequestValidationError

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

SaveNoteRequestValidationError is the validation error returned by SaveNoteRequest.Validate if the designated constraints aren't met.

func (SaveNoteRequestValidationError) Cause

Cause function returns cause value.

func (SaveNoteRequestValidationError) Error

Error satisfies the builtin error interface

func (SaveNoteRequestValidationError) ErrorName

func (e SaveNoteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SaveNoteRequestValidationError) Field

Field function returns field value.

func (SaveNoteRequestValidationError) Key

Key function returns key value.

func (SaveNoteRequestValidationError) Reason

Reason function returns reason value.

type SaveNoteResponse

type SaveNoteResponse struct {
	NoteId uint64 `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveNoteResponse) Descriptor deprecated

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

Deprecated: Use SaveNoteResponse.ProtoReflect.Descriptor instead.

func (*SaveNoteResponse) GetNoteId

func (x *SaveNoteResponse) GetNoteId() uint64

func (*SaveNoteResponse) ProtoMessage

func (*SaveNoteResponse) ProtoMessage()

func (*SaveNoteResponse) ProtoReflect

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

func (*SaveNoteResponse) Reset

func (x *SaveNoteResponse) Reset()

func (*SaveNoteResponse) String

func (x *SaveNoteResponse) String() string

func (*SaveNoteResponse) Validate

func (m *SaveNoteResponse) Validate() error

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

func (m *SaveNoteResponse) ValidateAll() error

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

type SaveNoteResponseMultiError

type SaveNoteResponseMultiError []error

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

func (SaveNoteResponseMultiError) AllErrors

func (m SaveNoteResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SaveNoteResponseMultiError) Error

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

type SaveNoteResponseValidationError

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

SaveNoteResponseValidationError is the validation error returned by SaveNoteResponse.Validate if the designated constraints aren't met.

func (SaveNoteResponseValidationError) Cause

Cause function returns cause value.

func (SaveNoteResponseValidationError) Error

Error satisfies the builtin error interface

func (SaveNoteResponseValidationError) ErrorName

ErrorName returns error name.

func (SaveNoteResponseValidationError) Field

Field function returns field value.

func (SaveNoteResponseValidationError) Key

Key function returns key value.

func (SaveNoteResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedNotesServer

type UnimplementedNotesServer struct {
}

UnimplementedNotesServer must be embedded to have forward compatible implementations.

func (UnimplementedNotesServer) DeleteNoteByID

func (UnimplementedNotesServer) GetNoteByID

func (UnimplementedNotesServer) ListNotes

func (UnimplementedNotesServer) SaveNote

func (UnimplementedNotesServer) UpdateNoteByID

type UnsafeNotesServer

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

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

type UpdateNoteByIDRequest

type UpdateNoteByIDRequest struct {
	NoteId uint64    `protobuf:"varint,1,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"`
	Info   *NoteInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNoteByIDRequest) Descriptor deprecated

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

Deprecated: Use UpdateNoteByIDRequest.ProtoReflect.Descriptor instead.

func (*UpdateNoteByIDRequest) GetInfo

func (x *UpdateNoteByIDRequest) GetInfo() *NoteInfo

func (*UpdateNoteByIDRequest) GetNoteId

func (x *UpdateNoteByIDRequest) GetNoteId() uint64

func (*UpdateNoteByIDRequest) ProtoMessage

func (*UpdateNoteByIDRequest) ProtoMessage()

func (*UpdateNoteByIDRequest) ProtoReflect

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

func (*UpdateNoteByIDRequest) Reset

func (x *UpdateNoteByIDRequest) Reset()

func (*UpdateNoteByIDRequest) String

func (x *UpdateNoteByIDRequest) String() string

func (*UpdateNoteByIDRequest) Validate

func (m *UpdateNoteByIDRequest) Validate() error

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

func (m *UpdateNoteByIDRequest) ValidateAll() error

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

type UpdateNoteByIDRequestMultiError

type UpdateNoteByIDRequestMultiError []error

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

func (UpdateNoteByIDRequestMultiError) AllErrors

func (m UpdateNoteByIDRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateNoteByIDRequestMultiError) Error

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

type UpdateNoteByIDRequestValidationError

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

UpdateNoteByIDRequestValidationError is the validation error returned by UpdateNoteByIDRequest.Validate if the designated constraints aren't met.

func (UpdateNoteByIDRequestValidationError) Cause

Cause function returns cause value.

func (UpdateNoteByIDRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateNoteByIDRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateNoteByIDRequestValidationError) Field

Field function returns field value.

func (UpdateNoteByIDRequestValidationError) Key

Key function returns key value.

func (UpdateNoteByIDRequestValidationError) Reason

Reason function returns reason value.

type UpdateNoteByIDResponse

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

func (*UpdateNoteByIDResponse) Descriptor deprecated

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

Deprecated: Use UpdateNoteByIDResponse.ProtoReflect.Descriptor instead.

func (*UpdateNoteByIDResponse) ProtoMessage

func (*UpdateNoteByIDResponse) ProtoMessage()

func (*UpdateNoteByIDResponse) ProtoReflect

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

func (*UpdateNoteByIDResponse) Reset

func (x *UpdateNoteByIDResponse) Reset()

func (*UpdateNoteByIDResponse) String

func (x *UpdateNoteByIDResponse) String() string

func (*UpdateNoteByIDResponse) Validate

func (m *UpdateNoteByIDResponse) Validate() error

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

func (m *UpdateNoteByIDResponse) ValidateAll() error

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

type UpdateNoteByIDResponseMultiError

type UpdateNoteByIDResponseMultiError []error

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

func (UpdateNoteByIDResponseMultiError) AllErrors

func (m UpdateNoteByIDResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateNoteByIDResponseMultiError) Error

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

type UpdateNoteByIDResponseValidationError

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

UpdateNoteByIDResponseValidationError is the validation error returned by UpdateNoteByIDResponse.Validate if the designated constraints aren't met.

func (UpdateNoteByIDResponseValidationError) Cause

Cause function returns cause value.

func (UpdateNoteByIDResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateNoteByIDResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateNoteByIDResponseValidationError) Field

Field function returns field value.

func (UpdateNoteByIDResponseValidationError) Key

Key function returns key value.

func (UpdateNoteByIDResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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