application

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "application.ApplicationService",
	HandlerType: (*ApplicationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _ApplicationService_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _ApplicationService_List_Handler,
		},
		{
			MethodName: "Application",
			Handler:    _ApplicationService_Application_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _ApplicationService_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "application/application.proto",
}

ApplicationService_ServiceDesc is the grpc.ServiceDesc for ApplicationService 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_application_application_proto protoreflect.FileDescriptor

Functions

func RegisterApplicationServiceServer

func RegisterApplicationServiceServer(s grpc.ServiceRegistrar, srv ApplicationServiceServer)

Types

type Application

type Application struct {
	Id               int32                         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TradingPointId   int32                         `protobuf:"varint,2,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	CreatedAt        *timestamppb.Timestamp        `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	OrderId          *int32                        `protobuf:"varint,5,opt,name=order_id,json=orderId,proto3,oneof" json:"order_id,omitempty"`
	Products         []*ProductApplication         `protobuf:"bytes,6,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetCreatedAt

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

func (*Application) GetId

func (x *Application) GetId() int32

func (*Application) GetOrderId added in v0.0.44

func (x *Application) GetOrderId() int32

func (*Application) GetProducts

func (x *Application) GetProducts() []*ProductApplication

func (*Application) GetTradingPointId

func (x *Application) GetTradingPointId() int32

func (*Application) GetTradingPointType

func (x *Application) GetTradingPointType() tradingpoint.TradingPointType

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type ApplicationRequest added in v0.0.40

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

func (*ApplicationRequest) Descriptor deprecated added in v0.0.40

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

Deprecated: Use ApplicationRequest.ProtoReflect.Descriptor instead.

func (*ApplicationRequest) GetId added in v0.0.40

func (x *ApplicationRequest) GetId() int32

func (*ApplicationRequest) ProtoMessage added in v0.0.40

func (*ApplicationRequest) ProtoMessage()

func (*ApplicationRequest) ProtoReflect added in v0.0.40

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

func (*ApplicationRequest) Reset added in v0.0.40

func (x *ApplicationRequest) Reset()

func (*ApplicationRequest) String added in v0.0.40

func (x *ApplicationRequest) String() string

type ApplicationResponse added in v0.0.40

type ApplicationResponse struct {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplicationResponse) Descriptor deprecated added in v0.0.40

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

Deprecated: Use ApplicationResponse.ProtoReflect.Descriptor instead.

func (*ApplicationResponse) GetApplication added in v0.0.40

func (x *ApplicationResponse) GetApplication() *Application

func (*ApplicationResponse) ProtoMessage added in v0.0.40

func (*ApplicationResponse) ProtoMessage()

func (*ApplicationResponse) ProtoReflect added in v0.0.40

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

func (*ApplicationResponse) Reset added in v0.0.40

func (x *ApplicationResponse) Reset()

func (*ApplicationResponse) String added in v0.0.40

func (x *ApplicationResponse) String() string

type ApplicationServiceClient

type ApplicationServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	Application(ctx context.Context, in *ApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
}

ApplicationServiceClient is the client API for ApplicationService 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 ApplicationServiceServer

type ApplicationServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	List(context.Context, *ListRequest) (*ListResponse, error)
	Application(context.Context, *ApplicationRequest) (*ApplicationResponse, error)
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// contains filtered or unexported methods
}

ApplicationServiceServer is the server API for ApplicationService service. All implementations must embed UnimplementedApplicationServiceServer for forward compatibility

type CreateRequest

type CreateRequest struct {
	TradingPointId   int32                         `protobuf:"varint,1,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	Products         []*ProductApplication         `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetProducts

func (x *CreateRequest) GetProducts() []*ProductApplication

func (*CreateRequest) GetTradingPointId

func (x *CreateRequest) GetTradingPointId() int32

func (*CreateRequest) GetTradingPointType

func (x *CreateRequest) GetTradingPointType() tradingpoint.TradingPointType

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

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

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() int32

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type ListRequest added in v0.0.40

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

func (*ListRequest) Descriptor deprecated added in v0.0.40

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage added in v0.0.40

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect added in v0.0.40

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

func (*ListRequest) Reset added in v0.0.40

func (x *ListRequest) Reset()

func (*ListRequest) String added in v0.0.40

func (x *ListRequest) String() string

type ListResponse added in v0.0.40

type ListResponse struct {
	Applications []*Application `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated added in v0.0.40

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetApplications added in v0.0.40

func (x *ListResponse) GetApplications() []*Application

func (*ListResponse) ProtoMessage added in v0.0.40

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect added in v0.0.40

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

func (*ListResponse) Reset added in v0.0.40

func (x *ListResponse) Reset()

func (*ListResponse) String added in v0.0.40

func (x *ListResponse) String() string

type ProductApplication

type ProductApplication struct {
	Quantity  int32 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
	ProductId int32 `protobuf:"varint,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductApplication) Descriptor deprecated

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

Deprecated: Use ProductApplication.ProtoReflect.Descriptor instead.

func (*ProductApplication) GetProductId added in v0.0.40

func (x *ProductApplication) GetProductId() int32

func (*ProductApplication) GetQuantity

func (x *ProductApplication) GetQuantity() int32

func (*ProductApplication) ProtoMessage

func (*ProductApplication) ProtoMessage()

func (*ProductApplication) ProtoReflect

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

func (*ProductApplication) Reset

func (x *ProductApplication) Reset()

func (*ProductApplication) String

func (x *ProductApplication) String() string

type UnimplementedApplicationServiceServer

type UnimplementedApplicationServiceServer struct {
}

UnimplementedApplicationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedApplicationServiceServer) Application added in v0.0.40

func (UnimplementedApplicationServiceServer) Create

func (UnimplementedApplicationServiceServer) List added in v0.0.40

func (UnimplementedApplicationServiceServer) Update added in v0.0.40

type UnsafeApplicationServiceServer

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

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

type UpdateRequest added in v0.0.40

type UpdateRequest struct {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated added in v0.0.40

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetApplication added in v0.0.40

func (x *UpdateRequest) GetApplication() *Application

func (*UpdateRequest) ProtoMessage added in v0.0.40

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect added in v0.0.40

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

func (*UpdateRequest) Reset added in v0.0.40

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String added in v0.0.40

func (x *UpdateRequest) String() string

type UpdateResponse added in v0.0.40

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

func (*UpdateResponse) Descriptor deprecated added in v0.0.40

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) GetId added in v0.0.40

func (x *UpdateResponse) GetId() int32

func (*UpdateResponse) ProtoMessage added in v0.0.40

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect added in v0.0.40

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

func (*UpdateResponse) Reset added in v0.0.40

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String added in v0.0.40

func (x *UpdateResponse) String() string

Jump to

Keyboard shortcuts

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