economy

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 27 Imported by: 2

Documentation

Overview

Package economy is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	WatchProductResponse_ProductEvent_name = map[int32]string{
		0: "UNKNOWN",
		1: "PRICE_CHANGED",
		2: "PRODUCT_BOUGHT",
		3: "PRODUCT_INFO_UPDATED",
		4: "PRODUCT_DELETED",
	}
	WatchProductResponse_ProductEvent_value = map[string]int32{
		"UNKNOWN":              0,
		"PRICE_CHANGED":        1,
		"PRODUCT_BOUGHT":       2,
		"PRODUCT_INFO_UPDATED": 3,
		"PRODUCT_DELETED":      4,
	}
)

Enum value maps for WatchProductResponse_ProductEvent.

View Source
var File_economy_economy_proto protoreflect.FileDescriptor

Functions

func RegisterMruVEconomyServiceHandler

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

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

func RegisterMruVEconomyServiceHandlerClient

func RegisterMruVEconomyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MruVEconomyServiceClient) error

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

func RegisterMruVEconomyServiceHandlerFromEndpoint

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

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

func RegisterMruVEconomyServiceHandlerServer

func RegisterMruVEconomyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MruVEconomyServiceServer) error

RegisterMruVEconomyServiceHandlerServer registers the http handlers for service MruVEconomyService to "mux". UnaryRPC :call MruVEconomyServiceServer 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 RegisterMruVEconomyServiceHandlerFromEndpoint instead.

func RegisterMruVEconomyServiceServer

func RegisterMruVEconomyServiceServer(s *grpc.Server, srv MruVEconomyServiceServer)

Types

type BuyProductRequest

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

Request message for rpc `BuyProduct`.

func (*BuyProductRequest) Descriptor deprecated

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

Deprecated: Use BuyProductRequest.ProtoReflect.Descriptor instead.

func (*BuyProductRequest) GetId

func (x *BuyProductRequest) GetId() uint32

func (*BuyProductRequest) GetName

func (x *BuyProductRequest) GetName() string

func (*BuyProductRequest) ProtoMessage

func (*BuyProductRequest) ProtoMessage()

func (*BuyProductRequest) ProtoReflect added in v0.8.4

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

func (*BuyProductRequest) Reset

func (x *BuyProductRequest) Reset()

func (*BuyProductRequest) String

func (x *BuyProductRequest) String() string

func (*BuyProductRequest) Validate

func (m *BuyProductRequest) Validate() error

Validate checks the field values on BuyProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BuyProductRequestValidationError

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

BuyProductRequestValidationError is the validation error returned by BuyProductRequest.Validate if the designated constraints aren't met.

func (BuyProductRequestValidationError) Cause

Cause function returns cause value.

func (BuyProductRequestValidationError) Error

Error satisfies the builtin error interface

func (BuyProductRequestValidationError) ErrorName

ErrorName returns error name.

func (BuyProductRequestValidationError) Field

Field function returns field value.

func (BuyProductRequestValidationError) Key

Key function returns key value.

func (BuyProductRequestValidationError) Reason

Reason function returns reason value.

type BuyProductResponse

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

Response message for rpc `BuyProduct`.

func (*BuyProductResponse) Descriptor deprecated

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

Deprecated: Use BuyProductResponse.ProtoReflect.Descriptor instead.

func (*BuyProductResponse) ProtoMessage

func (*BuyProductResponse) ProtoMessage()

func (*BuyProductResponse) ProtoReflect added in v0.8.4

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

func (*BuyProductResponse) Reset

func (x *BuyProductResponse) Reset()

func (*BuyProductResponse) String

func (x *BuyProductResponse) String() string

func (*BuyProductResponse) Validate

func (m *BuyProductResponse) Validate() error

Validate checks the field values on BuyProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type BuyProductResponseValidationError

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

BuyProductResponseValidationError is the validation error returned by BuyProductResponse.Validate if the designated constraints aren't met.

func (BuyProductResponseValidationError) Cause

Cause function returns cause value.

func (BuyProductResponseValidationError) Error

Error satisfies the builtin error interface

func (BuyProductResponseValidationError) ErrorName

ErrorName returns error name.

func (BuyProductResponseValidationError) Field

Field function returns field value.

func (BuyProductResponseValidationError) Key

Key function returns key value.

