Documentation ¶
Index ¶
- func NewNewsServiceEndpoints() []*api.Endpoint
- func RegisterNewsServiceHandler(s server.Server, hdlr NewsServiceHandler, opts ...server.HandlerOption) error
- 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) GetUuid() string
- 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 News
- func (*News) Descriptor() ([]byte, []int)
- func (m *News) GetAuthor() string
- func (m *News) GetBody() string
- func (m *News) GetCode() string
- func (m *News) GetCreatedAt() string
- func (m *News) GetDescription() string
- func (m *News) GetImage() map[string]string
- func (m *News) GetIsActive() bool
- func (m *News) GetLinkUuid() string
- func (m *News) GetPublishedAt() string
- func (m *News) GetSortOrder() int64
- func (m *News) GetTitle() string
- func (m *News) GetUpdatedAt() string
- func (m *News) GetUuid() string
- func (*News) ProtoMessage()
- func (m *News) Reset()
- func (m *News) String() string
- func (m *News) Validate() error
- func (m *News) XXX_DiscardUnknown()
- func (m *News) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *News) XXX_Merge(src proto.Message)
- func (m *News) XXX_Size() int
- func (m *News) XXX_Unmarshal(b []byte) error
- type NewsService
- type NewsServiceHandler
- type NewsValidationError
- 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) GetIsActive() bool
- func (m *PaginateRequest_Filter) GetLinkUuid() 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() []*News
- func (m *PaginateResponse) GetLimit() int64
- func (m *PaginateResponse) GetSkip() int64
- func (m *PaginateResponse) GetTotal() int64
- 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() *News
- 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() *News
- 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 NewNewsServiceEndpoints ¶
func RegisterNewsServiceHandler ¶
func RegisterNewsServiceHandler(s server.Server, hdlr NewsServiceHandler, opts ...server.HandlerOption) error
Types ¶
type DeleteRequest ¶
type DeleteRequest struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetUuid ¶
func (m *DeleteRequest) GetUuid() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
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 ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteRequestValidationError ¶
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 ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶
type GetRequest struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetUuid ¶
func (m *GetRequest) GetUuid() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) Validate ¶
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 ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetRequestValidationError ¶
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 ¶
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type News ¶
type News struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty" bson:"code"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" bson:"description"` Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty" bson:"title"` Body string `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty" bson:"body"` Author string `protobuf:"bytes,6,opt,name=author,proto3" json:"author,omitempty" bson:"author"` IsActive bool `protobuf:"varint,7,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty" bson:"is_active"` SortOrder int64 `protobuf:"varint,8,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty" bson:"sort_order"` Image map[string]string `` /* 164-byte string literal not displayed */ LinkUuid string `protobuf:"bytes,10,opt,name=link_uuid,json=linkUuid,proto3" json:"link_uuid,omitempty" bson:"link_uuid"` 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"` PublishedAt string `protobuf:"bytes,1011,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty" bson:"published_at"` }
func (*News) Descriptor ¶
func (*News) GetCreatedAt ¶
func (*News) GetDescription ¶
func (*News) GetIsActive ¶
func (*News) GetLinkUuid ¶
func (*News) GetPublishedAt ¶
func (*News) GetSortOrder ¶
func (*News) GetUpdatedAt ¶
func (*News) ProtoMessage ¶
func (*News) ProtoMessage()
func (*News) Validate ¶
Validate checks the field values on News with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*News) XXX_DiscardUnknown ¶
func (m *News) XXX_DiscardUnknown()
func (*News) XXX_Unmarshal ¶
type NewsService ¶
type NewsService 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 NewNewsService ¶
func NewNewsService(name string, c client.Client) NewsService
type NewsServiceHandler ¶
type NewsServiceHandler 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 NewsValidationError ¶
type NewsValidationError struct {
// contains filtered or unexported fields
}
NewsValidationError is the validation error returned by News.Validate if the designated constraints aren't met.
func (NewsValidationError) Cause ¶
func (e NewsValidationError) Cause() error
Cause function returns cause value.
func (NewsValidationError) Error ¶
func (e NewsValidationError) Error() string
Error satisfies the builtin error interface
func (NewsValidationError) ErrorName ¶
func (e NewsValidationError) ErrorName() string
ErrorName returns error name.
func (NewsValidationError) Field ¶
func (e NewsValidationError) Field() string
Field function returns field value.
func (NewsValidationError) Key ¶
func (e NewsValidationError) Key() bool
Key function returns key value.
func (NewsValidationError) Reason ¶
func (e NewsValidationError) Reason() string
Reason function returns reason value.
type PaginateRequest ¶
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 ¶
func (*PaginateRequest) Descriptor() ([]byte, []int)
func (*PaginateRequest) GetFilter ¶
func (m *PaginateRequest) GetFilter() *PaginateRequest_Filter
func (*PaginateRequest) GetLimit ¶
func (m *PaginateRequest) GetLimit() int64
func (*PaginateRequest) GetSkip ¶
func (m *PaginateRequest) GetSkip() int64
func (*PaginateRequest) GetSort ¶
func (m *PaginateRequest) GetSort() string
func (*PaginateRequest) ProtoMessage ¶
func (*PaginateRequest) ProtoMessage()
func (*PaginateRequest) Reset ¶
func (m *PaginateRequest) Reset()
func (*PaginateRequest) String ¶
func (m *PaginateRequest) String() string
func (*PaginateRequest) Validate ¶
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 ¶
func (m *PaginateRequest) XXX_DiscardUnknown()
func (*PaginateRequest) XXX_Marshal ¶
func (m *PaginateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateRequest) XXX_Merge ¶
func (m *PaginateRequest) XXX_Merge(src proto.Message)
func (*PaginateRequest) XXX_Size ¶
func (m *PaginateRequest) XXX_Size() int
func (*PaginateRequest) XXX_Unmarshal ¶
func (m *PaginateRequest) XXX_Unmarshal(b []byte) error
type PaginateRequestValidationError ¶
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 ¶
func (e PaginateRequestValidationError) Cause() error
Cause function returns cause value.
func (PaginateRequestValidationError) Error ¶
func (e PaginateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateRequestValidationError) ErrorName ¶
func (e PaginateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateRequestValidationError) Field ¶
func (e PaginateRequestValidationError) Field() string
Field function returns field value.
func (PaginateRequestValidationError) Key ¶
func (e PaginateRequestValidationError) Key() bool
Key function returns key value.
func (PaginateRequestValidationError) Reason ¶
func (e PaginateRequestValidationError) Reason() string
Reason function returns reason value.
type PaginateRequest_Filter ¶
type PaginateRequest_Filter struct { IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` LinkUuid string `protobuf:"bytes,2,opt,name=link_uuid,json=linkUuid,proto3" json:"link_uuid,omitempty"` }
func (*PaginateRequest_Filter) Descriptor ¶
func (*PaginateRequest_Filter) Descriptor() ([]byte, []int)
func (*PaginateRequest_Filter) GetIsActive ¶
func (m *PaginateRequest_Filter) GetIsActive() bool
func (*PaginateRequest_Filter) GetLinkUuid ¶
func (m *PaginateRequest_Filter) GetLinkUuid() string
func (*PaginateRequest_Filter) ProtoMessage ¶
func (*PaginateRequest_Filter) ProtoMessage()
func (*PaginateRequest_Filter) Reset ¶
func (m *PaginateRequest_Filter) Reset()
func (*PaginateRequest_Filter) String ¶
func (m *PaginateRequest_Filter) String() string
func (*PaginateRequest_Filter) Validate ¶
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 ¶
func (m *PaginateRequest_Filter) XXX_DiscardUnknown()
func (*PaginateRequest_Filter) XXX_Marshal ¶
func (m *PaginateRequest_Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateRequest_Filter) XXX_Merge ¶
func (m *PaginateRequest_Filter) XXX_Merge(src proto.Message)
func (*PaginateRequest_Filter) XXX_Size ¶
func (m *PaginateRequest_Filter) XXX_Size() int
func (*PaginateRequest_Filter) XXX_Unmarshal ¶
func (m *PaginateRequest_Filter) XXX_Unmarshal(b []byte) error
type PaginateRequest_FilterValidationError ¶
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 ¶
func (e PaginateRequest_FilterValidationError) Cause() error
Cause function returns cause value.
func (PaginateRequest_FilterValidationError) Error ¶
func (e PaginateRequest_FilterValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateRequest_FilterValidationError) ErrorName ¶
func (e PaginateRequest_FilterValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateRequest_FilterValidationError) Field ¶
func (e PaginateRequest_FilterValidationError) Field() string
Field function returns field value.
func (PaginateRequest_FilterValidationError) Key ¶
func (e PaginateRequest_FilterValidationError) Key() bool
Key function returns key value.
func (PaginateRequest_FilterValidationError) Reason ¶
func (e PaginateRequest_FilterValidationError) Reason() string
Reason function returns reason value.
type PaginateResponse ¶
type PaginateResponse 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"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Data []*News `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` }
func (*PaginateResponse) Descriptor ¶
func (*PaginateResponse) Descriptor() ([]byte, []int)
func (*PaginateResponse) GetData ¶
func (m *PaginateResponse) GetData() []*News
func (*PaginateResponse) GetLimit ¶
func (m *PaginateResponse) GetLimit() int64
func (*PaginateResponse) GetSkip ¶
func (m *PaginateResponse) GetSkip() int64
func (*PaginateResponse) GetTotal ¶
func (m *PaginateResponse) GetTotal() int64
func (*PaginateResponse) ProtoMessage ¶
func (*PaginateResponse) ProtoMessage()
func (*PaginateResponse) Reset ¶
func (m *PaginateResponse) Reset()
func (*PaginateResponse) String ¶
func (m *PaginateResponse) String() string
func (*PaginateResponse) Validate ¶
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 ¶
func (m *PaginateResponse) XXX_DiscardUnknown()
func (*PaginateResponse) XXX_Marshal ¶
func (m *PaginateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PaginateResponse) XXX_Merge ¶
func (m *PaginateResponse) XXX_Merge(src proto.Message)
func (*PaginateResponse) XXX_Size ¶
func (m *PaginateResponse) XXX_Size() int
func (*PaginateResponse) XXX_Unmarshal ¶
func (m *PaginateResponse) XXX_Unmarshal(b []byte) error
type PaginateResponseValidationError ¶
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 ¶
func (e PaginateResponseValidationError) Cause() error
Cause function returns cause value.
func (PaginateResponseValidationError) Error ¶
func (e PaginateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PaginateResponseValidationError) ErrorName ¶
func (e PaginateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PaginateResponseValidationError) Field ¶
func (e PaginateResponseValidationError) Field() string
Field function returns field value.
func (PaginateResponseValidationError) Key ¶
func (e PaginateResponseValidationError) Key() bool
Key function returns key value.
func (PaginateResponseValidationError) Reason ¶
func (e PaginateResponseValidationError) Reason() string
Reason function returns reason value.
type Request ¶
type Request struct {
Data *News `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) Validate ¶
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 ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type RequestValidationError ¶
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 ¶
func (e RequestValidationError) Cause() error
Cause function returns cause value.
func (RequestValidationError) Error ¶
func (e RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RequestValidationError) ErrorName ¶
func (e RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RequestValidationError) Field ¶
func (e RequestValidationError) Field() string
Field function returns field value.
func (RequestValidationError) Key ¶
func (e RequestValidationError) Key() bool
Key function returns key value.
func (RequestValidationError) Reason ¶
func (e RequestValidationError) Reason() string
Reason function returns reason value.
type Response ¶
type Response struct {
Data *News `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) Validate ¶
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 ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ResponseValidationError ¶
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 ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.