cakesv1

package
v0.0.0-...-8f7c90a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package cakesv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var CakesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cakes.v1.CakesService",
	HandlerType: (*CakesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateCake",
			Handler:    _CakesService_CreateCake_Handler,
		},
		{
			MethodName: "GetCake",
			Handler:    _CakesService_GetCake_Handler,
		},
		{
			MethodName: "ListCakes",
			Handler:    _CakesService_ListCakes_Handler,
		},
		{
			MethodName: "UpdateCake",
			Handler:    _CakesService_UpdateCake_Handler,
		},
		{
			MethodName: "DeleteCake",
			Handler:    _CakesService_DeleteCake_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cakes/v1/cakes.proto",
}

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

View Source
var File_cakes_v1_cakes_proto protoreflect.FileDescriptor

Functions

func RegisterCakesServiceHandler

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

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

func RegisterCakesServiceHandlerClient

func RegisterCakesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CakesServiceClient) error

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

func RegisterCakesServiceHandlerFromEndpoint

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

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

func RegisterCakesServiceHandlerServer

func RegisterCakesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CakesServiceServer) error

RegisterCakesServiceHandlerServer registers the http handlers for service CakesService to "mux". UnaryRPC :call CakesServiceServer 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 RegisterCakesServiceHandlerFromEndpoint instead.

func RegisterCakesServiceServer

func RegisterCakesServiceServer(s grpc.ServiceRegistrar, srv CakesServiceServer)

Types

type Cake

type Cake struct {
	Id          int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Rating      int32                  `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"`
	Image       string                 `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Cake) Descriptor deprecated

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

Deprecated: Use Cake.ProtoReflect.Descriptor instead.

func (*Cake) GetCreatedAt

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

func (*Cake) GetDescription

func (x *Cake) GetDescription() string

func (*Cake) GetId

func (x *Cake) GetId() int32

func (*Cake) GetImage

func (x *Cake) GetImage() string

func (*Cake) GetRating

func (x *Cake) GetRating() int32

func (*Cake) GetTitle

func (x *Cake) GetTitle() string

func (*Cake) GetUpdatedAt

func (x *Cake) GetUpdatedAt() *timestamppb.Timestamp

func (*Cake) ProtoMessage

func (*Cake) ProtoMessage()

func (*Cake) ProtoReflect

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

func (*Cake) Reset

func (x *Cake) Reset()

func (*Cake) String

func (x *Cake) String() string

func (*Cake) Validate

func (m *Cake) Validate() error

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

func (m *Cake) ValidateAll() error

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

type CakeMultiError

type CakeMultiError []error

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

func (CakeMultiError) AllErrors

func (m CakeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CakeMultiError) Error

func (m CakeMultiError) Error() string

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

type CakeValidationError

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

CakeValidationError is the validation error returned by Cake.Validate if the designated constraints aren't met.

func (CakeValidationError) Cause

func (e CakeValidationError) Cause() error

Cause function returns cause value.

func (CakeValidationError) Error

func (e CakeValidationError) Error() string

Error satisfies the builtin error interface

func (CakeValidationError) ErrorName

func (e CakeValidationError) ErrorName() string

ErrorName returns error name.

func (CakeValidationError) Field

func (e CakeValidationError) Field() string

Field function returns field value.

func (CakeValidationError) Key

func (e CakeValidationError) Key() bool

Key function returns key value.

func (CakeValidationError) Reason

func (e CakeValidationError) Reason() string

Reason function returns reason value.

type CakesServiceClient

type CakesServiceClient interface {
	CreateCake(ctx context.Context, in *CreateCakeRequest, opts ...grpc.CallOption) (*CreateCakeResponse, error)
	GetCake(ctx context.Context, in *GetCakeRequest, opts ...grpc.CallOption) (*GetCakeResponse, error)
	ListCakes(ctx context.Context, in *ListCakesRequest, opts ...grpc.CallOption) (*ListCakesResponse, error)
	UpdateCake(ctx context.Context, in *UpdateCakeRequest, opts ...grpc.CallOption) (*UpdateCakeResponse, error)
	DeleteCake(ctx context.Context, in *DeleteCakeRequest, opts ...grpc.CallOption) (*DeleteCakeResponse, error)
}

CakesServiceClient is the client API for CakesService 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 CakesServiceServer

CakesServiceServer is the server API for CakesService service. All implementations should embed UnimplementedCakesServiceServer for forward compatibility

type CreateCakeRequest

type CreateCakeRequest struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Rating      int32  `protobuf:"varint,3,opt,name=rating,proto3" json:"rating,omitempty"`
	Image       string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCakeRequest) Descriptor deprecated

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

Deprecated: Use CreateCakeRequest.ProtoReflect.Descriptor instead.

func (*CreateCakeRequest) GetDescription

func (x *CreateCakeRequest) GetDescription() string

func (*CreateCakeRequest) GetImage

func (x *CreateCakeRequest) GetImage() string

func (*CreateCakeRequest) GetRating

func (x *CreateCakeRequest) GetRating() int32

func (*CreateCakeRequest) GetTitle

func (x *CreateCakeRequest) GetTitle() string

func (*CreateCakeRequest) ProtoMessage

func (*CreateCakeRequest) ProtoMessage()

func (*CreateCakeRequest) ProtoReflect

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

func (*CreateCakeRequest) Reset

func (x *CreateCakeRequest) Reset()

func (*CreateCakeRequest) String

func (x *CreateCakeRequest) String() string

func (*CreateCakeRequest) Validate

func (m *CreateCakeRequest) Validate() error

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

func (m *CreateCakeRequest) ValidateAll() error

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

type CreateCakeRequestMultiError

type CreateCakeRequestMultiError []error

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

func (CreateCakeRequestMultiError) AllErrors

func (m CreateCakeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateCakeRequestMultiError) Error

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

type CreateCakeRequestValidationError

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

CreateCakeRequestValidationError is the validation error returned by CreateCakeRequest.Validate if the designated constraints aren't met.

func (CreateCakeRequestValidationError) Cause

Cause function returns cause value.

func (CreateCakeRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCakeRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCakeRequestValidationError) Field

Field function returns field value.

func (CreateCakeRequestValidationError) Key

Key function returns key value.

func (CreateCakeRequestValidationError) Reason

Reason function returns reason value.

type CreateCakeResponse

type CreateCakeResponse struct {
	Data *Cake `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCakeResponse) Descriptor deprecated

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