func (BuyProductResponseValidationError) Reason

Reason function returns reason value.

type DeleteProductRequest

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

Request message for rpc `DeleteProduct`.

func (*DeleteProductRequest) Descriptor deprecated

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

Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.

func (*DeleteProductRequest) GetId

func (x *DeleteProductRequest) GetId() uint32

func (*DeleteProductRequest) GetName

func (x *DeleteProductRequest) GetName() string

func (*DeleteProductRequest) ProtoMessage

func (*DeleteProductRequest) ProtoMessage()

func (*DeleteProductRequest) ProtoReflect added in v0.8.4

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

func (*DeleteProductRequest) Reset

func (x *DeleteProductRequest) Reset()

func (*DeleteProductRequest) String

func (x *DeleteProductRequest) String() string

func (*DeleteProductRequest) Validate

func (m *DeleteProductRequest) Validate() error

Validate checks the field values on DeleteProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteProductRequestValidationError

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

DeleteProductRequestValidationError is the validation error returned by DeleteProductRequest.Validate if the designated constraints aren't met.

func (DeleteProductRequestValidationError) Cause

Cause function returns cause value.

func (DeleteProductRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductRequestValidationError) Field

Field function returns field value.

func (DeleteProductRequestValidationError) Key

Key function returns key value.

func (DeleteProductRequestValidationError) Reason

Reason function returns reason value.

type DeleteProductResponse

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

Response message for rpc `DeleteProduct`.

func (*DeleteProductResponse) Descriptor deprecated

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

Deprecated: Use DeleteProductResponse.ProtoReflect.Descriptor instead.

func (*DeleteProductResponse) ProtoMessage

func (*DeleteProductResponse) ProtoMessage()

func (*DeleteProductResponse) ProtoReflect added in v0.8.4

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

func (*DeleteProductResponse) Reset

func (x *DeleteProductResponse) Reset()

func (*DeleteProductResponse) String

func (x *DeleteProductResponse) String() string

func (*DeleteProductResponse) Validate

func (m *DeleteProductResponse) Validate() error

Validate checks the field values on DeleteProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteProductResponseValidationError

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

DeleteProductResponseValidationError is the validation error returned by DeleteProductResponse.Validate if the designated constraints aren't met.

func (DeleteProductResponseValidationError) Cause

Cause function returns cause value.

func (DeleteProductResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductResponseValidationError) Field

Field function returns field value.

func (DeleteProductResponseValidationError) Key

Key function returns key value.

func (DeleteProductResponseValidationError) Reason

Reason function returns reason value.

type GetPriceRequest

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

Request message for rpc `GetPrice`.

func (*GetPriceRequest) Descriptor deprecated

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

Deprecated: Use GetPriceRequest.ProtoReflect.Descriptor instead.

func (*GetPriceRequest) GetId

func (x *GetPriceRequest) GetId() uint32

func (*GetPriceRequest) GetName

func (x *GetPriceRequest) GetName() string

func (*GetPriceRequest) ProtoMessage

func (*GetPriceRequest) ProtoMessage()

func (*GetPriceRequest) ProtoReflect added in v0.8.4

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

func (*GetPriceRequest) Reset

func (x *GetPriceRequest) Reset()

func (*GetPriceRequest) String

func (x *GetPriceRequest) String() string

func (*GetPriceRequest) Validate

func (m *GetPriceRequest) Validate() error

Validate checks the field values on GetPriceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetPriceRequestValidationError

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

GetPriceRequestValidationError is the validation error returned by GetPriceRequest.Validate if the designated constraints aren't met.

func (GetPriceRequestValidationError) Cause

Cause function returns cause value.

func (GetPriceRequestValidationError) Error

Error satisfies the builtin error interface

func (GetPriceRequestValidationError) ErrorName

func (e GetPriceRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetPriceRequestValidationError) Field

Field function returns field value.

func (GetPriceRequestValidationError) Key

Key function returns key value.

func (GetPriceRequestValidationError) Reason

Reason function returns reason value.

type GetPriceResponse

