Documentation ¶
Index ¶
- Variables
- func RegisterCustomerServiceServer(s *grpc.Server, srv CustomerServiceServer)
- type CreateUpdateCustomerRequest
- func (*CreateUpdateCustomerRequest) Descriptor() ([]byte, []int)
- func (m *CreateUpdateCustomerRequest) GetCustomer() *gateway.Customer
- func (m *CreateUpdateCustomerRequest) GetPlatform() *gateway.Platform
- func (m *CreateUpdateCustomerRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateUpdateCustomerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateUpdateCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateUpdateCustomerRequest) ProtoMessage()
- func (m *CreateUpdateCustomerRequest) Reset()
- func (m *CreateUpdateCustomerRequest) Size() (n int)
- func (m *CreateUpdateCustomerRequest) String() string
- func (m *CreateUpdateCustomerRequest) Unmarshal(dAtA []byte) error
- func (this *CreateUpdateCustomerRequest) Validate() error
- func (m *CreateUpdateCustomerRequest) XXX_DiscardUnknown()
- func (m *CreateUpdateCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateUpdateCustomerRequest) XXX_Merge(src proto.Message)
- func (*CreateUpdateCustomerRequest) XXX_MessageName() string
- func (m *CreateUpdateCustomerRequest) XXX_Size() int
- func (m *CreateUpdateCustomerRequest) XXX_Unmarshal(b []byte) error
- type CustomerServiceClient
- type CustomerServiceServer
- type ListCustomerRequest
- func (*ListCustomerRequest) Descriptor() ([]byte, []int)
- func (m *ListCustomerRequest) GetLimit() uint32
- func (m *ListCustomerRequest) GetPage() uint32
- func (m *ListCustomerRequest) GetPlatform() *gateway.Platform
- func (m *ListCustomerRequest) Marshal() (dAtA []byte, err error)
- func (m *ListCustomerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListCustomerRequest) ProtoMessage()
- func (m *ListCustomerRequest) Reset()
- func (m *ListCustomerRequest) Size() (n int)
- func (m *ListCustomerRequest) String() string
- func (m *ListCustomerRequest) Unmarshal(dAtA []byte) error
- func (this *ListCustomerRequest) Validate() error
- func (m *ListCustomerRequest) XXX_DiscardUnknown()
- func (m *ListCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCustomerRequest) XXX_Merge(src proto.Message)
- func (*ListCustomerRequest) XXX_MessageName() string
- func (m *ListCustomerRequest) XXX_Size() int
- func (m *ListCustomerRequest) XXX_Unmarshal(b []byte) error
- type ListCustomerResponse
- func (*ListCustomerResponse) Descriptor() ([]byte, []int)
- func (m *ListCustomerResponse) GetItems() []*gateway.Customer
- func (m *ListCustomerResponse) GetLimit() uint32
- func (m *ListCustomerResponse) GetMaxPage() uint32
- func (m *ListCustomerResponse) GetPage() uint32
- func (m *ListCustomerResponse) GetTotalCount() uint32
- func (m *ListCustomerResponse) Marshal() (dAtA []byte, err error)
- func (m *ListCustomerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListCustomerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListCustomerResponse) ProtoMessage()
- func (m *ListCustomerResponse) Reset()
- func (m *ListCustomerResponse) Size() (n int)
- func (m *ListCustomerResponse) String() string
- func (m *ListCustomerResponse) Unmarshal(dAtA []byte) error
- func (this *ListCustomerResponse) Validate() error
- func (m *ListCustomerResponse) XXX_DiscardUnknown()
- func (m *ListCustomerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCustomerResponse) XXX_Merge(src proto.Message)
- func (*ListCustomerResponse) XXX_MessageName() string
- func (m *ListCustomerResponse) XXX_Size() int
- func (m *ListCustomerResponse) XXX_Unmarshal(b []byte) error
- type OneCustomerRequest
- func (*OneCustomerRequest) Descriptor() ([]byte, []int)
- func (m *OneCustomerRequest) GetId() string
- func (m *OneCustomerRequest) GetPlatform() *gateway.Platform
- func (m *OneCustomerRequest) Marshal() (dAtA []byte, err error)
- func (m *OneCustomerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *OneCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OneCustomerRequest) ProtoMessage()
- func (m *OneCustomerRequest) Reset()
- func (m *OneCustomerRequest) Size() (n int)
- func (m *OneCustomerRequest) String() string
- func (m *OneCustomerRequest) Unmarshal(dAtA []byte) error
- func (this *OneCustomerRequest) Validate() error
- func (m *OneCustomerRequest) XXX_DiscardUnknown()
- func (m *OneCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OneCustomerRequest) XXX_Merge(src proto.Message)
- func (*OneCustomerRequest) XXX_MessageName() string
- func (m *OneCustomerRequest) XXX_Size() int
- func (m *OneCustomerRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedCustomerServiceServer
- func (*UnimplementedCustomerServiceServer) Create(ctx context.Context, req *CreateUpdateCustomerRequest) (*gateway.Customer, error)
- func (*UnimplementedCustomerServiceServer) Delete(ctx context.Context, req *OneCustomerRequest) (*types.Empty, error)
- func (*UnimplementedCustomerServiceServer) Get(ctx context.Context, req *OneCustomerRequest) (*gateway.Customer, error)
- func (*UnimplementedCustomerServiceServer) List(ctx context.Context, req *ListCustomerRequest) (*ListCustomerResponse, error)
- func (*UnimplementedCustomerServiceServer) Update(ctx context.Context, req *CreateUpdateCustomerRequest) (*gateway.Customer, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterCustomerServiceServer ¶
func RegisterCustomerServiceServer(s *grpc.Server, srv CustomerServiceServer)
Types ¶
type CreateUpdateCustomerRequest ¶
type CreateUpdateCustomerRequest struct { Platform *gateway.Platform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` Customer *gateway.Customer `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUpdateCustomerRequest) Descriptor ¶
func (*CreateUpdateCustomerRequest) Descriptor() ([]byte, []int)
func (*CreateUpdateCustomerRequest) GetCustomer ¶
func (m *CreateUpdateCustomerRequest) GetCustomer() *gateway.Customer
func (*CreateUpdateCustomerRequest) GetPlatform ¶
func (m *CreateUpdateCustomerRequest) GetPlatform() *gateway.Platform
func (*CreateUpdateCustomerRequest) Marshal ¶
func (m *CreateUpdateCustomerRequest) Marshal() (dAtA []byte, err error)
func (*CreateUpdateCustomerRequest) MarshalTo ¶
func (m *CreateUpdateCustomerRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateUpdateCustomerRequest) MarshalToSizedBuffer ¶
func (m *CreateUpdateCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateUpdateCustomerRequest) ProtoMessage ¶
func (*CreateUpdateCustomerRequest) ProtoMessage()
func (*CreateUpdateCustomerRequest) Reset ¶
func (m *CreateUpdateCustomerRequest) Reset()
func (*CreateUpdateCustomerRequest) Size ¶
func (m *CreateUpdateCustomerRequest) Size() (n int)
func (*CreateUpdateCustomerRequest) String ¶
func (m *CreateUpdateCustomerRequest) String() string
func (*CreateUpdateCustomerRequest) Unmarshal ¶
func (m *CreateUpdateCustomerRequest) Unmarshal(dAtA []byte) error
func (*CreateUpdateCustomerRequest) Validate ¶
func (this *CreateUpdateCustomerRequest) Validate() error
func (*CreateUpdateCustomerRequest) XXX_DiscardUnknown ¶
func (m *CreateUpdateCustomerRequest) XXX_DiscardUnknown()
func (*CreateUpdateCustomerRequest) XXX_Marshal ¶
func (m *CreateUpdateCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUpdateCustomerRequest) XXX_Merge ¶
func (m *CreateUpdateCustomerRequest) XXX_Merge(src proto.Message)
func (*CreateUpdateCustomerRequest) XXX_MessageName ¶
func (*CreateUpdateCustomerRequest) XXX_MessageName() string
func (*CreateUpdateCustomerRequest) XXX_Size ¶
func (m *CreateUpdateCustomerRequest) XXX_Size() int
func (*CreateUpdateCustomerRequest) XXX_Unmarshal ¶
func (m *CreateUpdateCustomerRequest) XXX_Unmarshal(b []byte) error
type CustomerServiceClient ¶
type CustomerServiceClient interface { Get(ctx context.Context, in *OneCustomerRequest, opts ...grpc.CallOption) (*gateway.Customer, error) Create(ctx context.Context, in *CreateUpdateCustomerRequest, opts ...grpc.CallOption) (*gateway.Customer, error) Update(ctx context.Context, in *CreateUpdateCustomerRequest, opts ...grpc.CallOption) (*gateway.Customer, error) Delete(ctx context.Context, in *OneCustomerRequest, opts ...grpc.CallOption) (*types.Empty, error) List(ctx context.Context, in *ListCustomerRequest, opts ...grpc.CallOption) (*ListCustomerResponse, error) }
CustomerServiceClient is the client API for CustomerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCustomerServiceClient ¶
func NewCustomerServiceClient(cc *grpc.ClientConn) CustomerServiceClient
type CustomerServiceServer ¶
type CustomerServiceServer interface { Get(context.Context, *OneCustomerRequest) (*gateway.Customer, error) Create(context.Context, *CreateUpdateCustomerRequest) (*gateway.Customer, error) Update(context.Context, *CreateUpdateCustomerRequest) (*gateway.Customer, error) Delete(context.Context, *OneCustomerRequest) (*types.Empty, error) List(context.Context, *ListCustomerRequest) (*ListCustomerResponse, error) }
CustomerServiceServer is the server API for CustomerService service.
type ListCustomerRequest ¶
type ListCustomerRequest struct { Platform *gateway.Platform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` Page uint32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCustomerRequest) Descriptor ¶
func (*ListCustomerRequest) Descriptor() ([]byte, []int)
func (*ListCustomerRequest) GetLimit ¶
func (m *ListCustomerRequest) GetLimit() uint32
func (*ListCustomerRequest) GetPage ¶
func (m *ListCustomerRequest) GetPage() uint32
func (*ListCustomerRequest) GetPlatform ¶
func (m *ListCustomerRequest) GetPlatform() *gateway.Platform
func (*ListCustomerRequest) Marshal ¶
func (m *ListCustomerRequest) Marshal() (dAtA []byte, err error)
func (*ListCustomerRequest) MarshalTo ¶
func (m *ListCustomerRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListCustomerRequest) MarshalToSizedBuffer ¶
func (m *ListCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListCustomerRequest) ProtoMessage ¶
func (*ListCustomerRequest) ProtoMessage()
func (*ListCustomerRequest) Reset ¶
func (m *ListCustomerRequest) Reset()
func (*ListCustomerRequest) Size ¶
func (m *ListCustomerRequest) Size() (n int)
func (*ListCustomerRequest) String ¶
func (m *ListCustomerRequest) String() string
func (*ListCustomerRequest) Unmarshal ¶
func (m *ListCustomerRequest) Unmarshal(dAtA []byte) error
func (*ListCustomerRequest) Validate ¶
func (this *ListCustomerRequest) Validate() error
func (*ListCustomerRequest) XXX_DiscardUnknown ¶
func (m *ListCustomerRequest) XXX_DiscardUnknown()
func (*ListCustomerRequest) XXX_Marshal ¶
func (m *ListCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCustomerRequest) XXX_Merge ¶
func (m *ListCustomerRequest) XXX_Merge(src proto.Message)
func (*ListCustomerRequest) XXX_MessageName ¶
func (*ListCustomerRequest) XXX_MessageName() string
func (*ListCustomerRequest) XXX_Size ¶
func (m *ListCustomerRequest) XXX_Size() int
func (*ListCustomerRequest) XXX_Unmarshal ¶
func (m *ListCustomerRequest) XXX_Unmarshal(b []byte) error
type ListCustomerResponse ¶
type ListCustomerResponse struct { Items []*gateway.Customer `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` MaxPage uint32 `protobuf:"varint,2,opt,name=max_page,json=maxPage,proto3" json:"max_page,omitempty"` TotalCount uint32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` Page uint32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListCustomerResponse) Descriptor ¶
func (*ListCustomerResponse) Descriptor() ([]byte, []int)
func (*ListCustomerResponse) GetItems ¶
func (m *ListCustomerResponse) GetItems() []*gateway.Customer
func (*ListCustomerResponse) GetLimit ¶
func (m *ListCustomerResponse) GetLimit() uint32
func (*ListCustomerResponse) GetMaxPage ¶
func (m *ListCustomerResponse) GetMaxPage() uint32
func (*ListCustomerResponse) GetPage ¶
func (m *ListCustomerResponse) GetPage() uint32
func (*ListCustomerResponse) GetTotalCount ¶
func (m *ListCustomerResponse) GetTotalCount() uint32
func (*ListCustomerResponse) Marshal ¶
func (m *ListCustomerResponse) Marshal() (dAtA []byte, err error)
func (*ListCustomerResponse) MarshalTo ¶
func (m *ListCustomerResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListCustomerResponse) MarshalToSizedBuffer ¶
func (m *ListCustomerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListCustomerResponse) ProtoMessage ¶
func (*ListCustomerResponse) ProtoMessage()
func (*ListCustomerResponse) Reset ¶
func (m *ListCustomerResponse) Reset()
func (*ListCustomerResponse) Size ¶
func (m *ListCustomerResponse) Size() (n int)
func (*ListCustomerResponse) String ¶
func (m *ListCustomerResponse) String() string
func (*ListCustomerResponse) Unmarshal ¶
func (m *ListCustomerResponse) Unmarshal(dAtA []byte) error
func (*ListCustomerResponse) Validate ¶
func (this *ListCustomerResponse) Validate() error
func (*ListCustomerResponse) XXX_DiscardUnknown ¶
func (m *ListCustomerResponse) XXX_DiscardUnknown()
func (*ListCustomerResponse) XXX_Marshal ¶
func (m *ListCustomerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCustomerResponse) XXX_Merge ¶
func (m *ListCustomerResponse) XXX_Merge(src proto.Message)
func (*ListCustomerResponse) XXX_MessageName ¶
func (*ListCustomerResponse) XXX_MessageName() string
func (*ListCustomerResponse) XXX_Size ¶
func (m *ListCustomerResponse) XXX_Size() int
func (*ListCustomerResponse) XXX_Unmarshal ¶
func (m *ListCustomerResponse) XXX_Unmarshal(b []byte) error
type OneCustomerRequest ¶
type OneCustomerRequest struct { Platform *gateway.Platform `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OneCustomerRequest) Descriptor ¶
func (*OneCustomerRequest) Descriptor() ([]byte, []int)
func (*OneCustomerRequest) GetId ¶
func (m *OneCustomerRequest) GetId() string
func (*OneCustomerRequest) GetPlatform ¶
func (m *OneCustomerRequest) GetPlatform() *gateway.Platform
func (*OneCustomerRequest) Marshal ¶
func (m *OneCustomerRequest) Marshal() (dAtA []byte, err error)
func (*OneCustomerRequest) MarshalTo ¶
func (m *OneCustomerRequest) MarshalTo(dAtA []byte) (int, error)
func (*OneCustomerRequest) MarshalToSizedBuffer ¶
func (m *OneCustomerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OneCustomerRequest) ProtoMessage ¶
func (*OneCustomerRequest) ProtoMessage()
func (*OneCustomerRequest) Reset ¶
func (m *OneCustomerRequest) Reset()
func (*OneCustomerRequest) Size ¶
func (m *OneCustomerRequest) Size() (n int)
func (*OneCustomerRequest) String ¶
func (m *OneCustomerRequest) String() string
func (*OneCustomerRequest) Unmarshal ¶
func (m *OneCustomerRequest) Unmarshal(dAtA []byte) error
func (*OneCustomerRequest) Validate ¶
func (this *OneCustomerRequest) Validate() error
func (*OneCustomerRequest) XXX_DiscardUnknown ¶
func (m *OneCustomerRequest) XXX_DiscardUnknown()
func (*OneCustomerRequest) XXX_Marshal ¶
func (m *OneCustomerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OneCustomerRequest) XXX_Merge ¶
func (m *OneCustomerRequest) XXX_Merge(src proto.Message)
func (*OneCustomerRequest) XXX_MessageName ¶
func (*OneCustomerRequest) XXX_MessageName() string
func (*OneCustomerRequest) XXX_Size ¶
func (m *OneCustomerRequest) XXX_Size() int
func (*OneCustomerRequest) XXX_Unmarshal ¶
func (m *OneCustomerRequest) XXX_Unmarshal(b []byte) error
type UnimplementedCustomerServiceServer ¶
type UnimplementedCustomerServiceServer struct { }
UnimplementedCustomerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCustomerServiceServer) Create ¶
func (*UnimplementedCustomerServiceServer) Create(ctx context.Context, req *CreateUpdateCustomerRequest) (*gateway.Customer, error)
func (*UnimplementedCustomerServiceServer) Delete ¶
func (*UnimplementedCustomerServiceServer) Delete(ctx context.Context, req *OneCustomerRequest) (*types.Empty, error)
func (*UnimplementedCustomerServiceServer) Get ¶
func (*UnimplementedCustomerServiceServer) Get(ctx context.Context, req *OneCustomerRequest) (*gateway.Customer, error)
func (*UnimplementedCustomerServiceServer) List ¶
func (*UnimplementedCustomerServiceServer) List(ctx context.Context, req *ListCustomerRequest) (*ListCustomerResponse, error)
func (*UnimplementedCustomerServiceServer) Update ¶
func (*UnimplementedCustomerServiceServer) Update(ctx context.Context, req *CreateUpdateCustomerRequest) (*gateway.Customer, error)
Click to show internal directories.
Click to hide internal directories.