Deprecated: Use CreateCakeResponse.ProtoReflect.Descriptor instead.

func (*CreateCakeResponse) GetData

func (x *CreateCakeResponse) GetData() *Cake

func (*CreateCakeResponse) ProtoMessage

func (*CreateCakeResponse) ProtoMessage()

func (*CreateCakeResponse) ProtoReflect

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

func (*CreateCakeResponse) Reset

func (x *CreateCakeResponse) Reset()

func (*CreateCakeResponse) String

func (x *CreateCakeResponse) String() string

func (*CreateCakeResponse) Validate

func (m *CreateCakeResponse) Validate() error

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

func (m *CreateCakeResponse) ValidateAll() error

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

type CreateCakeResponseMultiError

type CreateCakeResponseMultiError []error

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

func (CreateCakeResponseMultiError) AllErrors

func (m CreateCakeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateCakeResponseMultiError) Error

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

type CreateCakeResponseValidationError

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

CreateCakeResponseValidationError is the validation error returned by CreateCakeResponse.Validate if the designated constraints aren't met.

func (CreateCakeResponseValidationError) Cause

Cause function returns cause value.

func (CreateCakeResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateCakeResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateCakeResponseValidationError) Field

Field function returns field value.

func (CreateCakeResponseValidationError) Key

Key function returns key value.

func (CreateCakeResponseValidationError) Reason

Reason function returns reason value.

type DeleteCakeRequest

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

func (*DeleteCakeRequest) Descriptor deprecated

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

Deprecated: Use DeleteCakeRequest.ProtoReflect.Descriptor instead.

func (*DeleteCakeRequest) GetId

func (x *DeleteCakeRequest) GetId() int32

func (*DeleteCakeRequest) ProtoMessage

func (*DeleteCakeRequest) ProtoMessage()