type GetPriceResponse struct {
	Price uint32 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `GetPrice`.

func (*GetPriceResponse) Descriptor deprecated

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

Deprecated: Use GetPriceResponse.ProtoReflect.Descriptor instead.

func (*GetPriceResponse) GetPrice

func (x *GetPriceResponse) GetPrice() uint32

func (*GetPriceResponse) ProtoMessage

func (*GetPriceResponse) ProtoMessage()

func (*GetPriceResponse) ProtoReflect added in v0.8.4

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

func (*GetPriceResponse) Reset

func (x *GetPriceResponse) Reset()

func (*GetPriceResponse) String

func (x *GetPriceResponse) String() string

func (*GetPriceResponse) Validate

func (m *GetPriceResponse) Validate() error

Validate checks the field values on GetPriceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetPriceResponseValidationError

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

GetPriceResponseValidationError is the validation error returned by GetPriceResponse.Validate if the designated constraints aren't met.

func (GetPriceResponseValidationError) Cause

Cause function returns cause value.

func (GetPriceResponseValidationError) Error

Error satisfies the builtin error interface

func (GetPriceResponseValidationError) ErrorName

ErrorName returns error name.

func (GetPriceResponseValidationError) Field

Field function returns field value.

func (GetPriceResponseValidationError) Key

Key function returns key value.

func (GetPriceResponseValidationError) Reason

Reason function returns reason value.

type GetProductRequest

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

Request message for rpc `GetProduct`.

func (*GetProductRequest) Descriptor deprecated

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

Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.

func (*GetProductRequest) GetId

func (x *GetProductRequest) GetId() uint32

func (*GetProductRequest) GetName

func (x *GetProductRequest) GetName() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect added in v0.8.4

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

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

func (*GetProductRequest) Validate

func (m *GetProductRequest) Validate() error

Validate checks the field values on GetProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetProductRequestValidationError

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

GetProductRequestValidationError is the validation error returned by GetProductRequest.Validate if the designated constraints aren't met.

func (GetProductRequestValidationError) Cause

Cause function returns cause value.

func (GetProductRequestValidationError) Error

Error satisfies the builtin error interface

func (GetProductRequestValidationError) ErrorName

ErrorName returns error name.

func (GetProductRequestValidationError) Field

Field function returns field value.

func (GetProductRequestValidationError) Key

Key function returns key value.

func (GetProductRequestValidationError) Reason

Reason function returns reason value.

type GetProductResponse

type GetProductResponse struct {
	Name          string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FullName      string  `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Description   string  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	PriceClass    uint32  `protobuf:"varint,4,opt,name=price_class,json=priceClass,proto3" json:"price_class,omitempty"`
	PriceRatio    float32 `protobuf:"fixed32,5,opt,name=price_ratio,json=priceRatio,proto3" json:"price_ratio,omitempty"`
	StartingPrice uint32  `protobuf:"varint,6,opt,name=starting_price,json=startingPrice,proto3" json:"starting_price,omitempty"`
	Price         uint32  `protobuf:"varint,7,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `GetProduct`.

func (*GetProductResponse) Descriptor deprecated

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

Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.

func (*GetProductResponse) GetDescription

func (x *GetProductResponse) GetDescription() string

func (*GetProductResponse) GetFullName

func (x *GetProductResponse) GetFullName() string

func (*GetProductResponse) GetName

func (x *GetProductResponse) GetName() string

func (*GetProductResponse) GetPrice

func (x *GetProductResponse) GetPrice() uint32

func (*GetProductResponse) GetPriceClass

func (x *GetProductResponse) GetPriceClass() uint32

func (*GetProductResponse) GetPriceRatio

func (x *GetProductResponse) GetPriceRatio() float32

func (*GetProductResponse) GetStartingPrice

func (x *GetProductResponse) GetStartingPrice() uint32

func (*GetProductResponse) ProtoMessage

func (*GetProductResponse) ProtoMessage()

func (*GetProductResponse) ProtoReflect added in v0.8.4

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

func (*GetProductResponse) Reset

func (x *GetProductResponse) Reset()

func (*GetProductResponse) String

func (x *GetProductResponse) String() string

func (*GetProductResponse) Validate

func (m *GetProductResponse) Validate() error

Validate checks the field values on GetProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetProductResponseValidationError

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

GetProductResponseValidationError is the validation error returned by GetProductResponse.Validate if the designated constraints aren't met.

func (GetProductResponseValidationError) Cause

Cause function returns cause value.

func (GetProductResponseValidationError) Error

Error satisfies the builtin error interface

func (GetProductResponseValidationError) ErrorName

ErrorName returns error name.

func (GetProductResponseValidationError) Field

Field function returns field value.

func (GetProductResponseValidationError) Key

Key function returns key value.

func (GetProductResponseValidationError) Reason

Reason function returns reason value.

type MruVEconomyServiceClient

type MruVEconomyServiceClient interface {
	// Register price in economy system.
	RegisterProduct(ctx context.Context, in *RegisterProductRequest, opts ...grpc.CallOption) (*RegisterProductResponse, error)
	// Get product information.
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error)
	// Update product information.
	UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*UpdateProductResponse, error)
	//
	DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*DeleteProductResponse, error)
	// Update product price.
	UpdatePrice(ctx context.Context, in *UpdatePriceRequest, opts ...grpc.CallOption) (*UpdatePriceResponse, error)
	// Get current value for registered price.
	GetPrice(ctx context.Context, in *GetPriceRequest, opts ...grpc.CallOption) (*GetPriceResponse, error)
	// Send information to the system, that the product has been purchased.
	// This rpc call can affect a product price.
	BuyProduct(ctx context.Context, in *BuyProductRequest, opts ...grpc.CallOption) (*BuyProductResponse, error)
	// Subscribe to events related to a product.
	WatchProduct(ctx context.Context, in *WatchProductRequest, opts ...grpc.CallOption) (MruVEconomyService_WatchProductClient, error)
	// Subscribe to product price changes.
	WatchPrice(ctx context.Context, in *WatchPriceRequest, opts ...grpc.CallOption) (MruVEconomyService_WatchPriceClient, error)
}

