Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Content
- func (*Content) Descriptor() ([]byte, []int)
- func (m *Content) GetCurator() []byte
- func (m *Content) GetId() uint64
- func (m *Content) GetMetadata() string
- func (m *Content) Marshal() (dAtA []byte, err error)
- func (m *Content) MarshalTo(dAtA []byte) (int, error)
- func (m *Content) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Content) ProtoMessage()
- func (m *Content) Reset()
- func (m *Content) Size() (n int)
- func (m *Content) String() string
- func (m *Content) Unmarshal(dAtA []byte) error
- func (m *Content) Validate() error
- func (m *Content) XXX_DiscardUnknown()
- func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Content) XXX_Merge(src proto.Message)
- func (m *Content) XXX_Size() int
- func (m *Content) XXX_Unmarshal(b []byte) error
- type EventCreate
- func (*EventCreate) Descriptor() ([]byte, []int)
- func (m *EventCreate) GetId() uint64
- func (m *EventCreate) Marshal() (dAtA []byte, err error)
- func (m *EventCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreate) ProtoMessage()
- func (m *EventCreate) Reset()
- func (m *EventCreate) Size() (n int)
- func (m *EventCreate) String() string
- func (m *EventCreate) Unmarshal(dAtA []byte) error
- func (m *EventCreate) XXX_DiscardUnknown()
- func (m *EventCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreate) XXX_Merge(src proto.Message)
- func (m *EventCreate) XXX_Size() int
- func (m *EventCreate) XXX_Unmarshal(b []byte) error
- type EventDelete
- func (*EventDelete) Descriptor() ([]byte, []int)
- func (m *EventDelete) GetId() uint64
- func (m *EventDelete) Marshal() (dAtA []byte, err error)
- func (m *EventDelete) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDelete) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDelete) ProtoMessage()
- func (m *EventDelete) Reset()
- func (m *EventDelete) Size() (n int)
- func (m *EventDelete) String() string
- func (m *EventDelete) Unmarshal(dAtA []byte) error
- func (m *EventDelete) XXX_DiscardUnknown()
- func (m *EventDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDelete) XXX_Merge(src proto.Message)
- func (m *EventDelete) XXX_Size() int
- func (m *EventDelete) XXX_Unmarshal(b []byte) error
- type EventUpdateCurator
- func (*EventUpdateCurator) Descriptor() ([]byte, []int)
- func (m *EventUpdateCurator) GetId() uint64
- func (m *EventUpdateCurator) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateCurator) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateCurator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateCurator) ProtoMessage()
- func (m *EventUpdateCurator) Reset()
- func (m *EventUpdateCurator) Size() (n int)
- func (m *EventUpdateCurator) String() string
- func (m *EventUpdateCurator) Unmarshal(dAtA []byte) error
- func (m *EventUpdateCurator) XXX_DiscardUnknown()
- func (m *EventUpdateCurator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateCurator) XXX_Merge(src proto.Message)
- func (m *EventUpdateCurator) XXX_Size() int
- func (m *EventUpdateCurator) XXX_Unmarshal(b []byte) error
- type EventUpdateMetadata
- func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
- func (m *EventUpdateMetadata) GetId() uint64
- func (m *EventUpdateMetadata) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateMetadata) ProtoMessage()
- func (m *EventUpdateMetadata) Reset()
- func (m *EventUpdateMetadata) Size() (n int)
- func (m *EventUpdateMetadata) String() string
- func (m *EventUpdateMetadata) Unmarshal(dAtA []byte) error
- func (m *EventUpdateMetadata) XXX_DiscardUnknown()
- func (m *EventUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateMetadata) XXX_Merge(src proto.Message)
- func (m *EventUpdateMetadata) XXX_Size() int
- func (m *EventUpdateMetadata) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreate
- func (*MsgCreate) Descriptor() ([]byte, []int)
- func (m *MsgCreate) GetCurator() string
- func (m *MsgCreate) GetMetadata() string
- func (m MsgCreate) GetSigners() []sdk.AccAddress
- func (m *MsgCreate) Marshal() (dAtA []byte, err error)
- func (m *MsgCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreate) ProtoMessage()
- func (m *MsgCreate) Reset()
- func (m MsgCreate) Route() string
- func (m *MsgCreate) Size() (n int)
- func (m *MsgCreate) String() string
- func (m MsgCreate) Type() string
- func (m *MsgCreate) Unmarshal(dAtA []byte) error
- func (m MsgCreate) ValidateBasic() error
- func (m *MsgCreate) XXX_DiscardUnknown()
- func (m *MsgCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreate) XXX_Merge(src proto.Message)
- func (m *MsgCreate) XXX_Size() int
- func (m *MsgCreate) XXX_Unmarshal(b []byte) error
- type MsgCreateResponse
- func (*MsgCreateResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateResponse) GetId() uint64
- func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResponse) ProtoMessage()
- func (m *MsgCreateResponse) Reset()
- func (m *MsgCreateResponse) Size() (n int)
- func (m *MsgCreateResponse) String() string
- func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResponse) XXX_DiscardUnknown()
- func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateResponse) XXX_Size() int
- func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
- type MsgDelete
- func (*MsgDelete) Descriptor() ([]byte, []int)
- func (m *MsgDelete) GetCurator() string
- func (m *MsgDelete) GetId() uint64
- func (m MsgDelete) GetSigners() []sdk.AccAddress
- func (m *MsgDelete) Marshal() (dAtA []byte, err error)
- func (m *MsgDelete) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelete) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelete) ProtoMessage()
- func (m *MsgDelete) Reset()
- func (m MsgDelete) Route() string
- func (m *MsgDelete) Size() (n int)
- func (m *MsgDelete) String() string
- func (m MsgDelete) Type() string
- func (m *MsgDelete) Unmarshal(dAtA []byte) error
- func (m MsgDelete) ValidateBasic() error
- func (m *MsgDelete) XXX_DiscardUnknown()
- func (m *MsgDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelete) XXX_Merge(src proto.Message)
- func (m *MsgDelete) XXX_Size() int
- func (m *MsgDelete) XXX_Unmarshal(b []byte) error
- type MsgDeleteResponse
- func (*MsgDeleteResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteResponse) GetId() uint64
- func (m *MsgDeleteResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteResponse) ProtoMessage()
- func (m *MsgDeleteResponse) Reset()
- func (m *MsgDeleteResponse) Size() (n int)
- func (m *MsgDeleteResponse) String() string
- func (m *MsgDeleteResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteResponse) XXX_Size() int
- func (m *MsgDeleteResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateCurator
- func (*MsgUpdateCurator) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCurator) GetCurator() string
- func (m *MsgUpdateCurator) GetId() uint64
- func (m *MsgUpdateCurator) GetNewCurator() string
- func (m MsgUpdateCurator) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateCurator) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCurator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCurator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCurator) ProtoMessage()
- func (m *MsgUpdateCurator) Reset()
- func (m MsgUpdateCurator) Route() string
- func (m *MsgUpdateCurator) Size() (n int)
- func (m *MsgUpdateCurator) String() string
- func (m MsgUpdateCurator) Type() string
- func (m *MsgUpdateCurator) Unmarshal(dAtA []byte) error
- func (m MsgUpdateCurator) ValidateBasic() error
- func (m *MsgUpdateCurator) XXX_DiscardUnknown()
- func (m *MsgUpdateCurator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCurator) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCurator) XXX_Size() int
- func (m *MsgUpdateCurator) XXX_Unmarshal(b []byte) error
- type MsgUpdateCuratorResponse
- func (*MsgUpdateCuratorResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateCuratorResponse) GetId() uint64
- func (m *MsgUpdateCuratorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateCuratorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateCuratorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateCuratorResponse) ProtoMessage()
- func (m *MsgUpdateCuratorResponse) Reset()
- func (m *MsgUpdateCuratorResponse) Size() (n int)
- func (m *MsgUpdateCuratorResponse) String() string
- func (m *MsgUpdateCuratorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateCuratorResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateCuratorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateCuratorResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateCuratorResponse) XXX_Size() int
- func (m *MsgUpdateCuratorResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMetadata
- func (*MsgUpdateMetadata) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMetadata) GetCurator() string
- func (m *MsgUpdateMetadata) GetId() uint64
- func (m *MsgUpdateMetadata) GetNewMetadata() string
- func (m MsgUpdateMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMetadata) ProtoMessage()
- func (m *MsgUpdateMetadata) Reset()
- func (m MsgUpdateMetadata) Route() string
- func (m *MsgUpdateMetadata) Size() (n int)
- func (m *MsgUpdateMetadata) String() string
- func (m MsgUpdateMetadata) Type() string
- func (m *MsgUpdateMetadata) Unmarshal(dAtA []byte) error
- func (m MsgUpdateMetadata) ValidateBasic() error
- func (m *MsgUpdateMetadata) XXX_DiscardUnknown()
- func (m *MsgUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMetadata) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMetadata) XXX_Size() int
- func (m *MsgUpdateMetadata) XXX_Unmarshal(b []byte) error
- type MsgUpdateMetadataResponse
- func (*MsgUpdateMetadataResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMetadataResponse) GetId() uint64
- func (m *MsgUpdateMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMetadataResponse) ProtoMessage()
- func (m *MsgUpdateMetadataResponse) Reset()
- func (m *MsgUpdateMetadataResponse) Size() (n int)
- func (m *MsgUpdateMetadataResponse) String() string
- func (m *MsgUpdateMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMetadataResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMetadataResponse) XXX_Size() int
- func (m *MsgUpdateMetadataResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryContentRequest
- func (*QueryContentRequest) Descriptor() ([]byte, []int)
- func (m *QueryContentRequest) GetId() uint64
- func (m *QueryContentRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContentRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentRequest) ProtoMessage()
- func (m *QueryContentRequest) Reset()
- func (m *QueryContentRequest) Size() (n int)
- func (m *QueryContentRequest) String() string
- func (m *QueryContentRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContentRequest) XXX_DiscardUnknown()
- func (m *QueryContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentRequest) XXX_Merge(src proto.Message)
- func (m *QueryContentRequest) XXX_Size() int
- func (m *QueryContentRequest) XXX_Unmarshal(b []byte) error
- type QueryContentResponse
- func (*QueryContentResponse) Descriptor() ([]byte, []int)
- func (m *QueryContentResponse) GetCurator() string
- func (m *QueryContentResponse) GetId() uint64
- func (m *QueryContentResponse) GetMetadata() string
- func (m *QueryContentResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentResponse) ProtoMessage()
- func (m *QueryContentResponse) Reset()
- func (m *QueryContentResponse) Size() (n int)
- func (m *QueryContentResponse) String() string
- func (m *QueryContentResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContentResponse) XXX_DiscardUnknown()
- func (m *QueryContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentResponse) XXX_Merge(src proto.Message)
- func (m *QueryContentResponse) XXX_Size() int
- func (m *QueryContentResponse) XXX_Unmarshal(b []byte) error
- type QueryContentsByCuratorRequest
- func (*QueryContentsByCuratorRequest) Descriptor() ([]byte, []int)
- func (m *QueryContentsByCuratorRequest) GetCurator() string
- func (m *QueryContentsByCuratorRequest) GetPagination() *query.PageRequest
- func (m *QueryContentsByCuratorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContentsByCuratorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentsByCuratorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentsByCuratorRequest) ProtoMessage()
- func (m *QueryContentsByCuratorRequest) Reset()
- func (m *QueryContentsByCuratorRequest) Size() (n int)
- func (m *QueryContentsByCuratorRequest) String() string
- func (m *QueryContentsByCuratorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContentsByCuratorRequest) XXX_DiscardUnknown()
- func (m *QueryContentsByCuratorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentsByCuratorRequest) XXX_Merge(src proto.Message)
- func (m *QueryContentsByCuratorRequest) XXX_Size() int
- func (m *QueryContentsByCuratorRequest) XXX_Unmarshal(b []byte) error
- type QueryContentsByCuratorResponse
- func (*QueryContentsByCuratorResponse) Descriptor() ([]byte, []int)
- func (m *QueryContentsByCuratorResponse) GetContents() []*QueryContentsByCuratorResponse_Content
- func (m *QueryContentsByCuratorResponse) GetCurator() string
- func (m *QueryContentsByCuratorResponse) GetPagination() *query.PageResponse
- func (m *QueryContentsByCuratorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContentsByCuratorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentsByCuratorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentsByCuratorResponse) ProtoMessage()
- func (m *QueryContentsByCuratorResponse) Reset()
- func (m *QueryContentsByCuratorResponse) Size() (n int)
- func (m *QueryContentsByCuratorResponse) String() string
- func (m *QueryContentsByCuratorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContentsByCuratorResponse) XXX_DiscardUnknown()
- func (m *QueryContentsByCuratorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentsByCuratorResponse) XXX_Merge(src proto.Message)
- func (m *QueryContentsByCuratorResponse) XXX_Size() int
- func (m *QueryContentsByCuratorResponse) XXX_Unmarshal(b []byte) error
- type QueryContentsByCuratorResponse_Content
- func (*QueryContentsByCuratorResponse_Content) Descriptor() ([]byte, []int)
- func (m *QueryContentsByCuratorResponse_Content) GetId() uint64
- func (m *QueryContentsByCuratorResponse_Content) GetMetadata() string
- func (m *QueryContentsByCuratorResponse_Content) Marshal() (dAtA []byte, err error)
- func (m *QueryContentsByCuratorResponse_Content) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentsByCuratorResponse_Content) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentsByCuratorResponse_Content) ProtoMessage()
- func (m *QueryContentsByCuratorResponse_Content) Reset()
- func (m *QueryContentsByCuratorResponse_Content) Size() (n int)
- func (m *QueryContentsByCuratorResponse_Content) String() string
- func (m *QueryContentsByCuratorResponse_Content) Unmarshal(dAtA []byte) error
- func (m *QueryContentsByCuratorResponse_Content) XXX_DiscardUnknown()
- func (m *QueryContentsByCuratorResponse_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentsByCuratorResponse_Content) XXX_Merge(src proto.Message)
- func (m *QueryContentsByCuratorResponse_Content) XXX_Size() int
- func (m *QueryContentsByCuratorResponse_Content) XXX_Unmarshal(b []byte) error
- type QueryContentsRequest
- func (*QueryContentsRequest) Descriptor() ([]byte, []int)
- func (m *QueryContentsRequest) GetPagination() *query.PageRequest
- func (m *QueryContentsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContentsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentsRequest) ProtoMessage()
- func (m *QueryContentsRequest) Reset()
- func (m *QueryContentsRequest) Size() (n int)
- func (m *QueryContentsRequest) String() string
- func (m *QueryContentsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContentsRequest) XXX_DiscardUnknown()
- func (m *QueryContentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentsRequest) XXX_Merge(src proto.Message)
- func (m *QueryContentsRequest) XXX_Size() int
- func (m *QueryContentsRequest) XXX_Unmarshal(b []byte) error
- type QueryContentsResponse
- func (*QueryContentsResponse) Descriptor() ([]byte, []int)
- func (m *QueryContentsResponse) GetContents() []*QueryContentsResponse_Content
- func (m *QueryContentsResponse) GetPagination() *query.PageResponse
- func (m *QueryContentsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContentsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentsResponse) ProtoMessage()
- func (m *QueryContentsResponse) Reset()
- func (m *QueryContentsResponse) Size() (n int)
- func (m *QueryContentsResponse) String() string
- func (m *QueryContentsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContentsResponse) XXX_DiscardUnknown()
- func (m *QueryContentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentsResponse) XXX_Merge(src proto.Message)
- func (m *QueryContentsResponse) XXX_Size() int
- func (m *QueryContentsResponse) XXX_Unmarshal(b []byte) error
- type QueryContentsResponse_Content
- func (*QueryContentsResponse_Content) Descriptor() ([]byte, []int)
- func (m *QueryContentsResponse_Content) GetCurator() string
- func (m *QueryContentsResponse_Content) GetId() uint64
- func (m *QueryContentsResponse_Content) GetMetadata() string
- func (m *QueryContentsResponse_Content) Marshal() (dAtA []byte, err error)
- func (m *QueryContentsResponse_Content) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContentsResponse_Content) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContentsResponse_Content) ProtoMessage()
- func (m *QueryContentsResponse_Content) Reset()
- func (m *QueryContentsResponse_Content) Size() (n int)
- func (m *QueryContentsResponse_Content) String() string
- func (m *QueryContentsResponse_Content) Unmarshal(dAtA []byte) error
- func (m *QueryContentsResponse_Content) XXX_DiscardUnknown()
- func (m *QueryContentsResponse_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContentsResponse_Content) XXX_Merge(src proto.Message)
- func (m *QueryContentsResponse_Content) XXX_Size() int
- func (m *QueryContentsResponse_Content) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Create(ctx context.Context, req *MsgCreate) (*MsgCreateResponse, error)
- func (*UnimplementedMsgServer) Delete(ctx context.Context, req *MsgDelete) (*MsgDeleteResponse, error)
- func (*UnimplementedMsgServer) UpdateCurator(ctx context.Context, req *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error)
- func (*UnimplementedMsgServer) UpdateMetadata(ctx context.Context, req *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Content(ctx context.Context, req *QueryContentRequest) (*QueryContentResponse, error)
- func (*UnimplementedQueryServer) Contents(ctx context.Context, req *QueryContentsRequest) (*QueryContentsResponse, error)
- func (*UnimplementedQueryServer) ContentsByCurator(ctx context.Context, req *QueryContentsByCuratorRequest) (*QueryContentsByCuratorResponse, error)
Constants ¶
const MetadataMaxLength = 128
MetadataMaxLength is the maximum length of metadata.
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers interfaces with the interface registry.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers legacy amino codec.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Content ¶
type Content struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // curator is the address of the content curator. Curator []byte `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // metadata is the metadata of the content. Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
Content defines the table and properties of a content.
func (*Content) Descriptor ¶
func (*Content) GetCurator ¶
func (*Content) GetMetadata ¶
func (*Content) MarshalToSizedBuffer ¶
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) XXX_DiscardUnknown ¶
func (m *Content) XXX_DiscardUnknown()
func (*Content) XXX_Marshal ¶
func (*Content) XXX_Unmarshal ¶
type EventCreate ¶
type EventCreate struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventCreate is an event emitted when content is created.
func (*EventCreate) Descriptor ¶
func (*EventCreate) Descriptor() ([]byte, []int)
func (*EventCreate) GetId ¶
func (m *EventCreate) GetId() uint64
func (*EventCreate) Marshal ¶
func (m *EventCreate) Marshal() (dAtA []byte, err error)
func (*EventCreate) MarshalToSizedBuffer ¶
func (m *EventCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreate) ProtoMessage ¶
func (*EventCreate) ProtoMessage()
func (*EventCreate) Reset ¶
func (m *EventCreate) Reset()
func (*EventCreate) Size ¶
func (m *EventCreate) Size() (n int)
func (*EventCreate) String ¶
func (m *EventCreate) String() string
func (*EventCreate) Unmarshal ¶
func (m *EventCreate) Unmarshal(dAtA []byte) error
func (*EventCreate) XXX_DiscardUnknown ¶
func (m *EventCreate) XXX_DiscardUnknown()
func (*EventCreate) XXX_Marshal ¶
func (m *EventCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreate) XXX_Merge ¶
func (m *EventCreate) XXX_Merge(src proto.Message)
func (*EventCreate) XXX_Size ¶
func (m *EventCreate) XXX_Size() int
func (*EventCreate) XXX_Unmarshal ¶
func (m *EventCreate) XXX_Unmarshal(b []byte) error
type EventDelete ¶
type EventDelete struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventDelete is an event emitted when content is deleted.
func (*EventDelete) Descriptor ¶
func (*EventDelete) Descriptor() ([]byte, []int)
func (*EventDelete) GetId ¶
func (m *EventDelete) GetId() uint64
func (*EventDelete) Marshal ¶
func (m *EventDelete) Marshal() (dAtA []byte, err error)
func (*EventDelete) MarshalToSizedBuffer ¶
func (m *EventDelete) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDelete) ProtoMessage ¶
func (*EventDelete) ProtoMessage()
func (*EventDelete) Reset ¶
func (m *EventDelete) Reset()
func (*EventDelete) Size ¶
func (m *EventDelete) Size() (n int)
func (*EventDelete) String ¶
func (m *EventDelete) String() string
func (*EventDelete) Unmarshal ¶
func (m *EventDelete) Unmarshal(dAtA []byte) error
func (*EventDelete) XXX_DiscardUnknown ¶
func (m *EventDelete) XXX_DiscardUnknown()
func (*EventDelete) XXX_Marshal ¶
func (m *EventDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDelete) XXX_Merge ¶
func (m *EventDelete) XXX_Merge(src proto.Message)
func (*EventDelete) XXX_Size ¶
func (m *EventDelete) XXX_Size() int
func (*EventDelete) XXX_Unmarshal ¶
func (m *EventDelete) XXX_Unmarshal(b []byte) error
type EventUpdateCurator ¶
type EventUpdateCurator struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventUpdateCurator is an event emitted when content curator is updated.
func (*EventUpdateCurator) Descriptor ¶
func (*EventUpdateCurator) Descriptor() ([]byte, []int)
func (*EventUpdateCurator) GetId ¶
func (m *EventUpdateCurator) GetId() uint64
func (*EventUpdateCurator) Marshal ¶
func (m *EventUpdateCurator) Marshal() (dAtA []byte, err error)
func (*EventUpdateCurator) MarshalTo ¶
func (m *EventUpdateCurator) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateCurator) MarshalToSizedBuffer ¶
func (m *EventUpdateCurator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateCurator) ProtoMessage ¶
func (*EventUpdateCurator) ProtoMessage()
func (*EventUpdateCurator) Reset ¶
func (m *EventUpdateCurator) Reset()
func (*EventUpdateCurator) Size ¶
func (m *EventUpdateCurator) Size() (n int)
func (*EventUpdateCurator) String ¶
func (m *EventUpdateCurator) String() string
func (*EventUpdateCurator) Unmarshal ¶
func (m *EventUpdateCurator) Unmarshal(dAtA []byte) error
func (*EventUpdateCurator) XXX_DiscardUnknown ¶
func (m *EventUpdateCurator) XXX_DiscardUnknown()
func (*EventUpdateCurator) XXX_Marshal ¶
func (m *EventUpdateCurator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateCurator) XXX_Merge ¶
func (m *EventUpdateCurator) XXX_Merge(src proto.Message)
func (*EventUpdateCurator) XXX_Size ¶
func (m *EventUpdateCurator) XXX_Size() int
func (*EventUpdateCurator) XXX_Unmarshal ¶
func (m *EventUpdateCurator) XXX_Unmarshal(b []byte) error
type EventUpdateMetadata ¶
type EventUpdateMetadata struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventUpdateMetadata is an event emitted when content metadata is updated.
func (*EventUpdateMetadata) Descriptor ¶
func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
func (*EventUpdateMetadata) GetId ¶
func (m *EventUpdateMetadata) GetId() uint64
func (*EventUpdateMetadata) Marshal ¶
func (m *EventUpdateMetadata) Marshal() (dAtA []byte, err error)
func (*EventUpdateMetadata) MarshalTo ¶
func (m *EventUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateMetadata) MarshalToSizedBuffer ¶
func (m *EventUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateMetadata) ProtoMessage ¶
func (*EventUpdateMetadata) ProtoMessage()
func (*EventUpdateMetadata) Reset ¶
func (m *EventUpdateMetadata) Reset()
func (*EventUpdateMetadata) Size ¶
func (m *EventUpdateMetadata) Size() (n int)
func (*EventUpdateMetadata) String ¶
func (m *EventUpdateMetadata) String() string
func (*EventUpdateMetadata) Unmarshal ¶
func (m *EventUpdateMetadata) Unmarshal(dAtA []byte) error
func (*EventUpdateMetadata) XXX_DiscardUnknown ¶
func (m *EventUpdateMetadata) XXX_DiscardUnknown()
func (*EventUpdateMetadata) XXX_Marshal ¶
func (m *EventUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateMetadata) XXX_Merge ¶
func (m *EventUpdateMetadata) XXX_Merge(src proto.Message)
func (*EventUpdateMetadata) XXX_Size ¶
func (m *EventUpdateMetadata) XXX_Size() int
func (*EventUpdateMetadata) XXX_Unmarshal ¶
func (m *EventUpdateMetadata) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Create creates content. Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) // Delete deletes content. Delete(ctx context.Context, in *MsgDelete, opts ...grpc.CallOption) (*MsgDeleteResponse, error) // UpdateCurator updates the curator of content. UpdateCurator(ctx context.Context, in *MsgUpdateCurator, opts ...grpc.CallOption) (*MsgUpdateCuratorResponse, error) // UpdateMetadata updates the metadata of content. UpdateMetadata(ctx context.Context, in *MsgUpdateMetadata, opts ...grpc.CallOption) (*MsgUpdateMetadataResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreate ¶
type MsgCreate struct { // curator is the address of the content curator. Curator string `protobuf:"bytes,1,opt,name=curator,proto3" json:"curator,omitempty"` // metadata is the metadata of the content. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
MsgCreate is the Msg/Create request type.
func (*MsgCreate) Descriptor ¶
func (*MsgCreate) GetCurator ¶
func (*MsgCreate) GetMetadata ¶
func (MsgCreate) GetSigners ¶
func (m MsgCreate) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCreate.
func (*MsgCreate) MarshalToSizedBuffer ¶
func (*MsgCreate) ProtoMessage ¶
func (*MsgCreate) ProtoMessage()
func (MsgCreate) ValidateBasic ¶
ValidateBasic performs stateless validation on MsgCreate.
func (*MsgCreate) XXX_DiscardUnknown ¶
func (m *MsgCreate) XXX_DiscardUnknown()
func (*MsgCreate) XXX_Marshal ¶
func (*MsgCreate) XXX_Unmarshal ¶
type MsgCreateResponse ¶
type MsgCreateResponse struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgCreateResponse is the Msg/Create response type.
func (*MsgCreateResponse) Descriptor ¶
func (*MsgCreateResponse) Descriptor() ([]byte, []int)
func (*MsgCreateResponse) GetId ¶
func (m *MsgCreateResponse) GetId() uint64
func (*MsgCreateResponse) Marshal ¶
func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateResponse) MarshalTo ¶
func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResponse) ProtoMessage ¶
func (*MsgCreateResponse) ProtoMessage()
func (*MsgCreateResponse) Reset ¶
func (m *MsgCreateResponse) Reset()
func (*MsgCreateResponse) Size ¶
func (m *MsgCreateResponse) Size() (n int)
func (*MsgCreateResponse) String ¶
func (m *MsgCreateResponse) String() string
func (*MsgCreateResponse) Unmarshal ¶
func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateResponse) XXX_DiscardUnknown()
func (*MsgCreateResponse) XXX_Marshal ¶
func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResponse) XXX_Merge ¶
func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
func (*MsgCreateResponse) XXX_Size ¶
func (m *MsgCreateResponse) XXX_Size() int
func (*MsgCreateResponse) XXX_Unmarshal ¶
func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
type MsgDelete ¶
type MsgDelete struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // curator is the address of the content curator. Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` }
MsgDelete is the Msg/Delete request type.
func (*MsgDelete) Descriptor ¶
func (*MsgDelete) GetCurator ¶
func (MsgDelete) GetSigners ¶
func (m MsgDelete) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgDelete.
func (*MsgDelete) MarshalToSizedBuffer ¶
func (*MsgDelete) ProtoMessage ¶
func (*MsgDelete) ProtoMessage()
func (MsgDelete) ValidateBasic ¶
ValidateBasic performs stateless validation on MsgDelete.
func (*MsgDelete) XXX_DiscardUnknown ¶
func (m *MsgDelete) XXX_DiscardUnknown()
func (*MsgDelete) XXX_Marshal ¶
func (*MsgDelete) XXX_Unmarshal ¶
type MsgDeleteResponse ¶
type MsgDeleteResponse struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgDeleteResponse is the Msg/Delete response type.
func (*MsgDeleteResponse) Descriptor ¶
func (*MsgDeleteResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteResponse) GetId ¶
func (m *MsgDeleteResponse) GetId() uint64
func (*MsgDeleteResponse) Marshal ¶
func (m *MsgDeleteResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteResponse) MarshalTo ¶
func (m *MsgDeleteResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteResponse) ProtoMessage ¶
func (*MsgDeleteResponse) ProtoMessage()
func (*MsgDeleteResponse) Reset ¶
func (m *MsgDeleteResponse) Reset()
func (*MsgDeleteResponse) Size ¶
func (m *MsgDeleteResponse) Size() (n int)
func (*MsgDeleteResponse) String ¶
func (m *MsgDeleteResponse) String() string
func (*MsgDeleteResponse) Unmarshal ¶
func (m *MsgDeleteResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteResponse) XXX_DiscardUnknown()
func (*MsgDeleteResponse) XXX_Marshal ¶
func (m *MsgDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteResponse) XXX_Merge ¶
func (m *MsgDeleteResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteResponse) XXX_Size ¶
func (m *MsgDeleteResponse) XXX_Size() int
func (*MsgDeleteResponse) XXX_Unmarshal ¶
func (m *MsgDeleteResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Create creates content. Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) // Delete deletes content. Delete(context.Context, *MsgDelete) (*MsgDeleteResponse, error) // UpdateCurator updates the curator of content. UpdateCurator(context.Context, *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error) // UpdateMetadata updates the metadata of content. UpdateMetadata(context.Context, *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateCurator ¶
type MsgUpdateCurator struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // curator is the address of the content curator. Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // new_curator is the address of the new curator. NewCurator string `protobuf:"bytes,3,opt,name=new_curator,json=newCurator,proto3" json:"new_curator,omitempty"` }
MsgUpdateCurator is the Msg/UpdateCurator request type.
func (*MsgUpdateCurator) Descriptor ¶
func (*MsgUpdateCurator) Descriptor() ([]byte, []int)
func (*MsgUpdateCurator) GetCurator ¶
func (m *MsgUpdateCurator) GetCurator() string
func (*MsgUpdateCurator) GetId ¶
func (m *MsgUpdateCurator) GetId() uint64
func (*MsgUpdateCurator) GetNewCurator ¶
func (m *MsgUpdateCurator) GetNewCurator() string
func (MsgUpdateCurator) GetSigners ¶
func (m MsgUpdateCurator) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgUpdateCurator.
func (*MsgUpdateCurator) Marshal ¶
func (m *MsgUpdateCurator) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCurator) MarshalToSizedBuffer ¶
func (m *MsgUpdateCurator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCurator) ProtoMessage ¶
func (*MsgUpdateCurator) ProtoMessage()
func (*MsgUpdateCurator) Reset ¶
func (m *MsgUpdateCurator) Reset()
func (MsgUpdateCurator) Route ¶
func (m MsgUpdateCurator) Route() string
Route implements the LegacyMsg interface.
func (*MsgUpdateCurator) Size ¶
func (m *MsgUpdateCurator) Size() (n int)
func (*MsgUpdateCurator) String ¶
func (m *MsgUpdateCurator) String() string
func (MsgUpdateCurator) Type ¶
func (m MsgUpdateCurator) Type() string
Type implements the LegacyMsg interface.
func (*MsgUpdateCurator) Unmarshal ¶
func (m *MsgUpdateCurator) Unmarshal(dAtA []byte) error
func (MsgUpdateCurator) ValidateBasic ¶
func (m MsgUpdateCurator) ValidateBasic() error
ValidateBasic performs stateless validation on MsgUpdateCurator.
func (*MsgUpdateCurator) XXX_DiscardUnknown ¶
func (m *MsgUpdateCurator) XXX_DiscardUnknown()
func (*MsgUpdateCurator) XXX_Marshal ¶
func (m *MsgUpdateCurator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCurator) XXX_Merge ¶
func (m *MsgUpdateCurator) XXX_Merge(src proto.Message)
func (*MsgUpdateCurator) XXX_Size ¶
func (m *MsgUpdateCurator) XXX_Size() int
func (*MsgUpdateCurator) XXX_Unmarshal ¶
func (m *MsgUpdateCurator) XXX_Unmarshal(b []byte) error
type MsgUpdateCuratorResponse ¶
type MsgUpdateCuratorResponse struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgUpdateCuratorResponse is the Msg/UpdateCurator response type.
func (*MsgUpdateCuratorResponse) Descriptor ¶
func (*MsgUpdateCuratorResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateCuratorResponse) GetId ¶
func (m *MsgUpdateCuratorResponse) GetId() uint64
func (*MsgUpdateCuratorResponse) Marshal ¶
func (m *MsgUpdateCuratorResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateCuratorResponse) MarshalTo ¶
func (m *MsgUpdateCuratorResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateCuratorResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateCuratorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateCuratorResponse) ProtoMessage ¶
func (*MsgUpdateCuratorResponse) ProtoMessage()
func (*MsgUpdateCuratorResponse) Reset ¶
func (m *MsgUpdateCuratorResponse) Reset()
func (*MsgUpdateCuratorResponse) Size ¶
func (m *MsgUpdateCuratorResponse) Size() (n int)
func (*MsgUpdateCuratorResponse) String ¶
func (m *MsgUpdateCuratorResponse) String() string
func (*MsgUpdateCuratorResponse) Unmarshal ¶
func (m *MsgUpdateCuratorResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateCuratorResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateCuratorResponse) XXX_DiscardUnknown()
func (*MsgUpdateCuratorResponse) XXX_Marshal ¶
func (m *MsgUpdateCuratorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateCuratorResponse) XXX_Merge ¶
func (m *MsgUpdateCuratorResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateCuratorResponse) XXX_Size ¶
func (m *MsgUpdateCuratorResponse) XXX_Size() int
func (*MsgUpdateCuratorResponse) XXX_Unmarshal ¶
func (m *MsgUpdateCuratorResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateMetadata ¶
type MsgUpdateMetadata struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // curator is the address of the content curator. Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // new_metadata is the new metadata of the content. NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` }
MsgUpdateMetadata is the Msg/UpdateMetadata request type.
func (*MsgUpdateMetadata) Descriptor ¶
func (*MsgUpdateMetadata) Descriptor() ([]byte, []int)
func (*MsgUpdateMetadata) GetCurator ¶
func (m *MsgUpdateMetadata) GetCurator() string
func (*MsgUpdateMetadata) GetId ¶
func (m *MsgUpdateMetadata) GetId() uint64
func (*MsgUpdateMetadata) GetNewMetadata ¶
func (m *MsgUpdateMetadata) GetNewMetadata() string
func (MsgUpdateMetadata) GetSigners ¶
func (m MsgUpdateMetadata) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgUpdateMetadata.
func (*MsgUpdateMetadata) Marshal ¶
func (m *MsgUpdateMetadata) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMetadata) MarshalTo ¶
func (m *MsgUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMetadata) MarshalToSizedBuffer ¶
func (m *MsgUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMetadata) ProtoMessage ¶
func (*MsgUpdateMetadata) ProtoMessage()
func (*MsgUpdateMetadata) Reset ¶
func (m *MsgUpdateMetadata) Reset()
func (MsgUpdateMetadata) Route ¶
func (m MsgUpdateMetadata) Route() string
Route implements the LegacyMsg interface.
func (*MsgUpdateMetadata) Size ¶
func (m *MsgUpdateMetadata) Size() (n int)
func (*MsgUpdateMetadata) String ¶
func (m *MsgUpdateMetadata) String() string
func (MsgUpdateMetadata) Type ¶
func (m MsgUpdateMetadata) Type() string
Type implements the LegacyMsg interface.
func (*MsgUpdateMetadata) Unmarshal ¶
func (m *MsgUpdateMetadata) Unmarshal(dAtA []byte) error
func (MsgUpdateMetadata) ValidateBasic ¶
func (m MsgUpdateMetadata) ValidateBasic() error
ValidateBasic performs stateless validation on MsgUpdateMetadata.
func (*MsgUpdateMetadata) XXX_DiscardUnknown ¶
func (m *MsgUpdateMetadata) XXX_DiscardUnknown()
func (*MsgUpdateMetadata) XXX_Marshal ¶
func (m *MsgUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMetadata) XXX_Merge ¶
func (m *MsgUpdateMetadata) XXX_Merge(src proto.Message)
func (*MsgUpdateMetadata) XXX_Size ¶
func (m *MsgUpdateMetadata) XXX_Size() int
func (*MsgUpdateMetadata) XXX_Unmarshal ¶
func (m *MsgUpdateMetadata) XXX_Unmarshal(b []byte) error
type MsgUpdateMetadataResponse ¶
type MsgUpdateMetadataResponse struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgUpdateMetadataResponse is the Msg/UpdateMetadata response type.
func (*MsgUpdateMetadataResponse) Descriptor ¶
func (*MsgUpdateMetadataResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateMetadataResponse) GetId ¶
func (m *MsgUpdateMetadataResponse) GetId() uint64
func (*MsgUpdateMetadataResponse) Marshal ¶
func (m *MsgUpdateMetadataResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMetadataResponse) MarshalTo ¶
func (m *MsgUpdateMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMetadataResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMetadataResponse) ProtoMessage ¶
func (*MsgUpdateMetadataResponse) ProtoMessage()
func (*MsgUpdateMetadataResponse) Reset ¶
func (m *MsgUpdateMetadataResponse) Reset()
func (*MsgUpdateMetadataResponse) Size ¶
func (m *MsgUpdateMetadataResponse) Size() (n int)
func (*MsgUpdateMetadataResponse) String ¶
func (m *MsgUpdateMetadataResponse) String() string
func (*MsgUpdateMetadataResponse) Unmarshal ¶
func (m *MsgUpdateMetadataResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateMetadataResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()
func (*MsgUpdateMetadataResponse) XXX_Marshal ¶
func (m *MsgUpdateMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMetadataResponse) XXX_Merge ¶
func (m *MsgUpdateMetadataResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMetadataResponse) XXX_Size ¶
func (m *MsgUpdateMetadataResponse) XXX_Size() int
func (*MsgUpdateMetadataResponse) XXX_Unmarshal ¶
func (m *MsgUpdateMetadataResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Content queries a content by id. Content(ctx context.Context, in *QueryContentRequest, opts ...grpc.CallOption) (*QueryContentResponse, error) // Contents queries all contents. Contents(ctx context.Context, in *QueryContentsRequest, opts ...grpc.CallOption) (*QueryContentsResponse, error) // ContentsByCurator queries contents by curator. ContentsByCurator(ctx context.Context, in *QueryContentsByCuratorRequest, opts ...grpc.CallOption) (*QueryContentsByCuratorResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryContentRequest ¶
type QueryContentRequest struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
QueryContentRequest is the Query/Content request type.
func (*QueryContentRequest) Descriptor ¶
func (*QueryContentRequest) Descriptor() ([]byte, []int)
func (*QueryContentRequest) GetId ¶
func (m *QueryContentRequest) GetId() uint64
func (*QueryContentRequest) Marshal ¶
func (m *QueryContentRequest) Marshal() (dAtA []byte, err error)
func (*QueryContentRequest) MarshalTo ¶
func (m *QueryContentRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentRequest) MarshalToSizedBuffer ¶
func (m *QueryContentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentRequest) ProtoMessage ¶
func (*QueryContentRequest) ProtoMessage()
func (*QueryContentRequest) Reset ¶
func (m *QueryContentRequest) Reset()
func (*QueryContentRequest) Size ¶
func (m *QueryContentRequest) Size() (n int)
func (*QueryContentRequest) String ¶
func (m *QueryContentRequest) String() string
func (*QueryContentRequest) Unmarshal ¶
func (m *QueryContentRequest) Unmarshal(dAtA []byte) error
func (*QueryContentRequest) XXX_DiscardUnknown ¶
func (m *QueryContentRequest) XXX_DiscardUnknown()
func (*QueryContentRequest) XXX_Marshal ¶
func (m *QueryContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentRequest) XXX_Merge ¶
func (m *QueryContentRequest) XXX_Merge(src proto.Message)
func (*QueryContentRequest) XXX_Size ¶
func (m *QueryContentRequest) XXX_Size() int
func (*QueryContentRequest) XXX_Unmarshal ¶
func (m *QueryContentRequest) XXX_Unmarshal(b []byte) error
type QueryContentResponse ¶
type QueryContentResponse struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // curator is the address of the content curator. Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // metadata is the metadata of the content. Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
QueryContentResponse is the Query/Content response type.
func (*QueryContentResponse) Descriptor ¶
func (*QueryContentResponse) Descriptor() ([]byte, []int)
func (*QueryContentResponse) GetCurator ¶
func (m *QueryContentResponse) GetCurator() string
func (*QueryContentResponse) GetId ¶
func (m *QueryContentResponse) GetId() uint64
func (*QueryContentResponse) GetMetadata ¶
func (m *QueryContentResponse) GetMetadata() string
func (*QueryContentResponse) Marshal ¶
func (m *QueryContentResponse) Marshal() (dAtA []byte, err error)
func (*QueryContentResponse) MarshalTo ¶
func (m *QueryContentResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentResponse) MarshalToSizedBuffer ¶
func (m *QueryContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentResponse) ProtoMessage ¶
func (*QueryContentResponse) ProtoMessage()
func (*QueryContentResponse) Reset ¶
func (m *QueryContentResponse) Reset()
func (*QueryContentResponse) Size ¶
func (m *QueryContentResponse) Size() (n int)
func (*QueryContentResponse) String ¶
func (m *QueryContentResponse) String() string
func (*QueryContentResponse) Unmarshal ¶
func (m *QueryContentResponse) Unmarshal(dAtA []byte) error
func (*QueryContentResponse) XXX_DiscardUnknown ¶
func (m *QueryContentResponse) XXX_DiscardUnknown()
func (*QueryContentResponse) XXX_Marshal ¶
func (m *QueryContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentResponse) XXX_Merge ¶
func (m *QueryContentResponse) XXX_Merge(src proto.Message)
func (*QueryContentResponse) XXX_Size ¶
func (m *QueryContentResponse) XXX_Size() int
func (*QueryContentResponse) XXX_Unmarshal ¶
func (m *QueryContentResponse) XXX_Unmarshal(b []byte) error
type QueryContentsByCuratorRequest ¶
type QueryContentsByCuratorRequest struct { // curator is the address of the content curator. Curator string `protobuf:"bytes,1,opt,name=curator,proto3" json:"curator,omitempty"` // pagination is the optional pagination of the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContentsByCuratorRequest is the Query/ContentsByCurator request type.
func (*QueryContentsByCuratorRequest) Descriptor ¶
func (*QueryContentsByCuratorRequest) Descriptor() ([]byte, []int)
func (*QueryContentsByCuratorRequest) GetCurator ¶
func (m *QueryContentsByCuratorRequest) GetCurator() string
func (*QueryContentsByCuratorRequest) GetPagination ¶
func (m *QueryContentsByCuratorRequest) GetPagination() *query.PageRequest
func (*QueryContentsByCuratorRequest) Marshal ¶
func (m *QueryContentsByCuratorRequest) Marshal() (dAtA []byte, err error)
func (*QueryContentsByCuratorRequest) MarshalTo ¶
func (m *QueryContentsByCuratorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentsByCuratorRequest) MarshalToSizedBuffer ¶
func (m *QueryContentsByCuratorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentsByCuratorRequest) ProtoMessage ¶
func (*QueryContentsByCuratorRequest) ProtoMessage()
func (*QueryContentsByCuratorRequest) Reset ¶
func (m *QueryContentsByCuratorRequest) Reset()
func (*QueryContentsByCuratorRequest) Size ¶
func (m *QueryContentsByCuratorRequest) Size() (n int)
func (*QueryContentsByCuratorRequest) String ¶
func (m *QueryContentsByCuratorRequest) String() string
func (*QueryContentsByCuratorRequest) Unmarshal ¶
func (m *QueryContentsByCuratorRequest) Unmarshal(dAtA []byte) error
func (*QueryContentsByCuratorRequest) XXX_DiscardUnknown ¶
func (m *QueryContentsByCuratorRequest) XXX_DiscardUnknown()
func (*QueryContentsByCuratorRequest) XXX_Marshal ¶
func (m *QueryContentsByCuratorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentsByCuratorRequest) XXX_Merge ¶
func (m *QueryContentsByCuratorRequest) XXX_Merge(src proto.Message)
func (*QueryContentsByCuratorRequest) XXX_Size ¶
func (m *QueryContentsByCuratorRequest) XXX_Size() int
func (*QueryContentsByCuratorRequest) XXX_Unmarshal ¶
func (m *QueryContentsByCuratorRequest) XXX_Unmarshal(b []byte) error
type QueryContentsByCuratorResponse ¶
type QueryContentsByCuratorResponse struct { // curator is the address of the content curator. Curator string `protobuf:"bytes,1,opt,name=curator,proto3" json:"curator,omitempty"` // contents is the list of contents managed by the curator. Contents []*QueryContentsByCuratorResponse_Content `protobuf:"bytes,2,rep,name=contents,proto3" json:"contents,omitempty"` // pagination is the pagination of the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContentsByCuratorResponse is the Query/ContentsByCurator response type.
func (*QueryContentsByCuratorResponse) Descriptor ¶
func (*QueryContentsByCuratorResponse) Descriptor() ([]byte, []int)
func (*QueryContentsByCuratorResponse) GetContents ¶
func (m *QueryContentsByCuratorResponse) GetContents() []*QueryContentsByCuratorResponse_Content
func (*QueryContentsByCuratorResponse) GetCurator ¶
func (m *QueryContentsByCuratorResponse) GetCurator() string
func (*QueryContentsByCuratorResponse) GetPagination ¶
func (m *QueryContentsByCuratorResponse) GetPagination() *query.PageResponse
func (*QueryContentsByCuratorResponse) Marshal ¶
func (m *QueryContentsByCuratorResponse) Marshal() (dAtA []byte, err error)
func (*QueryContentsByCuratorResponse) MarshalTo ¶
func (m *QueryContentsByCuratorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentsByCuratorResponse) MarshalToSizedBuffer ¶
func (m *QueryContentsByCuratorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentsByCuratorResponse) ProtoMessage ¶
func (*QueryContentsByCuratorResponse) ProtoMessage()
func (*QueryContentsByCuratorResponse) Reset ¶
func (m *QueryContentsByCuratorResponse) Reset()
func (*QueryContentsByCuratorResponse) Size ¶
func (m *QueryContentsByCuratorResponse) Size() (n int)
func (*QueryContentsByCuratorResponse) String ¶
func (m *QueryContentsByCuratorResponse) String() string
func (*QueryContentsByCuratorResponse) Unmarshal ¶
func (m *QueryContentsByCuratorResponse) Unmarshal(dAtA []byte) error
func (*QueryContentsByCuratorResponse) XXX_DiscardUnknown ¶
func (m *QueryContentsByCuratorResponse) XXX_DiscardUnknown()
func (*QueryContentsByCuratorResponse) XXX_Marshal ¶
func (m *QueryContentsByCuratorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentsByCuratorResponse) XXX_Merge ¶
func (m *QueryContentsByCuratorResponse) XXX_Merge(src proto.Message)
func (*QueryContentsByCuratorResponse) XXX_Size ¶
func (m *QueryContentsByCuratorResponse) XXX_Size() int
func (*QueryContentsByCuratorResponse) XXX_Unmarshal ¶
func (m *QueryContentsByCuratorResponse) XXX_Unmarshal(b []byte) error
type QueryContentsByCuratorResponse_Content ¶
type QueryContentsByCuratorResponse_Content struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // metadata is the metadata of the content. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
Content is the content properties.
func (*QueryContentsByCuratorResponse_Content) Descriptor ¶
func (*QueryContentsByCuratorResponse_Content) Descriptor() ([]byte, []int)
func (*QueryContentsByCuratorResponse_Content) GetId ¶
func (m *QueryContentsByCuratorResponse_Content) GetId() uint64
func (*QueryContentsByCuratorResponse_Content) GetMetadata ¶
func (m *QueryContentsByCuratorResponse_Content) GetMetadata() string
func (*QueryContentsByCuratorResponse_Content) Marshal ¶
func (m *QueryContentsByCuratorResponse_Content) Marshal() (dAtA []byte, err error)
func (*QueryContentsByCuratorResponse_Content) MarshalTo ¶
func (m *QueryContentsByCuratorResponse_Content) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentsByCuratorResponse_Content) MarshalToSizedBuffer ¶
func (m *QueryContentsByCuratorResponse_Content) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentsByCuratorResponse_Content) ProtoMessage ¶
func (*QueryContentsByCuratorResponse_Content) ProtoMessage()
func (*QueryContentsByCuratorResponse_Content) Reset ¶
func (m *QueryContentsByCuratorResponse_Content) Reset()
func (*QueryContentsByCuratorResponse_Content) Size ¶
func (m *QueryContentsByCuratorResponse_Content) Size() (n int)
func (*QueryContentsByCuratorResponse_Content) String ¶
func (m *QueryContentsByCuratorResponse_Content) String() string
func (*QueryContentsByCuratorResponse_Content) Unmarshal ¶
func (m *QueryContentsByCuratorResponse_Content) Unmarshal(dAtA []byte) error
func (*QueryContentsByCuratorResponse_Content) XXX_DiscardUnknown ¶
func (m *QueryContentsByCuratorResponse_Content) XXX_DiscardUnknown()
func (*QueryContentsByCuratorResponse_Content) XXX_Marshal ¶
func (m *QueryContentsByCuratorResponse_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentsByCuratorResponse_Content) XXX_Merge ¶
func (m *QueryContentsByCuratorResponse_Content) XXX_Merge(src proto.Message)
func (*QueryContentsByCuratorResponse_Content) XXX_Size ¶
func (m *QueryContentsByCuratorResponse_Content) XXX_Size() int
func (*QueryContentsByCuratorResponse_Content) XXX_Unmarshal ¶
func (m *QueryContentsByCuratorResponse_Content) XXX_Unmarshal(b []byte) error
type QueryContentsRequest ¶
type QueryContentsRequest struct { // pagination is the optional pagination of the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContentsRequest is the Query/Contents request type.
func (*QueryContentsRequest) Descriptor ¶
func (*QueryContentsRequest) Descriptor() ([]byte, []int)
func (*QueryContentsRequest) GetPagination ¶
func (m *QueryContentsRequest) GetPagination() *query.PageRequest
func (*QueryContentsRequest) Marshal ¶
func (m *QueryContentsRequest) Marshal() (dAtA []byte, err error)
func (*QueryContentsRequest) MarshalTo ¶
func (m *QueryContentsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentsRequest) MarshalToSizedBuffer ¶
func (m *QueryContentsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentsRequest) ProtoMessage ¶
func (*QueryContentsRequest) ProtoMessage()
func (*QueryContentsRequest) Reset ¶
func (m *QueryContentsRequest) Reset()
func (*QueryContentsRequest) Size ¶
func (m *QueryContentsRequest) Size() (n int)
func (*QueryContentsRequest) String ¶
func (m *QueryContentsRequest) String() string
func (*QueryContentsRequest) Unmarshal ¶
func (m *QueryContentsRequest) Unmarshal(dAtA []byte) error
func (*QueryContentsRequest) XXX_DiscardUnknown ¶
func (m *QueryContentsRequest) XXX_DiscardUnknown()
func (*QueryContentsRequest) XXX_Marshal ¶
func (m *QueryContentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentsRequest) XXX_Merge ¶
func (m *QueryContentsRequest) XXX_Merge(src proto.Message)
func (*QueryContentsRequest) XXX_Size ¶
func (m *QueryContentsRequest) XXX_Size() int
func (*QueryContentsRequest) XXX_Unmarshal ¶
func (m *QueryContentsRequest) XXX_Unmarshal(b []byte) error
type QueryContentsResponse ¶
type QueryContentsResponse struct { // contents is the list of contents. Contents []*QueryContentsResponse_Content `protobuf:"bytes,1,rep,name=contents,proto3" json:"contents,omitempty"` // pagination is the pagination of the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContentsResponse is the Query/Contents response type.
func (*QueryContentsResponse) Descriptor ¶
func (*QueryContentsResponse) Descriptor() ([]byte, []int)
func (*QueryContentsResponse) GetContents ¶
func (m *QueryContentsResponse) GetContents() []*QueryContentsResponse_Content
func (*QueryContentsResponse) GetPagination ¶
func (m *QueryContentsResponse) GetPagination() *query.PageResponse
func (*QueryContentsResponse) Marshal ¶
func (m *QueryContentsResponse) Marshal() (dAtA []byte, err error)
func (*QueryContentsResponse) MarshalTo ¶
func (m *QueryContentsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentsResponse) MarshalToSizedBuffer ¶
func (m *QueryContentsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentsResponse) ProtoMessage ¶
func (*QueryContentsResponse) ProtoMessage()
func (*QueryContentsResponse) Reset ¶
func (m *QueryContentsResponse) Reset()
func (*QueryContentsResponse) Size ¶
func (m *QueryContentsResponse) Size() (n int)
func (*QueryContentsResponse) String ¶
func (m *QueryContentsResponse) String() string
func (*QueryContentsResponse) Unmarshal ¶
func (m *QueryContentsResponse) Unmarshal(dAtA []byte) error
func (*QueryContentsResponse) XXX_DiscardUnknown ¶
func (m *QueryContentsResponse) XXX_DiscardUnknown()
func (*QueryContentsResponse) XXX_Marshal ¶
func (m *QueryContentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentsResponse) XXX_Merge ¶
func (m *QueryContentsResponse) XXX_Merge(src proto.Message)
func (*QueryContentsResponse) XXX_Size ¶
func (m *QueryContentsResponse) XXX_Size() int
func (*QueryContentsResponse) XXX_Unmarshal ¶
func (m *QueryContentsResponse) XXX_Unmarshal(b []byte) error
type QueryContentsResponse_Content ¶
type QueryContentsResponse_Content struct { // id is the unique identifier of the content. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // curator is the address of the content curator. Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // metadata is the metadata of the content. Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
Content is the content properties.
func (*QueryContentsResponse_Content) Descriptor ¶
func (*QueryContentsResponse_Content) Descriptor() ([]byte, []int)
func (*QueryContentsResponse_Content) GetCurator ¶
func (m *QueryContentsResponse_Content) GetCurator() string
func (*QueryContentsResponse_Content) GetId ¶
func (m *QueryContentsResponse_Content) GetId() uint64
func (*QueryContentsResponse_Content) GetMetadata ¶
func (m *QueryContentsResponse_Content) GetMetadata() string
func (*QueryContentsResponse_Content) Marshal ¶
func (m *QueryContentsResponse_Content) Marshal() (dAtA []byte, err error)
func (*QueryContentsResponse_Content) MarshalTo ¶
func (m *QueryContentsResponse_Content) MarshalTo(dAtA []byte) (int, error)
func (*QueryContentsResponse_Content) MarshalToSizedBuffer ¶
func (m *QueryContentsResponse_Content) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContentsResponse_Content) ProtoMessage ¶
func (*QueryContentsResponse_Content) ProtoMessage()
func (*QueryContentsResponse_Content) Reset ¶
func (m *QueryContentsResponse_Content) Reset()
func (*QueryContentsResponse_Content) Size ¶
func (m *QueryContentsResponse_Content) Size() (n int)
func (*QueryContentsResponse_Content) String ¶
func (m *QueryContentsResponse_Content) String() string
func (*QueryContentsResponse_Content) Unmarshal ¶
func (m *QueryContentsResponse_Content) Unmarshal(dAtA []byte) error
func (*QueryContentsResponse_Content) XXX_DiscardUnknown ¶
func (m *QueryContentsResponse_Content) XXX_DiscardUnknown()
func (*QueryContentsResponse_Content) XXX_Marshal ¶
func (m *QueryContentsResponse_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContentsResponse_Content) XXX_Merge ¶
func (m *QueryContentsResponse_Content) XXX_Merge(src proto.Message)
func (*QueryContentsResponse_Content) XXX_Size ¶
func (m *QueryContentsResponse_Content) XXX_Size() int
func (*QueryContentsResponse_Content) XXX_Unmarshal ¶
func (m *QueryContentsResponse_Content) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Content queries a content by id. Content(context.Context, *QueryContentRequest) (*QueryContentResponse, error) // Contents queries all contents. Contents(context.Context, *QueryContentsRequest) (*QueryContentsResponse, error) // ContentsByCurator queries contents by curator. ContentsByCurator(context.Context, *QueryContentsByCuratorRequest) (*QueryContentsByCuratorResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Create ¶
func (*UnimplementedMsgServer) Create(ctx context.Context, req *MsgCreate) (*MsgCreateResponse, error)
func (*UnimplementedMsgServer) Delete ¶
func (*UnimplementedMsgServer) Delete(ctx context.Context, req *MsgDelete) (*MsgDeleteResponse, error)
func (*UnimplementedMsgServer) UpdateCurator ¶
func (*UnimplementedMsgServer) UpdateCurator(ctx context.Context, req *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error)
func (*UnimplementedMsgServer) UpdateMetadata ¶
func (*UnimplementedMsgServer) UpdateMetadata(ctx context.Context, req *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Content ¶
func (*UnimplementedQueryServer) Content(ctx context.Context, req *QueryContentRequest) (*QueryContentResponse, error)
func (*UnimplementedQueryServer) Contents ¶
func (*UnimplementedQueryServer) Contents(ctx context.Context, req *QueryContentsRequest) (*QueryContentsResponse, error)
func (*UnimplementedQueryServer) ContentsByCurator ¶
func (*UnimplementedQueryServer) ContentsByCurator(ctx context.Context, req *QueryContentsByCuratorRequest) (*QueryContentsByCuratorResponse, error)