func (*DeleteCakeRequest) ProtoReflect

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

func (*DeleteCakeRequest) Reset

func (x *DeleteCakeRequest) Reset()

func (*DeleteCakeRequest) String

func (x *DeleteCakeRequest) String() string

func (*DeleteCakeRequest) Validate

func (m *DeleteCakeRequest) Validate() error

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

func (m *DeleteCakeRequest) ValidateAll() error

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

type DeleteCakeRequestMultiError

type DeleteCakeRequestMultiError []error

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

func (DeleteCakeRequestMultiError) AllErrors

func (m DeleteCakeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteCakeRequestMultiError) Error

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

type DeleteCakeRequestValidationError

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

DeleteCakeRequestValidationError is the validation error returned by DeleteCakeRequest.Validate if the designated constraints aren't met.

func (DeleteCakeRequestValidationError) Cause

Cause function returns cause value.

func (DeleteCakeRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteCakeRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteCakeRequestValidationError) Field

Field function returns field value.

func (DeleteCakeRequestValidationError) Key

Key function returns key value.

func (DeleteCakeRequestValidationError) Reason

Reason function returns reason value.

type DeleteCakeResponse

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

func (*DeleteCakeResponse) Descriptor deprecated

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

Deprecated: Use DeleteCakeResponse.ProtoReflect.Descriptor instead.

func (*DeleteCakeResponse) ProtoMessage

func (*DeleteCakeResponse) ProtoMessage()

func (*DeleteCakeResponse) ProtoReflect

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

func (*DeleteCakeResponse) Reset

func (x *DeleteCakeResponse) Reset()

func (*DeleteCakeResponse) String

func (x *DeleteCakeResponse) String() string

func (*DeleteCakeResponse) Validate

func (m *DeleteCakeResponse) Validate() error

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

func (m *DeleteCakeResponse) ValidateAll() error

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

type DeleteCakeResponseMultiError

type DeleteCakeResponseMultiError []error

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

func (DeleteCakeResponseMultiError) AllErrors

func (m DeleteCakeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteCakeResponseMultiError) Error

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

type DeleteCakeResponseValidationError

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

DeleteCakeResponseValidationError is the validation error returned by DeleteCakeResponse.Validate if the designated constraints aren't met.

func (DeleteCakeResponseValidationError) Cause

Cause function returns cause value.

func (DeleteCakeResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteCakeResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteCakeResponseValidationError) Field

Field function returns field value.

func (DeleteCakeResponseValidationError) Key

Key function returns key value.

func (DeleteCakeResponseValidationError) Reason

Reason function returns reason value.

type GetCakeRequest

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

func (*GetCakeRequest) Descriptor deprecated

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

Deprecated: Use GetCakeRequest.ProtoReflect.Descriptor instead.

func (*GetCakeRequest) GetId

func (x *GetCakeRequest) GetId() int32

func (*GetCakeRequest) ProtoMessage

func (*GetCakeRequest) ProtoMessage()

func (*GetCakeRequest) ProtoReflect

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

func (*GetCakeRequest) Reset

func (x *GetCakeRequest) Reset()

func (*GetCakeRequest) String

func (x *GetCakeRequest) String() string

func (*GetCakeRequest) Validate

func (m *GetCakeRequest) Validate() error

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

func (m *GetCakeRequest) ValidateAll() error

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

type GetCakeRequestMultiError

type GetCakeRequestMultiError []error

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

func (GetCakeRequestMultiError) AllErrors

func (m GetCakeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCakeRequestMultiError) Error

func (m GetCakeRequestMultiError) Error() string

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

type GetCakeRequestValidationError

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

GetCakeRequestValidationError is the validation error returned by GetCakeRequest.Validate if the designated constraints aren't met.

func (GetCakeRequestValidationError) Cause

Cause function returns cause value.

func (GetCakeRequestValidationError) Error

Error satisfies the builtin error interface

func (GetCakeRequestValidationError) ErrorName

func (e GetCakeRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetCakeRequestValidationError) Field

Field function returns field value.

func (GetCakeRequestValidationError) Key

Key function returns key value.

func (GetCakeRequestValidationError) Reason

Reason function returns reason value.

type GetCakeResponse