MruVEconomyServiceClient is the client API for MruVEconomyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MruVEconomyServiceServer

type MruVEconomyServiceServer interface {
	// Register price in economy system.
	RegisterProduct(context.Context, *RegisterProductRequest) (*RegisterProductResponse, error)
	// Get product information.
	GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
	// Update product information.
	UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
	//
	DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
	// Update product price.
	UpdatePrice(context.Context, *UpdatePriceRequest) (*UpdatePriceResponse, error)
	// Get current value for registered price.
	GetPrice(context.Context, *GetPriceRequest) (*GetPriceResponse, error)
	// Send information to the system, that the product has been purchased.
	// This rpc call can affect a product price.
	BuyProduct(context.Context, *BuyProductRequest) (*BuyProductResponse, error)
	// Subscribe to events related to a product.
	WatchProduct(*WatchProductRequest, MruVEconomyService_WatchProductServer) error
	// Subscribe to product price changes.
	WatchPrice(*WatchPriceRequest, MruVEconomyService_WatchPriceServer) error
}

MruVEconomyServiceServer is the server API for MruVEconomyService service.

type MruVEconomyService_WatchPriceClient

type MruVEconomyService_WatchPriceClient interface {
	Recv() (*WatchPriceResponse, error)
	grpc.ClientStream
}

type MruVEconomyService_WatchPriceServer

type MruVEconomyService_WatchPriceServer interface {
	Send(*WatchPriceResponse) error
	grpc.ServerStream
}

type MruVEconomyService_WatchProductClient

type MruVEconomyService_WatchProductClient interface {
	Recv() (*WatchProductResponse, error)
	grpc.ClientStream
}

type MruVEconomyService_WatchProductServer

type MruVEconomyService_WatchProductServer interface {
	Send(*WatchProductResponse) error
	grpc.ServerStream
}

type RegisterProductRequest

