backoffice

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_backoffice_customer_proto protoreflect.FileDescriptor

Functions

func RegisterCustomerServiceServer

func RegisterCustomerServiceServer(s *grpc.Server, 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

Jump to

Keyboard shortcuts

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