type GetCakeResponse struct {
	Data *Cake `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCakeResponse) Descriptor deprecated

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

Deprecated: Use GetCakeResponse.ProtoReflect.Descriptor instead.

func (*GetCakeResponse) GetData

func (x *GetCakeResponse) GetData() *Cake

func (*GetCakeResponse) ProtoMessage

func (*GetCakeResponse) ProtoMessage()

func (*GetCakeResponse) ProtoReflect

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

func (*GetCakeResponse) Reset

func (x *GetCakeResponse) Reset()

func (*GetCakeResponse) String

func (x *GetCakeResponse) String() string

func (*GetCakeResponse) Validate

func (m *GetCakeResponse) Validate() error

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

func (m *GetCakeResponse) ValidateAll() error

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

type GetCakeResponseMultiError

type GetCakeResponseMultiError []error

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

func (GetCakeResponseMultiError) AllErrors

func (m GetCakeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCakeResponseMultiError) Error

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

type GetCakeResponseValidationError

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

GetCakeResponseValidationError is the validation error returned by GetCakeResponse.Validate if the designated constraints aren't met.

func (GetCakeResponseValidationError) Cause

Cause function returns cause value.

func (GetCakeResponseValidationError) Error

Error satisfies the builtin error interface

func (GetCakeResponseValidationError) ErrorName

func (e GetCakeResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetCakeResponseValidationError) Field

Field function returns field value.

func (GetCakeResponseValidationError) Key

Key function returns key value.

func (GetCakeResponseValidationError) Reason

Reason function returns reason value.

type ListCakesRequest

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

func (*ListCakesRequest) Descriptor deprecated

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

Deprecated: Use ListCakesRequest.ProtoReflect.Descriptor instead.

func (*ListCakesRequest) ProtoMessage

func (*ListCakesRequest) ProtoMessage()

func (*ListCakesRequest) ProtoReflect

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

func (*ListCakesRequest) Reset

func (x *ListCakesRequest) Reset()

func (*ListCakesRequest) String

func (x *ListCakesRequest) String() string

func (*ListCakesRequest) Validate

func (m *ListCakesRequest) Validate() error

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

func (m *ListCakesRequest) ValidateAll() error

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

type ListCakesRequestMultiError

type ListCakesRequestMultiError []error

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

func (ListCakesRequestMultiError) AllErrors

func (m ListCakesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCakesRequestMultiError) Error

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

type ListCakesRequestValidationError

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

ListCakesRequestValidationError is the validation error returned by ListCakesRequest.Validate if the designated constraints aren't met.

func (ListCakesRequestValidationError) Cause

Cause function returns cause value.

func (ListCakesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListCakesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListCakesRequestValidationError) Field

Field function returns field value.

func (ListCakesRequestValidationError) Key

Key function returns key value.

func (ListCakesRequestValidationError) Reason

Reason function returns reason value.

type ListCakesResponse

type ListCakesResponse struct {
	Data []*Cake `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCakesResponse) Descriptor deprecated

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

Deprecated: Use ListCakesResponse.ProtoReflect.Descriptor instead.

func (*ListCakesResponse) GetData

func (x *ListCakesResponse) GetData() []*Cake

func (*ListCakesResponse) ProtoMessage

func (*ListCakesResponse) ProtoMessage()

func (*ListCakesResponse) ProtoReflect

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

func (*ListCakesResponse) Reset

func (x *ListCakesResponse) Reset()

func (*ListCakesResponse) String

func (x *ListCakesResponse) String() string

func (*ListCakesResponse) Validate

func (m *ListCakesResponse) Validate() error

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

func (m *ListCakesResponse) ValidateAll() error

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

type ListCakesResponseMultiError

type ListCakesResponseMultiError []error

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

func (ListCakesResponseMultiError) AllErrors

func (m ListCakesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListCakesResponseMultiError) Error

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

type ListCakesResponseValidationError

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

ListCakesResponseValidationError is the validation error returned by ListCakesResponse.Validate if the designated constraints aren't met.

func (ListCakesResponseValidationError) Cause

Cause function returns cause value.

func (ListCakesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListCakesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListCakesResponseValidationError) Field