type RegisterProductRequest struct {
	Name          string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FullName      string  `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Description   string  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	PriceClass    uint32  `protobuf:"varint,4,opt,name=price_class,json=priceClass,proto3" json:"price_class,omitempty"`
	PriceRatio    float32 `protobuf:"fixed32,5,opt,name=price_ratio,json=priceRatio,proto3" json:"price_ratio,omitempty"`
	StartingPrice uint32  `protobuf:"varint,6,opt,name=starting_price,json=startingPrice,proto3" json:"starting_price,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `RegisterProduct`.

func (*RegisterProductRequest) Descriptor deprecated

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

Deprecated: Use RegisterProductRequest.ProtoReflect.Descriptor instead.

func (*RegisterProductRequest) GetDescription

func (x *RegisterProductRequest) GetDescription() string

func (*RegisterProductRequest) GetFullName

func (x *RegisterProductRequest) GetFullName() string

func (*RegisterProductRequest) GetName

func (x *RegisterProductRequest) GetName() string

func (*RegisterProductRequest) GetPriceClass

func (x *RegisterProductRequest) GetPriceClass() uint32

func (*RegisterProductRequest) GetPriceRatio

func (x *RegisterProductRequest) GetPriceRatio() float32

func (*RegisterProductRequest) GetStartingPrice

func (x *RegisterProductRequest) GetStartingPrice() uint32

func (*RegisterProductRequest) ProtoMessage

func (*RegisterProductRequest) ProtoMessage()

func (*RegisterProductRequest) ProtoReflect added in v0.8.4

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

func (*RegisterProductRequest) Reset

func (x *RegisterProductRequest) Reset()

func (*RegisterProductRequest) String

func (x *RegisterProductRequest) String() string

func (*RegisterProductRequest) Validate

func (m *RegisterProductRequest) Validate() error

Validate checks the field values on RegisterProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RegisterProductRequestValidationError

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

RegisterProductRequestValidationError is the validation error returned by RegisterProductRequest.Validate if the designated constraints aren't met.

func (RegisterProductRequestValidationError) Cause

Cause function returns cause value.

func (RegisterProductRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterProductRequestValidationError) ErrorName

ErrorName returns error name.

func (RegisterProductRequestValidationError) Field

Field function returns field value.

func (RegisterProductRequestValidationError) Key

Key function returns key value.

func (RegisterProductRequestValidationError) Reason

Reason function returns reason value.

type RegisterProductResponse

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

Response message for rpc `RegisterProduct`.

func (*RegisterProductResponse) Descriptor deprecated

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

Deprecated: Use RegisterProductResponse.ProtoReflect.Descriptor instead.

func (*RegisterProductResponse) GetId

func (x *RegisterProductResponse) GetId() uint32

func (*RegisterProductResponse) ProtoMessage

func (*RegisterProductResponse) ProtoMessage()

func (*RegisterProductResponse) ProtoReflect added in v0.8.4

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

func (*RegisterProductResponse) Reset

func (x *RegisterProductResponse) Reset()

func (*RegisterProductResponse) String

func (x *RegisterProductResponse) String() string

func (*RegisterProductResponse) Validate

func (m *RegisterProductResponse) Validate() error

Validate checks the field values on RegisterProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RegisterProductResponseValidationError

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

RegisterProductResponseValidationError is the validation error returned by RegisterProductResponse.Validate if the designated constraints aren't met.

func (RegisterProductResponseValidationError) Cause

Cause function returns cause value.

func (RegisterProductResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterProductResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterProductResponseValidationError) Field

Field function returns field value.

func (RegisterProductResponseValidationError) Key

Key function returns key value.

func (RegisterProductResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedMruVEconomyServiceServer

type UnimplementedMruVEconomyServiceServer struct {
}

UnimplementedMruVEconomyServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMruVEconomyServiceServer) BuyProduct

func (*UnimplementedMruVEconomyServiceServer) DeleteProduct

func (*UnimplementedMruVEconomyServiceServer) GetPrice

func (*UnimplementedMruVEconomyServiceServer) GetProduct

func (*UnimplementedMruVEconomyServiceServer) RegisterProduct

func (*UnimplementedMruVEconomyServiceServer) UpdatePrice

func (*UnimplementedMruVEconomyServiceServer) UpdateProduct

func (*UnimplementedMruVEconomyServiceServer) WatchPrice

func (*UnimplementedMruVEconomyServiceServer) WatchProduct

type UpdatePriceRequest

type UpdatePriceRequest struct {
	Id       uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	NewPrice uint32 `protobuf:"varint,3,opt,name=new_price,json=newPrice,proto3" json:"new_price,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `UpdatePrice`.

func (*UpdatePriceRequest) Descriptor deprecated

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

Deprecated: Use UpdatePriceRequest.ProtoReflect.Descriptor instead.

func (*UpdatePriceRequest) GetId

func (x *UpdatePriceRequest) GetId() uint32

func (*UpdatePriceRequest) GetName

func (x *UpdatePriceRequest) GetName() string

func (*UpdatePriceRequest) GetNewPrice

func (x *UpdatePriceRequest) GetNewPrice() uint32

func (*UpdatePriceRequest) ProtoMessage

func (*UpdatePriceRequest) ProtoMessage()

func (*UpdatePriceRequest) ProtoReflect added in v0.8.4

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

func (*UpdatePriceRequest) Reset

func (x *UpdatePriceRequest) Reset()

func (*UpdatePriceRequest) String

func (x *UpdatePriceRequest) String() string

func (*UpdatePriceRequest) Validate

func (m *UpdatePriceRequest) Validate() error

Validate checks the field values on UpdatePriceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdatePriceRequestValidationError

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

UpdatePriceRequestValidationError is the validation error returned by UpdatePriceRequest.Validate if the designated constraints aren't met.

func (UpdatePriceRequestValidationError) Cause

Cause function returns cause value.

func (UpdatePriceRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdatePriceRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdatePriceRequestValidationError) Field

Field function returns field value.

func (UpdatePriceRequestValidationError) Key

Key function returns key value.

func (UpdatePriceRequestValidationError) Reason

Reason function returns reason value.

type UpdatePriceResponse

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

Response message for rpc `UpdatePrice`.

func (*UpdatePriceResponse) Descriptor deprecated

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

Deprecated: Use UpdatePriceResponse.ProtoReflect.Descriptor instead.

func (*UpdatePriceResponse) ProtoMessage

func (*UpdatePriceResponse) ProtoMessage()

func (*UpdatePriceResponse) ProtoReflect added in v0.8.4

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

func (*UpdatePriceResponse) Reset

func (x *UpdatePriceResponse) Reset()

func (*UpdatePriceResponse) String

func (x *UpdatePriceResponse) String() string

func (*UpdatePriceResponse) Validate

func (m *UpdatePriceResponse) Validate() error

Validate checks the field values on UpdatePriceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdatePriceResponseValidationError

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

UpdatePriceResponseValidationError is the validation error returned by UpdatePriceResponse.Validate if the designated constraints aren't met.

func (UpdatePriceResponseValidationError) Cause

Cause function returns cause value.

func (UpdatePriceResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdatePriceResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdatePriceResponseValidationError) Field

Field function returns field value.

func (UpdatePriceResponseValidationError) Key

Key function returns key value.

func (UpdatePriceResponseValidationError) Reason

Reason function returns reason value.

type UpdateProductRequest

type UpdateProductRequest struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	FullName    string  `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Description string  `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	PriceClass  uint32  `protobuf:"varint,5,opt,name=price_class,json=priceClass,proto3" json:"price_class,omitempty"`
	PriceRatio  float32 `protobuf:"fixed32,6,opt,name=price_ratio,json=priceRatio,proto3" json:"price_ratio,omitempty"`
	// contains filtered or unexported fields
}

Request message for rpc `UpdateProduct`.

func (*UpdateProductRequest) Descriptor deprecated

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

Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.

func (*UpdateProductRequest) GetDescription

func (x *UpdateProductRequest) GetDescription() string

func (*UpdateProductRequest) GetFullName

func (x *UpdateProductRequest) GetFullName() string

func (*UpdateProductRequest) GetId

func (x *UpdateProductRequest) GetId() uint32

func (*UpdateProductRequest) GetName

func (x *UpdateProductRequest) GetName() string

func (*UpdateProductRequest) GetPriceClass

func (x *UpdateProductRequest) GetPriceClass() uint32

func (*UpdateProductRequest) GetPriceRatio

func (x *UpdateProductRequest) GetPriceRatio() float32

func (*UpdateProductRequest) ProtoMessage

func (*UpdateProductRequest) ProtoMessage()

func (*UpdateProductRequest) ProtoReflect added in v0.8.4

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

func (*UpdateProductRequest) Reset

func (x *UpdateProductRequest) Reset()

func (*UpdateProductRequest) String

func (x *UpdateProductRequest) String() string

func (*UpdateProductRequest) Validate

func (m *UpdateProductRequest) Validate() error

Validate checks the field values on UpdateProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateProductRequestValidationError

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

UpdateProductRequestValidationError is the validation error returned by UpdateProductRequest.Validate if the designated constraints aren't met.

func (UpdateProductRequestValidationError) Cause

Cause function returns cause value.

func (UpdateProductRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateProductRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateProductRequestValidationError) Field

Field function returns field value.

func (UpdateProductRequestValidationError) Key

Key function returns key value.

func (UpdateProductRequestValidationError) Reason

Reason function returns reason value.

type UpdateProductResponse

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

Response message for rpc `UpdateProduct`.

func (*UpdateProductResponse) Descriptor deprecated

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

Deprecated: Use UpdateProductResponse.ProtoReflect.Descriptor instead.

func (*UpdateProductResponse) ProtoMessage

func (*UpdateProductResponse) ProtoMessage()

func (*UpdateProductResponse) ProtoReflect added in v0.8.4

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

func (*UpdateProductResponse) Reset

func (x *UpdateProductResponse) Reset()

func (*UpdateProductResponse) String

func (x *UpdateProductResponse) String() string

func (*UpdateProductResponse) Validate

func (m *UpdateProductResponse) Validate() error

Validate checks the field values on UpdateProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UpdateProductResponseValidationError

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

UpdateProductResponseValidationError is the validation error returned by UpdateProductResponse.Validate if the designated constraints aren't met.

func (UpdateProductResponseValidationError) Cause

Cause function returns cause value.

func (UpdateProductResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateProductResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateProductResponseValidationError) Field

Field function returns field value.

func (UpdateProductResponseValidationError) Key

Key function returns key value.

func (UpdateProductResponseValidationError) Reason

Reason function returns reason value.

type WatchPriceRequest

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

Request message for rpc `WatchPrice`.

func (*WatchPriceRequest) Descriptor deprecated

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

Deprecated: Use WatchPriceRequest.ProtoReflect.Descriptor instead.

func (*WatchPriceRequest) GetId

func (x *WatchPriceRequest) GetId() uint32

func (*WatchPriceRequest) GetName

func (x *WatchPriceRequest) GetName() string

func (*WatchPriceRequest) ProtoMessage

func (*WatchPriceRequest) ProtoMessage()

func (*WatchPriceRequest) ProtoReflect added in v0.8.4

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

func (*WatchPriceRequest) Reset

func (x *WatchPriceRequest) Reset()

func (*WatchPriceRequest) String

func (x *WatchPriceRequest) String() string

func (*WatchPriceRequest) Validate

func (m *WatchPriceRequest) Validate() error

Validate checks the field values on WatchPriceRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WatchPriceRequestValidationError

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

WatchPriceRequestValidationError is the validation error returned by WatchPriceRequest.Validate if the designated constraints aren't met.

func (WatchPriceRequestValidationError) Cause

Cause function returns cause value.

func (WatchPriceRequestValidationError) Error

Error satisfies the builtin error interface

func (WatchPriceRequestValidationError) ErrorName

ErrorName returns error name.

func (WatchPriceRequestValidationError) Field

Field function returns field value.

func (WatchPriceRequestValidationError) Key

Key function returns key value.

func (WatchPriceRequestValidationError) Reason

Reason function returns reason value.

type WatchPriceResponse

type WatchPriceResponse struct {
	Price uint32 `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `WatchPrice`.

func (*WatchPriceResponse) Descriptor deprecated

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

Deprecated: Use WatchPriceResponse.ProtoReflect.Descriptor instead.

func (*WatchPriceResponse) GetPrice

func (x *WatchPriceResponse) GetPrice() uint32

func (*WatchPriceResponse) ProtoMessage

func (*WatchPriceResponse) ProtoMessage()

func (*WatchPriceResponse) ProtoReflect added in v0.8.4

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

func (*WatchPriceResponse) Reset

func (x *WatchPriceResponse) Reset()

func (*WatchPriceResponse) String

func (x *WatchPriceResponse) String() string

func (*WatchPriceResponse) Validate

func (m *WatchPriceResponse) Validate() error

Validate checks the field values on WatchPriceResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WatchPriceResponseValidationError

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

WatchPriceResponseValidationError is the validation error returned by WatchPriceResponse.Validate if the designated constraints aren't met.

func (WatchPriceResponseValidationError) Cause

Cause function returns cause value.

func (WatchPriceResponseValidationError) Error

Error satisfies the builtin error interface

func (WatchPriceResponseValidationError) ErrorName

ErrorName returns error name.

func (WatchPriceResponseValidationError) Field

Field function returns field value.

func (WatchPriceResponseValidationError) Key

Key function returns key value.

func (WatchPriceResponseValidationError) Reason

Reason function returns reason value.

type WatchProductRequest

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

Request message for rpc `WatchProduct`.

func (*WatchProductRequest) Descriptor deprecated

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

Deprecated: Use WatchProductRequest.ProtoReflect.Descriptor instead.

func (*WatchProductRequest) GetId

func (x *WatchProductRequest) GetId() uint32

func (*WatchProductRequest) GetName

func (x *WatchProductRequest) GetName() string

func (*WatchProductRequest) ProtoMessage

func (*WatchProductRequest) ProtoMessage()

func (*WatchProductRequest) ProtoReflect added in v0.8.4

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

func (*WatchProductRequest) Reset

func (x *WatchProductRequest) Reset()

func (*WatchProductRequest) String

func (x *WatchProductRequest) String() string

func (*WatchProductRequest) Validate

func (m *WatchProductRequest) Validate() error

Validate checks the field values on WatchProductRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WatchProductRequestValidationError

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

WatchProductRequestValidationError is the validation error returned by WatchProductRequest.Validate if the designated constraints aren't met.

func (WatchProductRequestValidationError) Cause

Cause function returns cause value.

func (WatchProductRequestValidationError) Error

Error satisfies the builtin error interface

func (WatchProductRequestValidationError) ErrorName

ErrorName returns error name.

func (WatchProductRequestValidationError) Field

Field function returns field value.

func (WatchProductRequestValidationError) Key

Key function returns key value.

func (WatchProductRequestValidationError) Reason

Reason function returns reason value.

type WatchProductResponse

type WatchProductResponse struct {
	Event WatchProductResponse_ProductEvent `protobuf:"varint,1,opt,name=event,proto3,enum=mruv.economy.WatchProductResponse_ProductEvent" json:"event,omitempty"`
	// contains filtered or unexported fields
}

Response message for rpc `WatchProduct`.

func (*WatchProductResponse) Descriptor deprecated

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

Deprecated: Use WatchProductResponse.ProtoReflect.Descriptor instead.

func (*WatchProductResponse) GetEvent

func (*WatchProductResponse) ProtoMessage

func (*WatchProductResponse) ProtoMessage()

func (*WatchProductResponse) ProtoReflect added in v0.8.4

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

func (*WatchProductResponse) Reset

func (x *WatchProductResponse) Reset()

func (*WatchProductResponse) String

func (x *WatchProductResponse) String() string

func (*WatchProductResponse) Validate

func (m *WatchProductResponse) Validate() error

Validate checks the field values on WatchProductResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WatchProductResponseValidationError

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

WatchProductResponseValidationError is the validation error returned by WatchProductResponse.Validate if the designated constraints aren't met.

func (WatchProductResponseValidationError) Cause

Cause function returns cause value.

func (WatchProductResponseValidationError) Error

Error satisfies the builtin error interface

func (WatchProductResponseValidationError) ErrorName

ErrorName returns error name.

func (WatchProductResponseValidationError) Field

Field function returns field value.

func (WatchProductResponseValidationError) Key

Key function returns key value.

func (WatchProductResponseValidationError) Reason

Reason function returns reason value.

type WatchProductResponse_ProductEvent

type WatchProductResponse_ProductEvent int32
const (
	WatchProductResponse_UNKNOWN              WatchProductResponse_ProductEvent = 0
	WatchProductResponse_PRICE_CHANGED        WatchProductResponse_ProductEvent = 1
	WatchProductResponse_PRODUCT_BOUGHT       WatchProductResponse_ProductEvent = 2
	WatchProductResponse_PRODUCT_INFO_UPDATED WatchProductResponse_ProductEvent = 3
	WatchProductResponse_PRODUCT_DELETED      WatchProductResponse_ProductEvent = 4
)

func (WatchProductResponse_ProductEvent) Descriptor added in v0.8.4

func (WatchProductResponse_ProductEvent) Enum added in v0.8.4

func (WatchProductResponse_ProductEvent) EnumDescriptor deprecated

func (WatchProductResponse_ProductEvent) EnumDescriptor() ([]byte, []int)

Deprecated: Use WatchProductResponse_ProductEvent.Descriptor instead.

func (WatchProductResponse_ProductEvent) Number added in v0.8.4

func (WatchProductResponse_ProductEvent) String

func (WatchProductResponse_ProductEvent) Type added in v0.8.4

Jump to

Keyboard shortcuts

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