detail

package
v2.21.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDetailServiceEndpoints

func NewDetailServiceEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

func (*Detail) GetData

func (m *Detail) GetData() []byte
func (m *Detail) GetLink() string

func (*Detail) GetType

func (m *Detail) GetType() string

func (*Detail) GetUuid

func (m *Detail) GetUuid() string

func (*Detail) ProtoMessage

func (*Detail) ProtoMessage()

func (*Detail) Reset

func (m *Detail) Reset()

func (*Detail) String

func (m *Detail) String() string

func (*Detail) Validate

func (m *Detail) Validate() error

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 (m *Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Detail) XXX_Merge

func (m *Detail) XXX_Merge(src proto.Message)

func (*Detail) XXX_Size

func (m *Detail) XXX_Size() int

func (*Detail) XXX_Unmarshal

func (m *Detail) XXX_Unmarshal(b []byte) error

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

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

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

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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