Field function returns field value.

func (ListCakesResponseValidationError) Key

Key function returns key value.

func (ListCakesResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedCakesServiceServer

type UnimplementedCakesServiceServer struct {
}

UnimplementedCakesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCakesServiceServer) CreateCake

func (UnimplementedCakesServiceServer) DeleteCake

func (UnimplementedCakesServiceServer) GetCake

func (UnimplementedCakesServiceServer) ListCakes

func (UnimplementedCakesServiceServer) UpdateCake

type UnsafeCakesServiceServer

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

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

type UpdateCakeRequest

type UpdateCakeRequest struct {
	Id          int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Rating      int32  `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"`
	Image       string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCakeRequest) Descriptor deprecated

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

Deprecated: Use UpdateCakeRequest.ProtoReflect.Descriptor instead.

func (*UpdateCakeRequest) GetDescription

func (x *UpdateCakeRequest) GetDescription() string

func (*UpdateCakeRequest) GetId

func (x *UpdateCakeRequest) GetId() int32

func (*UpdateCakeRequest) GetImage

func (x *UpdateCakeRequest) GetImage() string

func (*UpdateCakeRequest) GetRating

func (x *UpdateCakeRequest) GetRating() int32

func (*UpdateCakeRequest) GetTitle

func (x *UpdateCakeRequest) GetTitle() string

func (*UpdateCakeRequest) ProtoMessage

func (*UpdateCakeRequest) ProtoMessage()

func (*UpdateCakeRequest) ProtoReflect

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

func (*UpdateCakeRequest) Reset

func (x *UpdateCakeRequest) Reset()

func (*UpdateCakeRequest) String

func (x *UpdateCakeRequest) String() string

func (*UpdateCakeRequest) Validate

func (m *UpdateCakeRequest) Validate() error

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

func (m *UpdateCakeRequest) ValidateAll() error

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

type UpdateCakeRequestMultiError

type UpdateCakeRequestMultiError []error

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

func (UpdateCakeRequestMultiError) AllErrors

func (m UpdateCakeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCakeRequestMultiError) Error

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

type UpdateCakeRequestValidationError

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

UpdateCakeRequestValidationError is the validation error returned by UpdateCakeRequest.Validate if the designated constraints aren't met.

func (UpdateCakeRequestValidationError) Cause

Cause function returns cause value.

func (UpdateCakeRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateCakeRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateCakeRequestValidationError) Field

Field function returns field value.

func (UpdateCakeRequestValidationError) Key

Key function returns key value.

func (UpdateCakeRequestValidationError) Reason

Reason function returns reason value.

type UpdateCakeResponse

type UpdateCakeResponse struct {
	Data *Cake `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCakeResponse) Descriptor deprecated

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

Deprecated: Use UpdateCakeResponse.ProtoReflect.Descriptor instead.

func (*UpdateCakeResponse) GetData

func (x *UpdateCakeResponse) GetData() *Cake

func (*UpdateCakeResponse) ProtoMessage

func (*UpdateCakeResponse) ProtoMessage()

func (*UpdateCakeResponse) ProtoReflect

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

func (*UpdateCakeResponse) Reset

func (x *UpdateCakeResponse) Reset()

func (*UpdateCakeResponse) String

func (x *UpdateCakeResponse) String() string

func (*UpdateCakeResponse) Validate

func (m *UpdateCakeResponse) Validate() error

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

func (m *UpdateCakeResponse) ValidateAll() error

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

type UpdateCakeResponseMultiError

type UpdateCakeResponseMultiError []error

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

func (UpdateCakeResponseMultiError) AllErrors

func (m UpdateCakeResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateCakeResponseMultiError) Error

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

type UpdateCakeResponseValidationError

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

UpdateCakeResponseValidationError is the validation error returned by UpdateCakeResponse.Validate if the designated constraints aren't met.

func (UpdateCakeResponseValidationError) Cause

Cause function returns cause value.

func (UpdateCakeResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateCakeResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateCakeResponseValidationError) Field

Field function returns field value.

func (UpdateCakeResponseValidationError) Key

Key function returns key value.

func (UpdateCakeResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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