Documentation ¶
Index ¶
- func NewCustomerServiceEndpoints() []*api.Endpoint
- func RegisterCustomerServiceHandler(s server.Server, hdlr CustomerServiceHandler, opts ...server.HandlerOption) error
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)
- func (m *Customer) GetCreatedAt() string
- func (m *Customer) GetDeletedAt() string
- func (m *Customer) GetEmail() string
- func (m *Customer) GetPhone() string
- func (m *Customer) GetSortOrder() int64
- func (m *Customer) GetUpdatedAt() string
- func (m *Customer) GetUuid() string
- func (*Customer) ProtoMessage()
- func (m *Customer) Reset()
- func (m *Customer) String() string
- func (m *Customer) Validate() error
- func (m *Customer) XXX_DiscardUnknown()
- func (m *Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Customer) XXX_Merge(src proto.Message)
- func (m *Customer) XXX_Size() int
- func (m *Customer) XXX_Unmarshal(b []byte) error
- type CustomerService
- type CustomerServiceHandler
- type CustomerValidationError
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetUuid() string
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetFilter() *GetRequest_Filter
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) Validate() error
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetRequestValidationError
- type GetRequest_Filter
- func (*GetRequest_Filter) Descriptor() ([]byte, []int)
- func (m *GetRequest_Filter) GetEmail() string
- func (m *GetRequest_Filter) GetPhone() string
- func (m *GetRequest_Filter) GetSortOrder() string
- func (m *GetRequest_Filter) GetUuid() string
- func (*GetRequest_Filter) ProtoMessage()
- func (m *GetRequest_Filter) Reset()
- func (m *GetRequest_Filter) String() string
- func (m *GetRequest_Filter) Validate() error
- func (m *GetRequest_Filter) XXX_DiscardUnknown()
- func (m *GetRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest_Filter) XXX_Merge(src proto.Message)
- func (m *GetRequest_Filter) XXX_Size() int
- func (m *GetRequest_Filter) XXX_Unmarshal(b []byte) error
- type GetRequest_FilterValidationError
- func (e GetRequest_FilterValidationError) Cause() error
- func (e GetRequest_FilterValidationError) Error() string
- func (e GetRequest_FilterValidationError) ErrorName() string
- func (e GetRequest_FilterValidationError) Field() string
- func (e GetRequest_FilterValidationError) Key() bool
- func (e GetRequest_FilterValidationError) Reason() string
- type PaginateRequest
- func (*PaginateRequest) Descriptor() ([]byte, []int)
- func (m *PaginateRequest) GetFilter() *PaginateRequest_Filter
- func (m *PaginateRequest) GetLimit() int64
- func (m *PaginateRequest) GetSkip() int64
- func (m *PaginateRequest) GetSort() string
- func (*PaginateRequest) ProtoMessage()
- func (m *PaginateRequest) Reset()
- func (m *PaginateRequest) String() string
- func (m *PaginateRequest) Validate() error
- func (m *PaginateRequest) XXX_DiscardUnknown()
- func (m *PaginateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateRequest) XXX_Merge(src proto.Message)
- func (m *PaginateRequest) XXX_Size() int
- func (m *PaginateRequest) XXX_Unmarshal(b []byte) error
- type PaginateRequestValidationError
- func (e PaginateRequestValidationError) Cause() error
- func (e PaginateRequestValidationError) Error() string
- func (e PaginateRequestValidationError) ErrorName() string
- func (e PaginateRequestValidationError) Field() string
- func (e PaginateRequestValidationError) Key() bool
- func (e PaginateRequestValidationError) Reason() string
- type PaginateRequest_Filter
- func (*PaginateRequest_Filter) Descriptor() ([]byte, []int)
- func (m *PaginateRequest_Filter) GetEmail() string
- func (m *PaginateRequest_Filter) GetPhone() string
- func (m *PaginateRequest_Filter) GetSortOrder() string
- func (m *PaginateRequest_Filter) GetUuid() string
- func (*PaginateRequest_Filter) ProtoMessage()
- func (m *PaginateRequest_Filter) Reset()
- func (m *PaginateRequest_Filter) String() string
- func (m *PaginateRequest_Filter) Validate() error
- func (m *PaginateRequest_Filter) XXX_DiscardUnknown()
- func (m *PaginateRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateRequest_Filter) XXX_Merge(src proto.Message)
- func (m *PaginateRequest_Filter) XXX_Size() int
- func (m *PaginateRequest_Filter) XXX_Unmarshal(b []byte) error
- type PaginateRequest_FilterValidationError
- func (e PaginateRequest_FilterValidationError) Cause() error
- func (e PaginateRequest_FilterValidationError) Error() string
- func (e PaginateRequest_FilterValidationError) ErrorName() string
- func (e PaginateRequest_FilterValidationError) Field() string
- func (e PaginateRequest_FilterValidationError) Key() bool
- func (e PaginateRequest_FilterValidationError) Reason() string
- type PaginateResponse
- func (*PaginateResponse) Descriptor() ([]byte, []int)
- func (m *PaginateResponse) GetData() []*Customer
- func (*PaginateResponse) ProtoMessage()
- func (m *PaginateResponse) Reset()
- func (m *PaginateResponse) String() string
- func (m *PaginateResponse) Validate() error
- func (m *PaginateResponse) XXX_DiscardUnknown()
- func (m *PaginateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PaginateResponse) XXX_Merge(src proto.Message)
- func (m *PaginateResponse) XXX_Size() int
- func (m *PaginateResponse) XXX_Unmarshal(b []byte) error
- type PaginateResponseValidationError
- func (e PaginateResponseValidationError) Cause() error
- func (e PaginateResponseValidationError) Error() string
- func (e PaginateResponseValidationError) ErrorName() string
- func (e PaginateResponseValidationError) Field() string
- func (e PaginateResponseValidationError) Key() bool
- func (e PaginateResponseValidationError) Reason() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetData() *Customer
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) Validate() error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type RequestValidationError
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() *Customer
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) Validate() error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ResponseValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomerServiceEndpoints ¶ added in v0.2.0
func RegisterCustomerServiceHandler ¶ added in v0.2.0
func RegisterCustomerServiceHandler(s server.Server, hdlr CustomerServiceHandler, opts ...server.HandlerOption) error
Types ¶
type Customer ¶
type Customer struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty" bson:"email"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty" bson:"phone"` SortOrder int64 `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty" bson:"sort_order"` CreatedAt string `protobuf:"bytes,1001,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` UpdatedAt string `protobuf:"bytes,1002,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` DeletedAt string `protobuf:"bytes,1003,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty" bson:"deleted_at"` }
func (*Customer) Descriptor ¶
func (*Customer) GetCreatedAt ¶
func (*Customer) GetDeletedAt ¶
func (*Customer) GetSortOrder ¶
func (*Customer) GetUpdatedAt ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) Validate ¶
Validate checks the field values on Customer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Customer) XXX_DiscardUnknown ¶
func (m *Customer) XXX_DiscardUnknown()
func (*Customer) XXX_Marshal ¶
func (*Customer) XXX_Unmarshal ¶
type CustomerService ¶ added in v0.2.0
type CustomerService interface { Create(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Update(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*empty.Empty, error) Paginate(ctx context.Context, in *PaginateRequest, opts ...client.CallOption) (*PaginateResponse, error) Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*Response, error) }
func NewCustomerService ¶ added in v0.2.0
func NewCustomerService(name string, c client.Client) CustomerService
type CustomerServiceHandler ¶ added in v0.2.0
type CustomerServiceHandler interface { Create(context.Context, *Request, *Response) error Update(context.Context, *Request, *Response) error Delete(context.Context, *DeleteRequest, *empty.Empty) error Paginate(context.Context, *PaginateRequest, *PaginateResponse) error Get(context.Context, *GetRequest, *Response) error }
type CustomerValidationError ¶
type CustomerValidationError struct {
// contains filtered or unexported fields
}
CustomerValidationError is the validation error returned by Customer.Validate if the designated constraints aren't met.
func (CustomerValidationError) Cause ¶
func (e CustomerValidationError) Cause() error
Cause function returns cause value.
func (CustomerValidationError) Error ¶
func (e CustomerValidationError) Error() string
Error satisfies the builtin error interface
func (CustomerValidationError) ErrorName ¶
func (e CustomerValidationError) ErrorName() string
ErrorName returns error name.
func (CustomerValidationError) Field ¶
func (e CustomerValidationError) Field() string
Field function returns field value.
func (CustomerValidationError) Key ¶
func (e CustomerValidationError) Key() bool
Key function returns key value.
func (CustomerValidationError) Reason ¶
func (e CustomerValidationError) Reason() string
Reason function returns reason value.
type DeleteRequest ¶ added in v0.2.0
type DeleteRequest struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}
func (*DeleteRequest) Descriptor ¶ added in v0.2.0
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetUuid ¶ added in v0.2.0
func (m *DeleteRequest) GetUuid() string
func (*DeleteRequest) ProtoMessage ¶ added in v0.2.0
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶ added in v0.2.0
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶ added in v0.2.0
func (m *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶ added in v0.2.0
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*DeleteRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶ added in v0.2.0
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶ added in v0.2.0
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶ added in v0.2.0
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteRequestValidationError ¶ added in v0.2.0
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶ added in v0.2.0
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶ added in v0.2.0
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶ added in v0.2.0
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶ added in v0.2.0
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶ added in v0.2.0
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶ added in v0.2.0
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶ added in v0.2.0
type GetRequest struct {
Filter *GetRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (*GetRequest) Descriptor ¶ added in v0.2.0
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetFilter ¶ added in v0.2.0
func (m *GetRequest) GetFilter() *GetRequest_Filter
func (*GetRequest) ProtoMessage ¶ added in v0.2.0
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶ added in v0.2.0
func (m *GetRequest) Reset()
func (*GetRequest) String ¶ added in v0.2.0
func (m *GetRequest) String() string
func (*GetRequest) Validate ¶ added in v0.2.0
func (m *GetRequest) Validate() error
Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶ added in v0.2.0
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶ added in v0.2.0
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶ added in v0.2.0
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetRequestValidationError ¶ added in v0.2.0
type GetRequestValidationError struct {
// contains filtered or unexported fields
}
GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.
func (GetRequestValidationError) Cause ¶ added in v0.2.0
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶ added in v0.2.0
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶ added in v0.2.0
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶ added in v0.2.0
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶ added in v0.2.0
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶ added in v0.2.0
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type GetRequest_Filter ¶ added in v0.2.0
type GetRequest_Filter struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` SortOrder string `protobuf:"bytes,4,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"` }
func (*GetRequest_Filter) Descriptor ¶ added in v0.2.0
func (*GetRequest_Filter) Descriptor() ([]byte, []int)
func (*GetRequest_Filter) GetEmail ¶ added in v0.2.0
func (m *GetRequest_Filter) GetEmail() string
func (*GetRequest_Filter) GetPhone ¶ added in v0.2.0
func (m *GetRequest_Filter) GetPhone() string
func (*GetRequest_Filter) GetSortOrder ¶ added in v0.2.0
func (m *GetRequest_Filter) GetSortOrder() string
func (*GetRequest_Filter) GetUuid ¶ added in v0.2.0
func (m *GetRequest_Filter) GetUuid() string
func (*GetRequest_Filter) ProtoMessage ¶ added in v0.2.0
func (*GetRequest_Filter) ProtoMessage()
func (*GetRequest_Filter) Reset ¶ added in v0.2.0
func (m *GetRequest_Filter) Reset()
func (*GetRequest_Filter) String ¶ added in v0.2.0
func (m *GetRequest_Filter) String() string
func (*GetRequest_Filter) Validate ¶ added in v0.2.0
func (m *GetRequest_Filter) Validate() error
Validate checks the field values on GetRequest_Filter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetRequest_Filter) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *GetRequest_Filter) XXX_DiscardUnknown()
func (*GetRequest_Filter) XXX_Marshal ¶ added in v0.2.0
func (m *GetRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest_Filter) XXX_Merge ¶ added in v0.2.0
func (m *GetRequest_Filter) XXX_Merge(src proto.Message)
func (*GetRequest_Filter) XXX_Size ¶ added in v0.2.0
func (m *GetRequest_Filter) XXX_Size() int
func (*GetRequest_Filter) XXX_Unmarshal ¶ added in v0.2.0
func (m *GetRequest_Filter) XXX_Unmarshal(b []byte) error
type GetRequest_FilterValidationError ¶ added in v0.2.0
type GetRequest_FilterValidationError struct {
// contains filtered or unexported fields
}
GetRequest_FilterValidationError is the validation error returned by GetRequest_Filter.Validate if the designated constraints aren't met.
func (GetRequest_FilterValidationError) Cause ¶ added in v0.2.0
func (e GetRequest_FilterValidationError) Cause() error
Cause function returns cause value.
func (GetRequest_FilterValidationError) Error ¶ added in v0.2.0
func (e GetRequest_FilterValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequest_FilterValidationError) ErrorName ¶ added in v0.2.0
func (e GetRequest_FilterValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequest_FilterValidationError) Field ¶ added in v0.2.0
func (e GetRequest_FilterValidationError) Field() string
Field function returns field value.
func (GetRequest_FilterValidationError) Key ¶ added in v0.2.0
func (e GetRequest_FilterValidationError) Key() bool
Key function returns key value.
func (GetRequest_FilterValidationError) Reason ¶ added in v0.2.0
func (e GetRequest_FilterValidationError) Reason() string
Reason function returns reason value.
type PaginateRequest ¶ added in v0.2.0
type PaginateRequest struct { Skip int64 `protobuf:"varint,1,opt,name=skip,proto3" json:"skip,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Sort string `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort,omitempty"` Filter *PaginateRequest_Filter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` }
func (*PaginateRequest) Descriptor ¶ added in v0.2.0
func (*PaginateRequest) Descriptor() ([]byte, []int)
func (*PaginateRequest) GetFilter ¶ added in v0.2.0
func (m *PaginateRequest) GetFilter() *PaginateRequest_Filter
func (*PaginateRequest) GetLimit ¶ added in v0.2.0
func (m *PaginateRequest) GetLimit() int64
func (*PaginateRequest) GetSkip ¶ added in v0.2.0
func (m *PaginateRequest) GetSkip() int64
func (*PaginateRequest) GetSort ¶ added in v0.2.0
func (m *PaginateRequest) GetSort() string
func (*PaginateRequest) ProtoMessage ¶ added in v0.2.0
func (*PaginateRequest) ProtoMessage()
func (*PaginateRequest) Reset ¶ added in v0.2.0
func (m *PaginateRequest) Reset()
func (*PaginateRequest) String ¶ added in v0.2.0
func (m *PaginateRequest) String() string
func (*PaginateRequest) Validate ¶ added in v0.2.0
func (m *PaginateRequest) Validate() error
Validate checks the field values on PaginateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PaginateRequest) XXX_DiscardUnknown()
func (*PaginateRequest) XXX_Marshal ¶ added in v0.2.0
func (m *PaginateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateRequest) XXX_Merge ¶ added in v0.2.0
func (m *PaginateRequest) XXX_Merge(src proto.Message)
func (*PaginateRequest) XXX_Size ¶ added in v0.2.0
func (m *PaginateRequest) XXX_Size() int
func (*PaginateRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *PaginateRequest) XXX_Unmarshal(b []byte) error
type PaginateRequestValidationError ¶ added in v0.2.0
type PaginateRequestValidationError struct {
// contains filtered or unexported fields
}
PaginateRequestValidationError is the validation error returned by PaginateRequest.Validate if the designated constraints aren't met.
func (PaginateRequestValidationError) Cause ¶ added in v0.2.0
func (e PaginateRequestValidationError) Cause() error
Cause function returns cause value.
func (PaginateRequestValidationError) Error ¶ added in v0.2.0
func (e PaginateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateRequestValidationError) ErrorName ¶ added in v0.2.0
func (e PaginateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateRequestValidationError) Field ¶ added in v0.2.0
func (e PaginateRequestValidationError) Field() string
Field function returns field value.
func (PaginateRequestValidationError) Key ¶ added in v0.2.0
func (e PaginateRequestValidationError) Key() bool
Key function returns key value.
func (PaginateRequestValidationError) Reason ¶ added in v0.2.0
func (e PaginateRequestValidationError) Reason() string
Reason function returns reason value.
type PaginateRequest_Filter ¶ added in v0.2.0
type PaginateRequest_Filter struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` SortOrder string `protobuf:"bytes,4,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"` }
func (*PaginateRequest_Filter) Descriptor ¶ added in v0.2.0
func (*PaginateRequest_Filter) Descriptor() ([]byte, []int)
func (*PaginateRequest_Filter) GetEmail ¶ added in v0.2.0
func (m *PaginateRequest_Filter) GetEmail() string
func (*PaginateRequest_Filter) GetPhone ¶ added in v0.2.0
func (m *PaginateRequest_Filter) GetPhone() string
func (*PaginateRequest_Filter) GetSortOrder ¶ added in v0.2.0
func (m *PaginateRequest_Filter) GetSortOrder() string
func (*PaginateRequest_Filter) GetUuid ¶ added in v0.2.0
func (m *PaginateRequest_Filter) GetUuid() string
func (*PaginateRequest_Filter) ProtoMessage ¶ added in v0.2.0
func (*PaginateRequest_Filter) ProtoMessage()
func (*PaginateRequest_Filter) Reset ¶ added in v0.2.0
func (m *PaginateRequest_Filter) Reset()
func (*PaginateRequest_Filter) String ¶ added in v0.2.0
func (m *PaginateRequest_Filter) String() string
func (*PaginateRequest_Filter) Validate ¶ added in v0.2.0
func (m *PaginateRequest_Filter) Validate() error
Validate checks the field values on PaginateRequest_Filter with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateRequest_Filter) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PaginateRequest_Filter) XXX_DiscardUnknown()
func (*PaginateRequest_Filter) XXX_Marshal ¶ added in v0.2.0
func (m *PaginateRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateRequest_Filter) XXX_Merge ¶ added in v0.2.0
func (m *PaginateRequest_Filter) XXX_Merge(src proto.Message)
func (*PaginateRequest_Filter) XXX_Size ¶ added in v0.2.0
func (m *PaginateRequest_Filter) XXX_Size() int
func (*PaginateRequest_Filter) XXX_Unmarshal ¶ added in v0.2.0
func (m *PaginateRequest_Filter) XXX_Unmarshal(b []byte) error
type PaginateRequest_FilterValidationError ¶ added in v0.2.0
type PaginateRequest_FilterValidationError struct {
// contains filtered or unexported fields
}
PaginateRequest_FilterValidationError is the validation error returned by PaginateRequest_Filter.Validate if the designated constraints aren't met.
func (PaginateRequest_FilterValidationError) Cause ¶ added in v0.2.0
func (e PaginateRequest_FilterValidationError) Cause() error
Cause function returns cause value.
func (PaginateRequest_FilterValidationError) Error ¶ added in v0.2.0
func (e PaginateRequest_FilterValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateRequest_FilterValidationError) ErrorName ¶ added in v0.2.0
func (e PaginateRequest_FilterValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateRequest_FilterValidationError) Field ¶ added in v0.2.0
func (e PaginateRequest_FilterValidationError) Field() string
Field function returns field value.
func (PaginateRequest_FilterValidationError) Key ¶ added in v0.2.0
func (e PaginateRequest_FilterValidationError) Key() bool
Key function returns key value.
func (PaginateRequest_FilterValidationError) Reason ¶ added in v0.2.0
func (e PaginateRequest_FilterValidationError) Reason() string
Reason function returns reason value.
type PaginateResponse ¶ added in v0.2.0
type PaginateResponse struct {
Data []*Customer `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
}
func (*PaginateResponse) Descriptor ¶ added in v0.2.0
func (*PaginateResponse) Descriptor() ([]byte, []int)
func (*PaginateResponse) GetData ¶ added in v0.2.0
func (m *PaginateResponse) GetData() []*Customer
func (*PaginateResponse) ProtoMessage ¶ added in v0.2.0
func (*PaginateResponse) ProtoMessage()
func (*PaginateResponse) Reset ¶ added in v0.2.0
func (m *PaginateResponse) Reset()
func (*PaginateResponse) String ¶ added in v0.2.0
func (m *PaginateResponse) String() string
func (*PaginateResponse) Validate ¶ added in v0.2.0
func (m *PaginateResponse) Validate() error
Validate checks the field values on PaginateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PaginateResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PaginateResponse) XXX_DiscardUnknown()
func (*PaginateResponse) XXX_Marshal ¶ added in v0.2.0
func (m *PaginateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateResponse) XXX_Merge ¶ added in v0.2.0
func (m *PaginateResponse) XXX_Merge(src proto.Message)
func (*PaginateResponse) XXX_Size ¶ added in v0.2.0
func (m *PaginateResponse) XXX_Size() int
func (*PaginateResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *PaginateResponse) XXX_Unmarshal(b []byte) error
type PaginateResponseValidationError ¶ added in v0.2.0
type PaginateResponseValidationError struct {
// contains filtered or unexported fields
}
PaginateResponseValidationError is the validation error returned by PaginateResponse.Validate if the designated constraints aren't met.
func (PaginateResponseValidationError) Cause ¶ added in v0.2.0
func (e PaginateResponseValidationError) Cause() error
Cause function returns cause value.
func (PaginateResponseValidationError) Error ¶ added in v0.2.0
func (e PaginateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateResponseValidationError) ErrorName ¶ added in v0.2.0
func (e PaginateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateResponseValidationError) Field ¶ added in v0.2.0
func (e PaginateResponseValidationError) Field() string
Field function returns field value.
func (PaginateResponseValidationError) Key ¶ added in v0.2.0
func (e PaginateResponseValidationError) Key() bool
Key function returns key value.
func (PaginateResponseValidationError) Reason ¶ added in v0.2.0
func (e PaginateResponseValidationError) Reason() string
Reason function returns reason value.
type Request ¶ added in v0.2.0
type Request struct {
Data *Customer `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Request) Descriptor ¶ added in v0.2.0
func (*Request) ProtoMessage ¶ added in v0.2.0
func (*Request) ProtoMessage()
func (*Request) Validate ¶ added in v0.2.0
Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Request) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶ added in v0.2.0
func (*Request) XXX_Unmarshal ¶ added in v0.2.0
type RequestValidationError ¶ added in v0.2.0
type RequestValidationError struct {
// contains filtered or unexported fields
}
RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.
func (RequestValidationError) Cause ¶ added in v0.2.0
func (e RequestValidationError) Cause() error
Cause function returns cause value.
func (RequestValidationError) Error ¶ added in v0.2.0
func (e RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RequestValidationError) ErrorName ¶ added in v0.2.0
func (e RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RequestValidationError) Field ¶ added in v0.2.0
func (e RequestValidationError) Field() string
Field function returns field value.
func (RequestValidationError) Key ¶ added in v0.2.0
func (e RequestValidationError) Key() bool
Key function returns key value.
func (RequestValidationError) Reason ¶ added in v0.2.0
func (e RequestValidationError) Reason() string
Reason function returns reason value.
type Response ¶ added in v0.2.0
type Response struct {
Data *Customer `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Response) Descriptor ¶ added in v0.2.0
func (*Response) ProtoMessage ¶ added in v0.2.0
func (*Response) ProtoMessage()
func (*Response) Validate ¶ added in v0.2.0
Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Response) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶ added in v0.2.0
func (*Response) XXX_Unmarshal ¶ added in v0.2.0
type ResponseValidationError ¶ added in v0.2.0
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶ added in v0.2.0
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶ added in v0.2.0
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶ added in v0.2.0
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶ added in v0.2.0
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶ added in v0.2.0
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶ added in v0.2.0
func (e ResponseValidationError) Reason() string
Reason function returns reason value.