Documentation ¶
Index ¶
- func NewDetailServiceEndpoints() []*api.Endpoint
- func RegisterDetailServiceHandler(s server.Server, hdlr DetailServiceHandler, opts ...server.HandlerOption) error
- type Detail
- func (*Detail) Descriptor() ([]byte, []int)
- func (m *Detail) GetData() []byte
- func (m *Detail) GetLink() string
- func (m *Detail) GetType() string
- func (m *Detail) GetUuid() string
- func (*Detail) ProtoMessage()
- func (m *Detail) Reset()
- func (m *Detail) String() string
- func (m *Detail) Validate() error
- func (m *Detail) XXX_DiscardUnknown()
- func (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Detail) XXX_Merge(src proto.Message)
- func (m *Detail) XXX_Size() int
- func (m *Detail) XXX_Unmarshal(b []byte) error
- type DetailService
- type DetailServiceHandler
- type DetailValidationError
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetLinkUuid() 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 GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)
- func (m *GetResponse) GetData() *Detail
- func (*GetResponse) ProtoMessage()
- func (m *GetResponse) Reset()
- func (m *GetResponse) String() string
- func (m *GetResponse) Validate() error
- func (m *GetResponse) XXX_DiscardUnknown()
- func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetResponse) XXX_Merge(src proto.Message)
- func (m *GetResponse) XXX_Size() int
- func (m *GetResponse) XXX_Unmarshal(b []byte) error
- type GetResponseValidationError
- func (e GetResponseValidationError) Cause() error
- func (e GetResponseValidationError) Error() string
- func (e GetResponseValidationError) ErrorName() string
- func (e GetResponseValidationError) Field() string
- func (e GetResponseValidationError) Key() bool
- func (e GetResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDetailServiceHandler ¶
func RegisterDetailServiceHandler(s server.Server, hdlr DetailServiceHandler, opts ...server.HandlerOption) error
Types ¶
type Detail ¶
type Detail struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty" bson:"type"` Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty" bson:"link"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty" bson:"data"` }
func (*Detail) Descriptor ¶
func (*Detail) ProtoMessage ¶
func (*Detail) ProtoMessage()
func (*Detail) Validate ¶
Validate checks the field values on Detail with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Detail) XXX_DiscardUnknown ¶
func (m *Detail) XXX_DiscardUnknown()
func (*Detail) XXX_Marshal ¶
func (*Detail) XXX_Unmarshal ¶
type DetailService ¶
type DetailService interface {
Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetResponse, error)
}
func NewDetailService ¶
func NewDetailService(name string, c client.Client) DetailService
type DetailServiceHandler ¶
type DetailServiceHandler interface {
Get(context.Context, *GetRequest, *GetResponse) error
}
type DetailValidationError ¶
type DetailValidationError struct {
// contains filtered or unexported fields
}
DetailValidationError is the validation error returned by Detail.Validate if the designated constraints aren't met.
func (DetailValidationError) Cause ¶
func (e DetailValidationError) Cause() error
Cause function returns cause value.
func (DetailValidationError) Error ¶
func (e DetailValidationError) Error() string
Error satisfies the builtin error interface
func (DetailValidationError) ErrorName ¶
func (e DetailValidationError) ErrorName() string
ErrorName returns error name.
func (DetailValidationError) Field ¶
func (e DetailValidationError) Field() string
Field function returns field value.
func (DetailValidationError) Key ¶
func (e DetailValidationError) Key() bool
Key function returns key value.
func (DetailValidationError) Reason ¶
func (e DetailValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶
type GetRequest struct {
LinkUuid string `protobuf:"bytes,1,opt,name=link_uuid,json=linkUuid,proto3" json:"link_uuid,omitempty"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetLinkUuid ¶
func (m *GetRequest) GetLinkUuid() 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 GetResponse ¶
type GetResponse struct {
Data *Detail `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*GetResponse) Descriptor ¶
func (*GetResponse) Descriptor() ([]byte, []int)
func (*GetResponse) GetData ¶
func (m *GetResponse) GetData() *Detail
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) Reset ¶
func (m *GetResponse) Reset()
func (*GetResponse) String ¶
func (m *GetResponse) String() string
func (*GetResponse) Validate ¶
func (m *GetResponse) Validate() error
Validate checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetResponse) XXX_DiscardUnknown ¶
func (m *GetResponse) XXX_DiscardUnknown()
func (*GetResponse) XXX_Marshal ¶
func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetResponse) XXX_Merge ¶
func (m *GetResponse) XXX_Merge(src proto.Message)
func (*GetResponse) XXX_Size ¶
func (m *GetResponse) XXX_Size() int
func (*GetResponse) XXX_Unmarshal ¶
func (m *GetResponse) XXX_Unmarshal(b []byte) error
type GetResponseValidationError ¶
type GetResponseValidationError struct {
// contains filtered or unexported fields
}
GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.
func (GetResponseValidationError) Cause ¶
func (e GetResponseValidationError) Cause() error
Cause function returns cause value.
func (GetResponseValidationError) Error ¶
func (e GetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetResponseValidationError) ErrorName ¶
func (e GetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetResponseValidationError) Field ¶
func (e GetResponseValidationError) Field() string
Field function returns field value.
func (GetResponseValidationError) Key ¶
func (e GetResponseValidationError) Key() bool
Key function returns key value.
func (GetResponseValidationError) Reason ¶
func (e GetResponseValidationError) Reason() string
Reason function returns reason value.