backoffice

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "backoffice.CustomerService",
	HandlerType: (*CustomerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FindById",
			Handler:    _CustomerService_FindById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/backoffice/customer.proto",
}

CustomerService_ServiceDesc is the grpc.ServiceDesc for CustomerService 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_proto_backoffice_customer_proto protoreflect.FileDescriptor

Functions

func RegisterCustomerServiceServer

func RegisterCustomerServiceServer(s grpc.ServiceRegistrar, srv CustomerServiceServer)

Types

type Customer

type Customer struct {
	Id            string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ContactPerson string `protobuf:"bytes,3,opt,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"`
	// contains filtered or unexported fields
}

func (*Customer) Descriptor deprecated

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

Deprecated: Use Customer.ProtoReflect.Descriptor instead.

func (*Customer) GetContactPerson

func (x *Customer) GetContactPerson() string

func (*Customer) GetId

func (x *Customer) GetId() string

func (*Customer) GetName

func (x *Customer) GetName() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) ProtoReflect

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

func (*Customer) Reset

func (x *Customer) Reset()

func (*Customer) String

func (x *Customer) String() string

type CustomerRequest

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

func (*CustomerRequest) Descriptor deprecated

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

Deprecated: Use CustomerRequest.ProtoReflect.Descriptor instead.

func (*CustomerRequest) GetId

func (x *CustomerRequest) GetId() string

func (*CustomerRequest) ProtoMessage

func (*CustomerRequest) ProtoMessage()

func (*CustomerRequest) ProtoReflect

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

func (*CustomerRequest) Reset

func (x *CustomerRequest) Reset()

func (*CustomerRequest) String

func (x *CustomerRequest) String() string

type CustomerServiceClient

type CustomerServiceClient interface {
	FindById(ctx context.Context, in *FindByIdRequest, opts ...grpc.CallOption) (*Customer, error)
}

CustomerServiceClient is the client API for CustomerService 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 CustomerServiceServer

type CustomerServiceServer interface {
	FindById(context.Context, *FindByIdRequest) (*Customer, error)
	// contains filtered or unexported methods
}

CustomerServiceServer is the server API for CustomerService service. All implementations must embed UnimplementedCustomerServiceServer for forward compatibility

type FindByIdRequest

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

func (*FindByIdRequest) Descriptor deprecated

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

Deprecated: Use FindByIdRequest.ProtoReflect.Descriptor instead.

func (*FindByIdRequest) GetId

func (x *FindByIdRequest) GetId() string

func (*FindByIdRequest) ProtoMessage

func (*FindByIdRequest) ProtoMessage()

func (*FindByIdRequest) ProtoReflect

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

func (*FindByIdRequest) Reset

func (x *FindByIdRequest) Reset()

func (*FindByIdRequest) String

func (x *FindByIdRequest) String() string

type UnimplementedCustomerServiceServer

type UnimplementedCustomerServiceServer struct {
}

UnimplementedCustomerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCustomerServiceServer) FindById

type UnsafeCustomerServiceServer added in v0.0.6

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

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

Jump to

Keyboard shortcuts

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