Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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)
- func ValidateFollowers(who string, whom []string) error
- type Category
- type FixedGasParams
- func (*FixedGasParams) Descriptor() ([]byte, []int)
- func (m *FixedGasParams) GetCreatePost() uint64
- func (m *FixedGasParams) GetDeletePost() uint64
- func (m *FixedGasParams) GetFollow() uint64
- func (m *FixedGasParams) GetSetLike() uint64
- func (m *FixedGasParams) GetUnfollow() uint64
- func (m *FixedGasParams) Marshal() (dAtA []byte, err error)
- func (m *FixedGasParams) MarshalTo(dAtA []byte) (int, error)
- func (m *FixedGasParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FixedGasParams) ProtoMessage()
- func (m *FixedGasParams) Reset()
- func (m *FixedGasParams) Size() (n int)
- func (m *FixedGasParams) String() string
- func (m *FixedGasParams) Unmarshal(dAtA []byte) error
- func (m *FixedGasParams) XXX_DiscardUnknown()
- func (m *FixedGasParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FixedGasParams) XXX_Merge(src proto.Message)
- func (m *FixedGasParams) XXX_Size() int
- func (m *FixedGasParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFollowing() map[string]GenesisState_AddressList
- func (m *GenesisState) GetLikes() []Like
- func (m *GenesisState) GetParams() *Params
- func (m *GenesisState) GetPosts() []Post
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GenesisState_AddressList
- func (*GenesisState_AddressList) Descriptor() ([]byte, []int)
- func (m *GenesisState_AddressList) GetAddress() []string
- func (m *GenesisState_AddressList) Marshal() (dAtA []byte, err error)
- func (m *GenesisState_AddressList) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState_AddressList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState_AddressList) ProtoMessage()
- func (m *GenesisState_AddressList) Reset()
- func (m *GenesisState_AddressList) Size() (n int)
- func (m *GenesisState_AddressList) String() string
- func (m *GenesisState_AddressList) Unmarshal(dAtA []byte) error
- func (m *GenesisState_AddressList) XXX_DiscardUnknown()
- func (m *GenesisState_AddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState_AddressList) XXX_Merge(src proto.Message)
- func (m *GenesisState_AddressList) XXX_Size() int
- func (m *GenesisState_AddressList) XXX_Unmarshal(b []byte) error
- type GetPostRequest
- func (*GetPostRequest) Descriptor() ([]byte, []int)
- func (m *GetPostRequest) Marshal() (dAtA []byte, err error)
- func (m *GetPostRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetPostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetPostRequest) ProtoMessage()
- func (m *GetPostRequest) Reset()
- func (m *GetPostRequest) Size() (n int)
- func (m *GetPostRequest) String() string
- func (m *GetPostRequest) Unmarshal(dAtA []byte) error
- func (m *GetPostRequest) XXX_DiscardUnknown()
- func (m *GetPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPostRequest) XXX_Merge(src proto.Message)
- func (m *GetPostRequest) XXX_Size() int
- func (m *GetPostRequest) XXX_Unmarshal(b []byte) error
- type GetPostResponse
- func (*GetPostResponse) Descriptor() ([]byte, []int)
- func (m *GetPostResponse) GetPost() Post
- func (m *GetPostResponse) Marshal() (dAtA []byte, err error)
- func (m *GetPostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetPostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetPostResponse) ProtoMessage()
- func (m *GetPostResponse) Reset()
- func (m *GetPostResponse) Size() (n int)
- func (m *GetPostResponse) String() string
- func (m *GetPostResponse) Unmarshal(dAtA []byte) error
- func (m *GetPostResponse) XXX_DiscardUnknown()
- func (m *GetPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPostResponse) XXX_Merge(src proto.Message)
- func (m *GetPostResponse) XXX_Size() int
- func (m *GetPostResponse) XXX_Unmarshal(b []byte) error
- type Like
- func (*Like) Descriptor() ([]byte, []int)
- func (m *Like) GetOwner() string
- func (m *Like) GetPostOwner() string
- func (m *Like) GetPostUuid() string
- func (m *Like) GetWeight() LikeWeight
- func (m *Like) Marshal() (dAtA []byte, err error)
- func (m *Like) MarshalTo(dAtA []byte) (int, error)
- func (m *Like) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Like) ProtoMessage()
- func (m *Like) Reset()
- func (m *Like) Size() (n int)
- func (m *Like) String() string
- func (m *Like) Unmarshal(dAtA []byte) error
- func (l Like) Validate() error
- func (m *Like) XXX_DiscardUnknown()
- func (m *Like) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Like) XXX_Merge(src proto.Message)
- func (m *Like) XXX_Size() int
- func (m *Like) XXX_Unmarshal(b []byte) error
- type LikeWeight
- type ListFollowedRequest
- func (*ListFollowedRequest) Descriptor() ([]byte, []int)
- func (m *ListFollowedRequest) Marshal() (dAtA []byte, err error)
- func (m *ListFollowedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListFollowedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListFollowedRequest) ProtoMessage()
- func (m *ListFollowedRequest) Reset()
- func (m *ListFollowedRequest) Size() (n int)
- func (m *ListFollowedRequest) String() string
- func (m *ListFollowedRequest) Unmarshal(dAtA []byte) error
- func (m *ListFollowedRequest) XXX_DiscardUnknown()
- func (m *ListFollowedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFollowedRequest) XXX_Merge(src proto.Message)
- func (m *ListFollowedRequest) XXX_Size() int
- func (m *ListFollowedRequest) XXX_Unmarshal(b []byte) error
- type ListFollowedResponse
- func (*ListFollowedResponse) Descriptor() ([]byte, []int)
- func (m *ListFollowedResponse) GetFollowed() []string
- func (m *ListFollowedResponse) GetPagination() query.PageResponse
- func (m *ListFollowedResponse) Marshal() (dAtA []byte, err error)
- func (m *ListFollowedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListFollowedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListFollowedResponse) ProtoMessage()
- func (m *ListFollowedResponse) Reset()
- func (m *ListFollowedResponse) Size() (n int)
- func (m *ListFollowedResponse) String() string
- func (m *ListFollowedResponse) Unmarshal(dAtA []byte) error
- func (m *ListFollowedResponse) XXX_DiscardUnknown()
- func (m *ListFollowedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListFollowedResponse) XXX_Merge(src proto.Message)
- func (m *ListFollowedResponse) XXX_Size() int
- func (m *ListFollowedResponse) XXX_Unmarshal(b []byte) error
- type ListUserPostsRequest
- func (*ListUserPostsRequest) Descriptor() ([]byte, []int)
- func (m *ListUserPostsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListUserPostsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListUserPostsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListUserPostsRequest) ProtoMessage()
- func (m *ListUserPostsRequest) Reset()
- func (m *ListUserPostsRequest) Size() (n int)
- func (m *ListUserPostsRequest) String() string
- func (m *ListUserPostsRequest) Unmarshal(dAtA []byte) error
- func (m *ListUserPostsRequest) XXX_DiscardUnknown()
- func (m *ListUserPostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListUserPostsRequest) XXX_Merge(src proto.Message)
- func (m *ListUserPostsRequest) XXX_Size() int
- func (m *ListUserPostsRequest) XXX_Unmarshal(b []byte) error
- type ListUserPostsResponse
- func (*ListUserPostsResponse) Descriptor() ([]byte, []int)
- func (m *ListUserPostsResponse) GetPagination() query.PageResponse
- func (m *ListUserPostsResponse) GetPosts() []Post
- func (m *ListUserPostsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListUserPostsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListUserPostsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListUserPostsResponse) ProtoMessage()
- func (m *ListUserPostsResponse) Reset()
- func (m *ListUserPostsResponse) Size() (n int)
- func (m *ListUserPostsResponse) String() string
- func (m *ListUserPostsResponse) Unmarshal(dAtA []byte) error
- func (m *ListUserPostsResponse) XXX_DiscardUnknown()
- func (m *ListUserPostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListUserPostsResponse) XXX_Merge(src proto.Message)
- func (m *ListUserPostsResponse) XXX_Size() int
- func (m *ListUserPostsResponse) XXX_Unmarshal(b []byte) error
- type ModeratorsRequest
- func (*ModeratorsRequest) Descriptor() ([]byte, []int)
- func (m *ModeratorsRequest) Marshal() (dAtA []byte, err error)
- func (m *ModeratorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ModeratorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModeratorsRequest) ProtoMessage()
- func (m *ModeratorsRequest) Reset()
- func (m *ModeratorsRequest) Size() (n int)
- func (m *ModeratorsRequest) String() string
- func (m *ModeratorsRequest) Unmarshal(dAtA []byte) error
- func (m *ModeratorsRequest) XXX_DiscardUnknown()
- func (m *ModeratorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModeratorsRequest) XXX_Merge(src proto.Message)
- func (m *ModeratorsRequest) XXX_Size() int
- func (m *ModeratorsRequest) XXX_Unmarshal(b []byte) error
- type ModeratorsResponse
- func (*ModeratorsResponse) Descriptor() ([]byte, []int)
- func (m *ModeratorsResponse) GetModerators() []string
- func (m *ModeratorsResponse) Marshal() (dAtA []byte, err error)
- func (m *ModeratorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ModeratorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModeratorsResponse) ProtoMessage()
- func (m *ModeratorsResponse) Reset()
- func (m *ModeratorsResponse) Size() (n int)
- func (m *ModeratorsResponse) String() string
- func (m *ModeratorsResponse) Unmarshal(dAtA []byte) error
- func (m *ModeratorsResponse) XXX_DiscardUnknown()
- func (m *ModeratorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModeratorsResponse) XXX_Merge(src proto.Message)
- func (m *ModeratorsResponse) XXX_Size() int
- func (m *ModeratorsResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePost
- func (*MsgCreatePost) Descriptor() ([]byte, []int)
- func (m MsgCreatePost) GetSignBytes() []byte
- func (m MsgCreatePost) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePost) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePost) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePost) ProtoMessage()
- func (m *MsgCreatePost) Reset()
- func (m MsgCreatePost) Route() string
- func (m *MsgCreatePost) Size() (n int)
- func (m *MsgCreatePost) String() string
- func (m MsgCreatePost) Type() string
- func (m *MsgCreatePost) Unmarshal(dAtA []byte) error
- func (m MsgCreatePost) ValidateBasic() error
- func (m *MsgCreatePost) XXX_DiscardUnknown()
- func (m *MsgCreatePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePost) XXX_Merge(src proto.Message)
- func (m *MsgCreatePost) XXX_Size() int
- func (m *MsgCreatePost) XXX_Unmarshal(b []byte) error
- type MsgCreatePostResponse
- func (*MsgCreatePostResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePostResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePostResponse) ProtoMessage()
- func (m *MsgCreatePostResponse) Reset()
- func (m *MsgCreatePostResponse) Size() (n int)
- func (m *MsgCreatePostResponse) String() string
- func (m *MsgCreatePostResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePostResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePostResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePostResponse) XXX_Size() int
- func (m *MsgCreatePostResponse) XXX_Unmarshal(b []byte) error
- type MsgDeletePost
- func (*MsgDeletePost) Descriptor() ([]byte, []int)
- func (m MsgDeletePost) GetSignBytes() []byte
- func (m MsgDeletePost) GetSigners() []sdk.AccAddress
- func (m *MsgDeletePost) Marshal() (dAtA []byte, err error)
- func (m *MsgDeletePost) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeletePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeletePost) ProtoMessage()
- func (m *MsgDeletePost) Reset()
- func (m MsgDeletePost) Route() string
- func (m *MsgDeletePost) Size() (n int)
- func (m *MsgDeletePost) String() string
- func (m MsgDeletePost) Type() string
- func (m *MsgDeletePost) Unmarshal(dAtA []byte) error
- func (m MsgDeletePost) ValidateBasic() error
- func (m *MsgDeletePost) XXX_DiscardUnknown()
- func (m *MsgDeletePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeletePost) XXX_Merge(src proto.Message)
- func (m *MsgDeletePost) XXX_Size() int
- func (m *MsgDeletePost) XXX_Unmarshal(b []byte) error
- type MsgDeletePostResponse
- func (*MsgDeletePostResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeletePostResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeletePostResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeletePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeletePostResponse) ProtoMessage()
- func (m *MsgDeletePostResponse) Reset()
- func (m *MsgDeletePostResponse) Size() (n int)
- func (m *MsgDeletePostResponse) String() string
- func (m *MsgDeletePostResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeletePostResponse) XXX_DiscardUnknown()
- func (m *MsgDeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeletePostResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeletePostResponse) XXX_Size() int
- func (m *MsgDeletePostResponse) XXX_Unmarshal(b []byte) error
- type MsgFollow
- func (*MsgFollow) Descriptor() ([]byte, []int)
- func (m MsgFollow) GetSignBytes() []byte
- func (m MsgFollow) GetSigners() []sdk.AccAddress
- func (m *MsgFollow) Marshal() (dAtA []byte, err error)
- func (m *MsgFollow) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFollow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFollow) ProtoMessage()
- func (m *MsgFollow) Reset()
- func (m MsgFollow) Route() string
- func (m *MsgFollow) Size() (n int)
- func (m *MsgFollow) String() string
- func (m MsgFollow) Type() string
- func (m *MsgFollow) Unmarshal(dAtA []byte) error
- func (m MsgFollow) ValidateBasic() error
- func (m *MsgFollow) XXX_DiscardUnknown()
- func (m *MsgFollow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFollow) XXX_Merge(src proto.Message)
- func (m *MsgFollow) XXX_Size() int
- func (m *MsgFollow) XXX_Unmarshal(b []byte) error
- type MsgFollowResponse
- func (*MsgFollowResponse) Descriptor() ([]byte, []int)
- func (m *MsgFollowResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFollowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFollowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFollowResponse) ProtoMessage()
- func (m *MsgFollowResponse) Reset()
- func (m *MsgFollowResponse) Size() (n int)
- func (m *MsgFollowResponse) String() string
- func (m *MsgFollowResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFollowResponse) XXX_DiscardUnknown()
- func (m *MsgFollowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFollowResponse) XXX_Merge(src proto.Message)
- func (m *MsgFollowResponse) XXX_Size() int
- func (m *MsgFollowResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetLike
- func (*MsgSetLike) Descriptor() ([]byte, []int)
- func (m MsgSetLike) GetSignBytes() []byte
- func (m MsgSetLike) GetSigners() []sdk.AccAddress
- func (m *MsgSetLike) Marshal() (dAtA []byte, err error)
- func (m *MsgSetLike) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetLike) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetLike) ProtoMessage()
- func (m *MsgSetLike) Reset()
- func (m MsgSetLike) Route() string
- func (m *MsgSetLike) Size() (n int)
- func (m *MsgSetLike) String() string
- func (m MsgSetLike) Type() string
- func (m *MsgSetLike) Unmarshal(dAtA []byte) error
- func (m MsgSetLike) ValidateBasic() error
- func (m *MsgSetLike) XXX_DiscardUnknown()
- func (m *MsgSetLike) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetLike) XXX_Merge(src proto.Message)
- func (m *MsgSetLike) XXX_Size() int
- func (m *MsgSetLike) XXX_Unmarshal(b []byte) error
- type MsgSetLikeResponse
- func (*MsgSetLikeResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetLikeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetLikeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetLikeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetLikeResponse) ProtoMessage()
- func (m *MsgSetLikeResponse) Reset()
- func (m *MsgSetLikeResponse) Size() (n int)
- func (m *MsgSetLikeResponse) String() string
- func (m *MsgSetLikeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetLikeResponse) XXX_DiscardUnknown()
- func (m *MsgSetLikeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetLikeResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetLikeResponse) XXX_Size() int
- func (m *MsgSetLikeResponse) XXX_Unmarshal(b []byte) error
- type MsgUnfollow
- func (*MsgUnfollow) Descriptor() ([]byte, []int)
- func (m MsgUnfollow) GetSignBytes() []byte
- func (m MsgUnfollow) GetSigners() []sdk.AccAddress
- func (m *MsgUnfollow) Marshal() (dAtA []byte, err error)
- func (m *MsgUnfollow) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnfollow) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnfollow) ProtoMessage()
- func (m *MsgUnfollow) Reset()
- func (m MsgUnfollow) Route() string
- func (m *MsgUnfollow) Size() (n int)
- func (m *MsgUnfollow) String() string
- func (m MsgUnfollow) Type() string
- func (m *MsgUnfollow) Unmarshal(dAtA []byte) error
- func (m MsgUnfollow) ValidateBasic() error
- func (m *MsgUnfollow) XXX_DiscardUnknown()
- func (m *MsgUnfollow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnfollow) XXX_Merge(src proto.Message)
- func (m *MsgUnfollow) XXX_Size() int
- func (m *MsgUnfollow) XXX_Unmarshal(b []byte) error
- type MsgUnfollowResponse
- func (*MsgUnfollowResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnfollowResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnfollowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnfollowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnfollowResponse) ProtoMessage()
- func (m *MsgUnfollowResponse) Reset()
- func (m *MsgUnfollowResponse) Size() (n int)
- func (m *MsgUnfollowResponse) String() string
- func (m *MsgUnfollowResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnfollowResponse) XXX_DiscardUnknown()
- func (m *MsgUnfollowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnfollowResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnfollowResponse) XXX_Size() int
- func (m *MsgUnfollowResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetFixedGas() FixedGasParams
- func (m *Params) GetModerators() []string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Post
- func (p Post) Address() string
- func (*Post) Descriptor() ([]byte, []int)
- func (m *Post) GetCategory() Category
- func (m *Post) GetOwner() string
- func (m *Post) GetPreviewImage() string
- func (m *Post) GetText() string
- func (m *Post) GetTitle() string
- func (m *Post) GetUuid() string
- func (m *Post) Marshal() (dAtA []byte, err error)
- func (m *Post) MarshalTo(dAtA []byte) (int, error)
- func (m *Post) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Post) ProtoMessage()
- func (m *Post) Reset()
- func (m *Post) Size() (n int)
- func (m *Post) String() string
- func (m *Post) Unmarshal(dAtA []byte) error
- func (p Post) Validate() error
- func (m *Post) XXX_DiscardUnknown()
- func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Post) XXX_Merge(src proto.Message)
- func (m *Post) XXX_Size() int
- func (m *Post) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type TokenKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreatePost(ctx context.Context, req *MsgCreatePost) (*MsgCreatePostResponse, error)
- func (*UnimplementedMsgServer) DeletePost(ctx context.Context, req *MsgDeletePost) (*MsgDeletePostResponse, error)
- func (*UnimplementedMsgServer) Follow(ctx context.Context, req *MsgFollow) (*MsgFollowResponse, error)
- func (*UnimplementedMsgServer) SetLike(ctx context.Context, req *MsgSetLike) (*MsgSetLikeResponse, error)
- func (*UnimplementedMsgServer) Unfollow(ctx context.Context, req *MsgUnfollow) (*MsgUnfollowResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetPost(ctx context.Context, req *GetPostRequest) (*GetPostResponse, error)
- func (*UnimplementedQueryServer) ListFollowed(ctx context.Context, req *ListFollowedRequest) (*ListFollowedResponse, error)
- func (*UnimplementedQueryServer) ListUserPosts(ctx context.Context, req *ListUserPostsRequest) (*ListUserPostsResponse, error)
- func (*UnimplementedQueryServer) Moderators(ctx context.Context, req *ModeratorsRequest) (*ModeratorsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "community" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const (
DefaultParamspace = ModuleName
)
Variables ¶
var ( ErrInvalidLengthCommunity = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommunity = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCommunity = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( PostPrefix = []byte{0x01} // prefix for keys that store posts LikePrefix = []byte{0x02} // prefix for keys that store likes FollowingPrefix = []byte{0x03} // prefix for keys that store followings )
KVStore keys
var ( KeyModerators = []byte("Moderators") KeyFixedGas = []byte("FixedGas") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var Category_name = map[int32]string{
0: "CATEGORY_UNDEFINED",
1: "CATEGORY_WORLD_NEWS",
2: "CATEGORY_TRAVEL_AND_TOURISM",
3: "CATEGORY_SCIENCE_AND_TECHNOLOGY",
4: "CATEGORY_STRANGE_WORLD",
5: "CATEGORY_ARTS_AND_ENTERTAINMENT",
6: "CATEGORY_WRITERS_AND_WRITING",
7: "CATEGORY_HEALTH_AND_FITNESS",
8: "CATEGORY_CRYPTO_AND_BLOCKCHAIN",
9: "CATEGORY_SPORTS",
}
var Category_value = map[string]int32{
"CATEGORY_UNDEFINED": 0,
"CATEGORY_WORLD_NEWS": 1,
"CATEGORY_TRAVEL_AND_TOURISM": 2,
"CATEGORY_SCIENCE_AND_TECHNOLOGY": 3,
"CATEGORY_STRANGE_WORLD": 4,
"CATEGORY_ARTS_AND_ENTERTAINMENT": 5,
"CATEGORY_WRITERS_AND_WRITING": 6,
"CATEGORY_HEALTH_AND_FITNESS": 7,
"CATEGORY_CRYPTO_AND_BLOCKCHAIN": 8,
"CATEGORY_SPORTS": 9,
}
var (
DefaultModerators = []string(nil)
)
var LikeWeight_name = map[int32]string{
0: "LIKE_WEIGHT_ZERO",
1: "LIKE_WEIGHT_UP",
-1: "LIKE_WEIGHT_DOWN",
}
var LikeWeight_value = map[string]int32{
"LIKE_WEIGHT_ZERO": 0,
"LIKE_WEIGHT_UP": 1,
"LIKE_WEIGHT_DOWN": -1,
}
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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)
func ValidateFollowers ¶
Types ¶
type Category ¶
type Category int32
const ( Category_CATEGORY_UNDEFINED Category = 0 Category_CATEGORY_WORLD_NEWS Category = 1 Category_CATEGORY_TRAVEL_AND_TOURISM Category = 2 Category_CATEGORY_SCIENCE_AND_TECHNOLOGY Category = 3 Category_CATEGORY_STRANGE_WORLD Category = 4 Category_CATEGORY_ARTS_AND_ENTERTAINMENT Category = 5 Category_CATEGORY_WRITERS_AND_WRITING Category = 6 Category_CATEGORY_HEALTH_AND_FITNESS Category = 7 Category_CATEGORY_CRYPTO_AND_BLOCKCHAIN Category = 8 Category_CATEGORY_SPORTS Category = 9 )
func (Category) EnumDescriptor ¶
type FixedGasParams ¶
type FixedGasParams struct { CreatePost uint64 `protobuf:"varint,1,opt,name=create_post,json=createPost,proto3" json:"create_post,omitempty"` DeletePost uint64 `protobuf:"varint,2,opt,name=delete_post,json=deletePost,proto3" json:"delete_post,omitempty"` SetLike uint64 `protobuf:"varint,3,opt,name=set_like,json=setLike,proto3" json:"set_like,omitempty"` Follow uint64 `protobuf:"varint,4,opt,name=follow,proto3" json:"follow,omitempty"` Unfollow uint64 `protobuf:"varint,5,opt,name=unfollow,proto3" json:"unfollow,omitempty"` }
func DefaultFixedGasParams ¶
func DefaultFixedGasParams() FixedGasParams
func NewFixedGasParams ¶
func NewFixedGasParams(createPost, deletePost, setLike, follow, unfollow sdk.Gas) FixedGasParams
func (*FixedGasParams) Descriptor ¶
func (*FixedGasParams) Descriptor() ([]byte, []int)
func (*FixedGasParams) GetCreatePost ¶
func (m *FixedGasParams) GetCreatePost() uint64
func (*FixedGasParams) GetDeletePost ¶
func (m *FixedGasParams) GetDeletePost() uint64
func (*FixedGasParams) GetFollow ¶
func (m *FixedGasParams) GetFollow() uint64
func (*FixedGasParams) GetSetLike ¶
func (m *FixedGasParams) GetSetLike() uint64
func (*FixedGasParams) GetUnfollow ¶
func (m *FixedGasParams) GetUnfollow() uint64
func (*FixedGasParams) Marshal ¶
func (m *FixedGasParams) Marshal() (dAtA []byte, err error)
func (*FixedGasParams) MarshalToSizedBuffer ¶
func (m *FixedGasParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FixedGasParams) ProtoMessage ¶
func (*FixedGasParams) ProtoMessage()
func (*FixedGasParams) Reset ¶
func (m *FixedGasParams) Reset()
func (*FixedGasParams) Size ¶
func (m *FixedGasParams) Size() (n int)
func (*FixedGasParams) String ¶
func (m *FixedGasParams) String() string
func (*FixedGasParams) Unmarshal ¶
func (m *FixedGasParams) Unmarshal(dAtA []byte) error
func (*FixedGasParams) XXX_DiscardUnknown ¶
func (m *FixedGasParams) XXX_DiscardUnknown()
func (*FixedGasParams) XXX_Marshal ¶
func (m *FixedGasParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FixedGasParams) XXX_Merge ¶
func (m *FixedGasParams) XXX_Merge(src proto.Message)
func (*FixedGasParams) XXX_Size ¶
func (m *FixedGasParams) XXX_Size() int
func (*FixedGasParams) XXX_Unmarshal ¶
func (m *FixedGasParams) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` Posts []Post `protobuf:"bytes,2,rep,name=posts,proto3" json:"posts"` Likes []Like `protobuf:"bytes,3,rep,name=likes,proto3" json:"likes"` Following map[string]GenesisState_AddressList `` /* 149-byte string literal not displayed */ }
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFollowing ¶
func (m *GenesisState) GetFollowing() map[string]GenesisState_AddressList
func (*GenesisState) GetLikes ¶
func (m *GenesisState) GetLikes() []Like
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() *Params
func (*GenesisState) GetPosts ¶
func (m *GenesisState) GetPosts() []Post
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GenesisState_AddressList ¶
type GenesisState_AddressList struct {
Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
}
func (*GenesisState_AddressList) Descriptor ¶
func (*GenesisState_AddressList) Descriptor() ([]byte, []int)
func (*GenesisState_AddressList) GetAddress ¶
func (m *GenesisState_AddressList) GetAddress() []string
func (*GenesisState_AddressList) Marshal ¶
func (m *GenesisState_AddressList) Marshal() (dAtA []byte, err error)
func (*GenesisState_AddressList) MarshalTo ¶
func (m *GenesisState_AddressList) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState_AddressList) MarshalToSizedBuffer ¶
func (m *GenesisState_AddressList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState_AddressList) ProtoMessage ¶
func (*GenesisState_AddressList) ProtoMessage()
func (*GenesisState_AddressList) Reset ¶
func (m *GenesisState_AddressList) Reset()
func (*GenesisState_AddressList) Size ¶
func (m *GenesisState_AddressList) Size() (n int)
func (*GenesisState_AddressList) String ¶
func (m *GenesisState_AddressList) String() string
func (*GenesisState_AddressList) Unmarshal ¶
func (m *GenesisState_AddressList) Unmarshal(dAtA []byte) error
func (*GenesisState_AddressList) XXX_DiscardUnknown ¶
func (m *GenesisState_AddressList) XXX_DiscardUnknown()
func (*GenesisState_AddressList) XXX_Marshal ¶
func (m *GenesisState_AddressList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState_AddressList) XXX_Merge ¶
func (m *GenesisState_AddressList) XXX_Merge(src proto.Message)
func (*GenesisState_AddressList) XXX_Size ¶
func (m *GenesisState_AddressList) XXX_Size() int
func (*GenesisState_AddressList) XXX_Unmarshal ¶
func (m *GenesisState_AddressList) XXX_Unmarshal(b []byte) error
type GetPostRequest ¶
type GetPostRequest struct { PostOwner string `protobuf:"bytes,1,opt,name=post_owner,json=postOwner,proto3" json:"post_owner,omitempty"` PostUuid string `protobuf:"bytes,2,opt,name=post_uuid,json=postUuid,proto3" json:"post_uuid,omitempty"` }
func (*GetPostRequest) Descriptor ¶
func (*GetPostRequest) Descriptor() ([]byte, []int)
func (*GetPostRequest) Marshal ¶
func (m *GetPostRequest) Marshal() (dAtA []byte, err error)
func (*GetPostRequest) MarshalToSizedBuffer ¶
func (m *GetPostRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetPostRequest) ProtoMessage ¶
func (*GetPostRequest) ProtoMessage()
func (*GetPostRequest) Reset ¶
func (m *GetPostRequest) Reset()
func (*GetPostRequest) Size ¶
func (m *GetPostRequest) Size() (n int)
func (*GetPostRequest) String ¶
func (m *GetPostRequest) String() string
func (*GetPostRequest) Unmarshal ¶
func (m *GetPostRequest) Unmarshal(dAtA []byte) error
func (*GetPostRequest) XXX_DiscardUnknown ¶
func (m *GetPostRequest) XXX_DiscardUnknown()
func (*GetPostRequest) XXX_Marshal ¶
func (m *GetPostRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPostRequest) XXX_Merge ¶
func (m *GetPostRequest) XXX_Merge(src proto.Message)
func (*GetPostRequest) XXX_Size ¶
func (m *GetPostRequest) XXX_Size() int
func (*GetPostRequest) XXX_Unmarshal ¶
func (m *GetPostRequest) XXX_Unmarshal(b []byte) error
type GetPostResponse ¶
type GetPostResponse struct {
Post Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post"`
}
func (*GetPostResponse) Descriptor ¶
func (*GetPostResponse) Descriptor() ([]byte, []int)
func (*GetPostResponse) GetPost ¶
func (m *GetPostResponse) GetPost() Post
func (*GetPostResponse) Marshal ¶
func (m *GetPostResponse) Marshal() (dAtA []byte, err error)
func (*GetPostResponse) MarshalToSizedBuffer ¶
func (m *GetPostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetPostResponse) ProtoMessage ¶
func (*GetPostResponse) ProtoMessage()
func (*GetPostResponse) Reset ¶
func (m *GetPostResponse) Reset()
func (*GetPostResponse) Size ¶
func (m *GetPostResponse) Size() (n int)
func (*GetPostResponse) String ¶
func (m *GetPostResponse) String() string
func (*GetPostResponse) Unmarshal ¶
func (m *GetPostResponse) Unmarshal(dAtA []byte) error
func (*GetPostResponse) XXX_DiscardUnknown ¶
func (m *GetPostResponse) XXX_DiscardUnknown()
func (*GetPostResponse) XXX_Marshal ¶
func (m *GetPostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPostResponse) XXX_Merge ¶
func (m *GetPostResponse) XXX_Merge(src proto.Message)
func (*GetPostResponse) XXX_Size ¶
func (m *GetPostResponse) XXX_Size() int
func (*GetPostResponse) XXX_Unmarshal ¶
func (m *GetPostResponse) XXX_Unmarshal(b []byte) error
type Like ¶
type Like struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` PostOwner string `protobuf:"bytes,2,opt,name=post_owner,json=postOwner,proto3" json:"post_owner,omitempty"` PostUuid string `protobuf:"bytes,3,opt,name=post_uuid,json=postUuid,proto3" json:"post_uuid,omitempty"` Weight LikeWeight `protobuf:"varint,4,opt,name=weight,proto3,enum=community.LikeWeight" json:"weight,omitempty"` }
func (*Like) Descriptor ¶
func (*Like) GetPostOwner ¶
func (*Like) GetPostUuid ¶
func (*Like) GetWeight ¶
func (m *Like) GetWeight() LikeWeight
func (*Like) ProtoMessage ¶
func (*Like) ProtoMessage()
func (*Like) XXX_DiscardUnknown ¶
func (m *Like) XXX_DiscardUnknown()
func (*Like) XXX_Unmarshal ¶
type LikeWeight ¶
type LikeWeight int32
const ( LikeWeight_LIKE_WEIGHT_ZERO LikeWeight = 0 LikeWeight_LIKE_WEIGHT_UP LikeWeight = 1 LikeWeight_LIKE_WEIGHT_DOWN LikeWeight = -1 )
func (LikeWeight) EnumDescriptor ¶
func (LikeWeight) EnumDescriptor() ([]byte, []int)
func (LikeWeight) String ¶
func (x LikeWeight) String() string
type ListFollowedRequest ¶
type ListFollowedRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Pagination query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` }
func (*ListFollowedRequest) Descriptor ¶
func (*ListFollowedRequest) Descriptor() ([]byte, []int)
func (*ListFollowedRequest) Marshal ¶
func (m *ListFollowedRequest) Marshal() (dAtA []byte, err error)
func (*ListFollowedRequest) MarshalTo ¶
func (m *ListFollowedRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListFollowedRequest) MarshalToSizedBuffer ¶
func (m *ListFollowedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListFollowedRequest) ProtoMessage ¶
func (*ListFollowedRequest) ProtoMessage()
func (*ListFollowedRequest) Reset ¶
func (m *ListFollowedRequest) Reset()
func (*ListFollowedRequest) Size ¶
func (m *ListFollowedRequest) Size() (n int)
func (*ListFollowedRequest) String ¶
func (m *ListFollowedRequest) String() string
func (*ListFollowedRequest) Unmarshal ¶
func (m *ListFollowedRequest) Unmarshal(dAtA []byte) error
func (*ListFollowedRequest) XXX_DiscardUnknown ¶
func (m *ListFollowedRequest) XXX_DiscardUnknown()
func (*ListFollowedRequest) XXX_Marshal ¶
func (m *ListFollowedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFollowedRequest) XXX_Merge ¶
func (m *ListFollowedRequest) XXX_Merge(src proto.Message)
func (*ListFollowedRequest) XXX_Size ¶
func (m *ListFollowedRequest) XXX_Size() int
func (*ListFollowedRequest) XXX_Unmarshal ¶
func (m *ListFollowedRequest) XXX_Unmarshal(b []byte) error
type ListFollowedResponse ¶
type ListFollowedResponse struct { Followed []string `protobuf:"bytes,1,rep,name=followed,proto3" json:"followed,omitempty"` Pagination query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` }
func (*ListFollowedResponse) Descriptor ¶
func (*ListFollowedResponse) Descriptor() ([]byte, []int)
func (*ListFollowedResponse) GetFollowed ¶
func (m *ListFollowedResponse) GetFollowed() []string
func (*ListFollowedResponse) GetPagination ¶
func (m *ListFollowedResponse) GetPagination() query.PageResponse
func (*ListFollowedResponse) Marshal ¶
func (m *ListFollowedResponse) Marshal() (dAtA []byte, err error)
func (*ListFollowedResponse) MarshalTo ¶
func (m *ListFollowedResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListFollowedResponse) MarshalToSizedBuffer ¶
func (m *ListFollowedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListFollowedResponse) ProtoMessage ¶
func (*ListFollowedResponse) ProtoMessage()
func (*ListFollowedResponse) Reset ¶
func (m *ListFollowedResponse) Reset()
func (*ListFollowedResponse) Size ¶
func (m *ListFollowedResponse) Size() (n int)
func (*ListFollowedResponse) String ¶
func (m *ListFollowedResponse) String() string
func (*ListFollowedResponse) Unmarshal ¶
func (m *ListFollowedResponse) Unmarshal(dAtA []byte) error
func (*ListFollowedResponse) XXX_DiscardUnknown ¶
func (m *ListFollowedResponse) XXX_DiscardUnknown()
func (*ListFollowedResponse) XXX_Marshal ¶
func (m *ListFollowedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListFollowedResponse) XXX_Merge ¶
func (m *ListFollowedResponse) XXX_Merge(src proto.Message)
func (*ListFollowedResponse) XXX_Size ¶
func (m *ListFollowedResponse) XXX_Size() int
func (*ListFollowedResponse) XXX_Unmarshal ¶
func (m *ListFollowedResponse) XXX_Unmarshal(b []byte) error
type ListUserPostsRequest ¶
type ListUserPostsRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Pagination query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` }
func (*ListUserPostsRequest) Descriptor ¶
func (*ListUserPostsRequest) Descriptor() ([]byte, []int)
func (*ListUserPostsRequest) Marshal ¶
func (m *ListUserPostsRequest) Marshal() (dAtA []byte, err error)
func (*ListUserPostsRequest) MarshalTo ¶
func (m *ListUserPostsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListUserPostsRequest) MarshalToSizedBuffer ¶
func (m *ListUserPostsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListUserPostsRequest) ProtoMessage ¶
func (*ListUserPostsRequest) ProtoMessage()
func (*ListUserPostsRequest) Reset ¶
func (m *ListUserPostsRequest) Reset()
func (*ListUserPostsRequest) Size ¶
func (m *ListUserPostsRequest) Size() (n int)
func (*ListUserPostsRequest) String ¶
func (m *ListUserPostsRequest) String() string
func (*ListUserPostsRequest) Unmarshal ¶
func (m *ListUserPostsRequest) Unmarshal(dAtA []byte) error
func (*ListUserPostsRequest) XXX_DiscardUnknown ¶
func (m *ListUserPostsRequest) XXX_DiscardUnknown()
func (*ListUserPostsRequest) XXX_Marshal ¶
func (m *ListUserPostsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListUserPostsRequest) XXX_Merge ¶
func (m *ListUserPostsRequest) XXX_Merge(src proto.Message)
func (*ListUserPostsRequest) XXX_Size ¶
func (m *ListUserPostsRequest) XXX_Size() int
func (*ListUserPostsRequest) XXX_Unmarshal ¶
func (m *ListUserPostsRequest) XXX_Unmarshal(b []byte) error
type ListUserPostsResponse ¶
type ListUserPostsResponse struct { Posts []Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts"` Pagination query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"` }
func (*ListUserPostsResponse) Descriptor ¶
func (*ListUserPostsResponse) Descriptor() ([]byte, []int)
func (*ListUserPostsResponse) GetPagination ¶
func (m *ListUserPostsResponse) GetPagination() query.PageResponse
func (*ListUserPostsResponse) GetPosts ¶
func (m *ListUserPostsResponse) GetPosts() []Post
func (*ListUserPostsResponse) Marshal ¶
func (m *ListUserPostsResponse) Marshal() (dAtA []byte, err error)
func (*ListUserPostsResponse) MarshalTo ¶
func (m *ListUserPostsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListUserPostsResponse) MarshalToSizedBuffer ¶
func (m *ListUserPostsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListUserPostsResponse) ProtoMessage ¶
func (*ListUserPostsResponse) ProtoMessage()
func (*ListUserPostsResponse) Reset ¶
func (m *ListUserPostsResponse) Reset()
func (*ListUserPostsResponse) Size ¶
func (m *ListUserPostsResponse) Size() (n int)
func (*ListUserPostsResponse) String ¶
func (m *ListUserPostsResponse) String() string
func (*ListUserPostsResponse) Unmarshal ¶
func (m *ListUserPostsResponse) Unmarshal(dAtA []byte) error
func (*ListUserPostsResponse) XXX_DiscardUnknown ¶
func (m *ListUserPostsResponse) XXX_DiscardUnknown()
func (*ListUserPostsResponse) XXX_Marshal ¶
func (m *ListUserPostsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListUserPostsResponse) XXX_Merge ¶
func (m *ListUserPostsResponse) XXX_Merge(src proto.Message)
func (*ListUserPostsResponse) XXX_Size ¶
func (m *ListUserPostsResponse) XXX_Size() int
func (*ListUserPostsResponse) XXX_Unmarshal ¶
func (m *ListUserPostsResponse) XXX_Unmarshal(b []byte) error
type ModeratorsRequest ¶
type ModeratorsRequest struct { }
func (*ModeratorsRequest) Descriptor ¶
func (*ModeratorsRequest) Descriptor() ([]byte, []int)
func (*ModeratorsRequest) Marshal ¶
func (m *ModeratorsRequest) Marshal() (dAtA []byte, err error)
func (*ModeratorsRequest) MarshalTo ¶
func (m *ModeratorsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ModeratorsRequest) MarshalToSizedBuffer ¶
func (m *ModeratorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModeratorsRequest) ProtoMessage ¶
func (*ModeratorsRequest) ProtoMessage()
func (*ModeratorsRequest) Reset ¶
func (m *ModeratorsRequest) Reset()
func (*ModeratorsRequest) Size ¶
func (m *ModeratorsRequest) Size() (n int)
func (*ModeratorsRequest) String ¶
func (m *ModeratorsRequest) String() string
func (*ModeratorsRequest) Unmarshal ¶
func (m *ModeratorsRequest) Unmarshal(dAtA []byte) error
func (*ModeratorsRequest) XXX_DiscardUnknown ¶
func (m *ModeratorsRequest) XXX_DiscardUnknown()
func (*ModeratorsRequest) XXX_Marshal ¶
func (m *ModeratorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModeratorsRequest) XXX_Merge ¶
func (m *ModeratorsRequest) XXX_Merge(src proto.Message)
func (*ModeratorsRequest) XXX_Size ¶
func (m *ModeratorsRequest) XXX_Size() int
func (*ModeratorsRequest) XXX_Unmarshal ¶
func (m *ModeratorsRequest) XXX_Unmarshal(b []byte) error
type ModeratorsResponse ¶
type ModeratorsResponse struct {
Moderators []string `protobuf:"bytes,1,rep,name=moderators,proto3" json:"moderators,omitempty"`
}
func (*ModeratorsResponse) Descriptor ¶
func (*ModeratorsResponse) Descriptor() ([]byte, []int)
func (*ModeratorsResponse) GetModerators ¶
func (m *ModeratorsResponse) GetModerators() []string
func (*ModeratorsResponse) Marshal ¶
func (m *ModeratorsResponse) Marshal() (dAtA []byte, err error)
func (*ModeratorsResponse) MarshalTo ¶
func (m *ModeratorsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ModeratorsResponse) MarshalToSizedBuffer ¶
func (m *ModeratorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModeratorsResponse) ProtoMessage ¶
func (*ModeratorsResponse) ProtoMessage()
func (*ModeratorsResponse) Reset ¶
func (m *ModeratorsResponse) Reset()
func (*ModeratorsResponse) Size ¶
func (m *ModeratorsResponse) Size() (n int)
func (*ModeratorsResponse) String ¶
func (m *ModeratorsResponse) String() string
func (*ModeratorsResponse) Unmarshal ¶
func (m *ModeratorsResponse) Unmarshal(dAtA []byte) error
func (*ModeratorsResponse) XXX_DiscardUnknown ¶
func (m *ModeratorsResponse) XXX_DiscardUnknown()
func (*ModeratorsResponse) XXX_Marshal ¶
func (m *ModeratorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModeratorsResponse) XXX_Merge ¶
func (m *ModeratorsResponse) XXX_Merge(src proto.Message)
func (*ModeratorsResponse) XXX_Size ¶
func (m *ModeratorsResponse) XXX_Size() int
func (*ModeratorsResponse) XXX_Unmarshal ¶
func (m *ModeratorsResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreatePost(ctx context.Context, in *MsgCreatePost, opts ...grpc.CallOption) (*MsgCreatePostResponse, error) DeletePost(ctx context.Context, in *MsgDeletePost, opts ...grpc.CallOption) (*MsgDeletePostResponse, error) SetLike(ctx context.Context, in *MsgSetLike, opts ...grpc.CallOption) (*MsgSetLikeResponse, error) Follow(ctx context.Context, in *MsgFollow, opts ...grpc.CallOption) (*MsgFollowResponse, error) Unfollow(ctx context.Context, in *MsgUnfollow, opts ...grpc.CallOption) (*MsgUnfollowResponse, 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 MsgCreatePost ¶
type MsgCreatePost struct {
Post Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post"`
}
func NewMsgCreatePost ¶
func NewMsgCreatePost( title string, category Category, previewImage string, text string, owner sdk.AccAddress, ) MsgCreatePost
NewMsgCreatePost is a constructor function for MsgCreatePost
func (*MsgCreatePost) Descriptor ¶
func (*MsgCreatePost) Descriptor() ([]byte, []int)
func (MsgCreatePost) GetSignBytes ¶
func (m MsgCreatePost) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreatePost) GetSigners ¶
func (m MsgCreatePost) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCreatePost) Marshal ¶
func (m *MsgCreatePost) Marshal() (dAtA []byte, err error)
func (*MsgCreatePost) MarshalToSizedBuffer ¶
func (m *MsgCreatePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePost) ProtoMessage ¶
func (*MsgCreatePost) ProtoMessage()
func (*MsgCreatePost) Reset ¶
func (m *MsgCreatePost) Reset()
func (MsgCreatePost) Route ¶
func (m MsgCreatePost) Route() string
Route should return the name of the module
func (*MsgCreatePost) Size ¶
func (m *MsgCreatePost) Size() (n int)
func (*MsgCreatePost) String ¶
func (m *MsgCreatePost) String() string
func (*MsgCreatePost) Unmarshal ¶
func (m *MsgCreatePost) Unmarshal(dAtA []byte) error
func (MsgCreatePost) ValidateBasic ¶
func (m MsgCreatePost) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgCreatePost) XXX_DiscardUnknown ¶
func (m *MsgCreatePost) XXX_DiscardUnknown()
func (*MsgCreatePost) XXX_Marshal ¶
func (m *MsgCreatePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePost) XXX_Merge ¶
func (m *MsgCreatePost) XXX_Merge(src proto.Message)
func (*MsgCreatePost) XXX_Size ¶
func (m *MsgCreatePost) XXX_Size() int
func (*MsgCreatePost) XXX_Unmarshal ¶
func (m *MsgCreatePost) XXX_Unmarshal(b []byte) error
type MsgCreatePostResponse ¶
type MsgCreatePostResponse struct { }
func (*MsgCreatePostResponse) Descriptor ¶
func (*MsgCreatePostResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePostResponse) Marshal ¶
func (m *MsgCreatePostResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePostResponse) MarshalTo ¶
func (m *MsgCreatePostResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePostResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePostResponse) ProtoMessage ¶
func (*MsgCreatePostResponse) ProtoMessage()
func (*MsgCreatePostResponse) Reset ¶
func (m *MsgCreatePostResponse) Reset()
func (*MsgCreatePostResponse) Size ¶
func (m *MsgCreatePostResponse) Size() (n int)
func (*MsgCreatePostResponse) String ¶
func (m *MsgCreatePostResponse) String() string
func (*MsgCreatePostResponse) Unmarshal ¶
func (m *MsgCreatePostResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePostResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePostResponse) XXX_DiscardUnknown()
func (*MsgCreatePostResponse) XXX_Marshal ¶
func (m *MsgCreatePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePostResponse) XXX_Merge ¶
func (m *MsgCreatePostResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePostResponse) XXX_Size ¶
func (m *MsgCreatePostResponse) XXX_Size() int
func (*MsgCreatePostResponse) XXX_Unmarshal ¶
func (m *MsgCreatePostResponse) XXX_Unmarshal(b []byte) error
type MsgDeletePost ¶
type MsgDeletePost struct { PostOwner string `protobuf:"bytes,1,opt,name=post_owner,json=postOwner,proto3" json:"post_owner,omitempty"` PostUuid string `protobuf:"bytes,2,opt,name=post_uuid,json=postUuid,proto3" json:"post_uuid,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
func NewMsgDeletePost ¶
func NewMsgDeletePost(owner, postOwner sdk.AccAddress, postUUID uuid.UUID) MsgDeletePost
NewMsgDeletePost is a constructor function for MsgDeletePost
func (*MsgDeletePost) Descriptor ¶
func (*MsgDeletePost) Descriptor() ([]byte, []int)
func (MsgDeletePost) GetSignBytes ¶
func (m MsgDeletePost) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDeletePost) GetSigners ¶
func (m MsgDeletePost) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgDeletePost) Marshal ¶
func (m *MsgDeletePost) Marshal() (dAtA []byte, err error)
func (*MsgDeletePost) MarshalToSizedBuffer ¶
func (m *MsgDeletePost) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeletePost) ProtoMessage ¶
func (*MsgDeletePost) ProtoMessage()
func (*MsgDeletePost) Reset ¶
func (m *MsgDeletePost) Reset()
func (MsgDeletePost) Route ¶
func (m MsgDeletePost) Route() string
Route should return the name of the module
func (*MsgDeletePost) Size ¶
func (m *MsgDeletePost) Size() (n int)
func (*MsgDeletePost) String ¶
func (m *MsgDeletePost) String() string
func (*MsgDeletePost) Unmarshal ¶
func (m *MsgDeletePost) Unmarshal(dAtA []byte) error
func (MsgDeletePost) ValidateBasic ¶
func (m MsgDeletePost) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgDeletePost) XXX_DiscardUnknown ¶
func (m *MsgDeletePost) XXX_DiscardUnknown()
func (*MsgDeletePost) XXX_Marshal ¶
func (m *MsgDeletePost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeletePost) XXX_Merge ¶
func (m *MsgDeletePost) XXX_Merge(src proto.Message)
func (*MsgDeletePost) XXX_Size ¶
func (m *MsgDeletePost) XXX_Size() int
func (*MsgDeletePost) XXX_Unmarshal ¶
func (m *MsgDeletePost) XXX_Unmarshal(b []byte) error
type MsgDeletePostResponse ¶
type MsgDeletePostResponse struct { }
func (*MsgDeletePostResponse) Descriptor ¶
func (*MsgDeletePostResponse) Descriptor() ([]byte, []int)
func (*MsgDeletePostResponse) Marshal ¶
func (m *MsgDeletePostResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeletePostResponse) MarshalTo ¶
func (m *MsgDeletePostResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeletePostResponse) MarshalToSizedBuffer ¶
func (m *MsgDeletePostResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeletePostResponse) ProtoMessage ¶
func (*MsgDeletePostResponse) ProtoMessage()
func (*MsgDeletePostResponse) Reset ¶
func (m *MsgDeletePostResponse) Reset()
func (*MsgDeletePostResponse) Size ¶
func (m *MsgDeletePostResponse) Size() (n int)
func (*MsgDeletePostResponse) String ¶
func (m *MsgDeletePostResponse) String() string
func (*MsgDeletePostResponse) Unmarshal ¶
func (m *MsgDeletePostResponse) Unmarshal(dAtA []byte) error
func (*MsgDeletePostResponse) XXX_DiscardUnknown ¶
func (m *MsgDeletePostResponse) XXX_DiscardUnknown()
func (*MsgDeletePostResponse) XXX_Marshal ¶
func (m *MsgDeletePostResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeletePostResponse) XXX_Merge ¶
func (m *MsgDeletePostResponse) XXX_Merge(src proto.Message)
func (*MsgDeletePostResponse) XXX_Size ¶
func (m *MsgDeletePostResponse) XXX_Size() int
func (*MsgDeletePostResponse) XXX_Unmarshal ¶
func (m *MsgDeletePostResponse) XXX_Unmarshal(b []byte) error
type MsgFollow ¶
type MsgFollow struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Whom string `protobuf:"bytes,2,opt,name=whom,proto3" json:"whom,omitempty"` }
func NewMsgFollow ¶
func NewMsgFollow(owner, whom sdk.AccAddress) MsgFollow
NewMsgFollow is a constructor function for MsgFollow
func (*MsgFollow) Descriptor ¶
func (MsgFollow) GetSignBytes ¶
GetSignBytes encodes the message for signing
func (MsgFollow) GetSigners ¶
func (m MsgFollow) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgFollow) MarshalToSizedBuffer ¶
func (*MsgFollow) ProtoMessage ¶
func (*MsgFollow) ProtoMessage()
func (MsgFollow) ValidateBasic ¶
ValidateBasic runs stateless checks on the message
func (*MsgFollow) XXX_DiscardUnknown ¶
func (m *MsgFollow) XXX_DiscardUnknown()
func (*MsgFollow) XXX_Marshal ¶
func (*MsgFollow) XXX_Unmarshal ¶
type MsgFollowResponse ¶
type MsgFollowResponse struct { }
func (*MsgFollowResponse) Descriptor ¶
func (*MsgFollowResponse) Descriptor() ([]byte, []int)
func (*MsgFollowResponse) Marshal ¶
func (m *MsgFollowResponse) Marshal() (dAtA []byte, err error)
func (*MsgFollowResponse) MarshalTo ¶
func (m *MsgFollowResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFollowResponse) MarshalToSizedBuffer ¶
func (m *MsgFollowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFollowResponse) ProtoMessage ¶
func (*MsgFollowResponse) ProtoMessage()
func (*MsgFollowResponse) Reset ¶
func (m *MsgFollowResponse) Reset()
func (*MsgFollowResponse) Size ¶
func (m *MsgFollowResponse) Size() (n int)
func (*MsgFollowResponse) String ¶
func (m *MsgFollowResponse) String() string
func (*MsgFollowResponse) Unmarshal ¶
func (m *MsgFollowResponse) Unmarshal(dAtA []byte) error
func (*MsgFollowResponse) XXX_DiscardUnknown ¶
func (m *MsgFollowResponse) XXX_DiscardUnknown()
func (*MsgFollowResponse) XXX_Marshal ¶
func (m *MsgFollowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFollowResponse) XXX_Merge ¶
func (m *MsgFollowResponse) XXX_Merge(src proto.Message)
func (*MsgFollowResponse) XXX_Size ¶
func (m *MsgFollowResponse) XXX_Size() int
func (*MsgFollowResponse) XXX_Unmarshal ¶
func (m *MsgFollowResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreatePost(context.Context, *MsgCreatePost) (*MsgCreatePostResponse, error) DeletePost(context.Context, *MsgDeletePost) (*MsgDeletePostResponse, error) SetLike(context.Context, *MsgSetLike) (*MsgSetLikeResponse, error) Follow(context.Context, *MsgFollow) (*MsgFollowResponse, error) Unfollow(context.Context, *MsgUnfollow) (*MsgUnfollowResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetLike ¶
type MsgSetLike struct {
Like Like `protobuf:"bytes,1,opt,name=like,proto3" json:"like"`
}
func NewMsgSetLike ¶
func NewMsgSetLike(postOwner sdk.AccAddress, postUUID uuid.UUID, owner sdk.AccAddress, weight LikeWeight) MsgSetLike
NewMsgSetLike is a constructor function for MsgSetLike
func (*MsgSetLike) Descriptor ¶
func (*MsgSetLike) Descriptor() ([]byte, []int)
func (MsgSetLike) GetSignBytes ¶
func (m MsgSetLike) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgSetLike) GetSigners ¶
func (m MsgSetLike) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgSetLike) Marshal ¶
func (m *MsgSetLike) Marshal() (dAtA []byte, err error)
func (*MsgSetLike) MarshalToSizedBuffer ¶
func (m *MsgSetLike) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetLike) ProtoMessage ¶
func (*MsgSetLike) ProtoMessage()
func (*MsgSetLike) Reset ¶
func (m *MsgSetLike) Reset()
func (MsgSetLike) Route ¶
func (m MsgSetLike) Route() string
Route should return the name of the module
func (*MsgSetLike) Size ¶
func (m *MsgSetLike) Size() (n int)
func (*MsgSetLike) String ¶
func (m *MsgSetLike) String() string
func (*MsgSetLike) Unmarshal ¶
func (m *MsgSetLike) Unmarshal(dAtA []byte) error
func (MsgSetLike) ValidateBasic ¶
func (m MsgSetLike) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgSetLike) XXX_DiscardUnknown ¶
func (m *MsgSetLike) XXX_DiscardUnknown()
func (*MsgSetLike) XXX_Marshal ¶
func (m *MsgSetLike) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetLike) XXX_Merge ¶
func (m *MsgSetLike) XXX_Merge(src proto.Message)
func (*MsgSetLike) XXX_Size ¶
func (m *MsgSetLike) XXX_Size() int
func (*MsgSetLike) XXX_Unmarshal ¶
func (m *MsgSetLike) XXX_Unmarshal(b []byte) error
type MsgSetLikeResponse ¶
type MsgSetLikeResponse struct { }
func (*MsgSetLikeResponse) Descriptor ¶
func (*MsgSetLikeResponse) Descriptor() ([]byte, []int)
func (*MsgSetLikeResponse) Marshal ¶
func (m *MsgSetLikeResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetLikeResponse) MarshalTo ¶
func (m *MsgSetLikeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetLikeResponse) MarshalToSizedBuffer ¶
func (m *MsgSetLikeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetLikeResponse) ProtoMessage ¶
func (*MsgSetLikeResponse) ProtoMessage()
func (*MsgSetLikeResponse) Reset ¶
func (m *MsgSetLikeResponse) Reset()
func (*MsgSetLikeResponse) Size ¶
func (m *MsgSetLikeResponse) Size() (n int)
func (*MsgSetLikeResponse) String ¶
func (m *MsgSetLikeResponse) String() string
func (*MsgSetLikeResponse) Unmarshal ¶
func (m *MsgSetLikeResponse) Unmarshal(dAtA []byte) error
func (*MsgSetLikeResponse) XXX_DiscardUnknown ¶
func (m *MsgSetLikeResponse) XXX_DiscardUnknown()
func (*MsgSetLikeResponse) XXX_Marshal ¶
func (m *MsgSetLikeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetLikeResponse) XXX_Merge ¶
func (m *MsgSetLikeResponse) XXX_Merge(src proto.Message)
func (*MsgSetLikeResponse) XXX_Size ¶
func (m *MsgSetLikeResponse) XXX_Size() int
func (*MsgSetLikeResponse) XXX_Unmarshal ¶
func (m *MsgSetLikeResponse) XXX_Unmarshal(b []byte) error
type MsgUnfollow ¶
type MsgUnfollow struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Whom string `protobuf:"bytes,2,opt,name=whom,proto3" json:"whom,omitempty"` }
func NewMsgUnfollow ¶
func NewMsgUnfollow(owner, whom sdk.AccAddress) MsgUnfollow
NewMsgUnfollow is a constructor function for MsgUnfollow
func (*MsgUnfollow) Descriptor ¶
func (*MsgUnfollow) Descriptor() ([]byte, []int)
func (MsgUnfollow) GetSignBytes ¶
func (m MsgUnfollow) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgUnfollow) GetSigners ¶
func (m MsgUnfollow) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgUnfollow) Marshal ¶
func (m *MsgUnfollow) Marshal() (dAtA []byte, err error)
func (*MsgUnfollow) MarshalToSizedBuffer ¶
func (m *MsgUnfollow) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnfollow) ProtoMessage ¶
func (*MsgUnfollow) ProtoMessage()
func (*MsgUnfollow) Reset ¶
func (m *MsgUnfollow) Reset()
func (MsgUnfollow) Route ¶
func (m MsgUnfollow) Route() string
Route should return the name of the module
func (*MsgUnfollow) Size ¶
func (m *MsgUnfollow) Size() (n int)
func (*MsgUnfollow) String ¶
func (m *MsgUnfollow) String() string
func (*MsgUnfollow) Unmarshal ¶
func (m *MsgUnfollow) Unmarshal(dAtA []byte) error
func (MsgUnfollow) ValidateBasic ¶
func (m MsgUnfollow) ValidateBasic() error
ValidateBasic runs stateless checks on the message
func (*MsgUnfollow) XXX_DiscardUnknown ¶
func (m *MsgUnfollow) XXX_DiscardUnknown()
func (*MsgUnfollow) XXX_Marshal ¶
func (m *MsgUnfollow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnfollow) XXX_Merge ¶
func (m *MsgUnfollow) XXX_Merge(src proto.Message)
func (*MsgUnfollow) XXX_Size ¶
func (m *MsgUnfollow) XXX_Size() int
func (*MsgUnfollow) XXX_Unmarshal ¶
func (m *MsgUnfollow) XXX_Unmarshal(b []byte) error
type MsgUnfollowResponse ¶
type MsgUnfollowResponse struct { }
func (*MsgUnfollowResponse) Descriptor ¶
func (*MsgUnfollowResponse) Descriptor() ([]byte, []int)
func (*MsgUnfollowResponse) Marshal ¶
func (m *MsgUnfollowResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnfollowResponse) MarshalTo ¶
func (m *MsgUnfollowResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnfollowResponse) MarshalToSizedBuffer ¶
func (m *MsgUnfollowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnfollowResponse) ProtoMessage ¶
func (*MsgUnfollowResponse) ProtoMessage()
func (*MsgUnfollowResponse) Reset ¶
func (m *MsgUnfollowResponse) Reset()
func (*MsgUnfollowResponse) Size ¶
func (m *MsgUnfollowResponse) Size() (n int)
func (*MsgUnfollowResponse) String ¶
func (m *MsgUnfollowResponse) String() string
func (*MsgUnfollowResponse) Unmarshal ¶
func (m *MsgUnfollowResponse) Unmarshal(dAtA []byte) error
func (*MsgUnfollowResponse) XXX_DiscardUnknown ¶
func (m *MsgUnfollowResponse) XXX_DiscardUnknown()
func (*MsgUnfollowResponse) XXX_Marshal ¶
func (m *MsgUnfollowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnfollowResponse) XXX_Merge ¶
func (m *MsgUnfollowResponse) XXX_Merge(src proto.Message)
func (*MsgUnfollowResponse) XXX_Size ¶
func (m *MsgUnfollowResponse) XXX_Size() int
func (*MsgUnfollowResponse) XXX_Unmarshal ¶
func (m *MsgUnfollowResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { Moderators []string `protobuf:"bytes,1,rep,name=moderators,proto3" json:"moderators,omitempty"` FixedGas FixedGasParams `protobuf:"bytes,2,opt,name=fixed_gas,json=fixedGas,proto3" json:"fixed_gas"` }
func (*Params) Descriptor ¶
func (*Params) GetFixedGas ¶
func (m *Params) GetFixedGas() FixedGasParams
func (*Params) GetModerators ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Post ¶
type Post struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` PreviewImage string `protobuf:"bytes,4,opt,name=preview_image,json=previewImage,proto3" json:"preview_image,omitempty"` Category Category `protobuf:"varint,5,opt,name=category,proto3,enum=community.Category" json:"category,omitempty"` Text string `protobuf:"bytes,6,opt,name=text,proto3" json:"text,omitempty"` }
func (*Post) Descriptor ¶
func (*Post) GetCategory ¶
func (*Post) GetPreviewImage ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) XXX_DiscardUnknown ¶
func (m *Post) XXX_DiscardUnknown()
func (*Post) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { GetPost(ctx context.Context, in *GetPostRequest, opts ...grpc.CallOption) (*GetPostResponse, error) ListUserPosts(ctx context.Context, in *ListUserPostsRequest, opts ...grpc.CallOption) (*ListUserPostsResponse, error) Moderators(ctx context.Context, in *ModeratorsRequest, opts ...grpc.CallOption) (*ModeratorsResponse, error) ListFollowed(ctx context.Context, in *ListFollowedRequest, opts ...grpc.CallOption) (*ListFollowedResponse, 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 QueryServer ¶
type QueryServer interface { GetPost(context.Context, *GetPostRequest) (*GetPostResponse, error) ListUserPosts(context.Context, *ListUserPostsRequest) (*ListUserPostsResponse, error) Moderators(context.Context, *ModeratorsRequest) (*ModeratorsResponse, error) ListFollowed(context.Context, *ListFollowedRequest) (*ListFollowedResponse, error) }
QueryServer is the server API for Query service.
type TokenKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreatePost ¶
func (*UnimplementedMsgServer) CreatePost(ctx context.Context, req *MsgCreatePost) (*MsgCreatePostResponse, error)
func (*UnimplementedMsgServer) DeletePost ¶
func (*UnimplementedMsgServer) DeletePost(ctx context.Context, req *MsgDeletePost) (*MsgDeletePostResponse, error)
func (*UnimplementedMsgServer) Follow ¶
func (*UnimplementedMsgServer) Follow(ctx context.Context, req *MsgFollow) (*MsgFollowResponse, error)
func (*UnimplementedMsgServer) SetLike ¶
func (*UnimplementedMsgServer) SetLike(ctx context.Context, req *MsgSetLike) (*MsgSetLikeResponse, error)
func (*UnimplementedMsgServer) Unfollow ¶
func (*UnimplementedMsgServer) Unfollow(ctx context.Context, req *MsgUnfollow) (*MsgUnfollowResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetPost ¶
func (*UnimplementedQueryServer) GetPost(ctx context.Context, req *GetPostRequest) (*GetPostResponse, error)
func (*UnimplementedQueryServer) ListFollowed ¶
func (*UnimplementedQueryServer) ListFollowed(ctx context.Context, req *ListFollowedRequest) (*ListFollowedResponse, error)
func (*UnimplementedQueryServer) ListUserPosts ¶
func (*UnimplementedQueryServer) ListUserPosts(ctx context.Context, req *ListUserPostsRequest) (*ListUserPostsResponse, error)
func (*UnimplementedQueryServer) Moderators ¶
func (*UnimplementedQueryServer) Moderators(ctx context.Context, req *ModeratorsRequest) (*ModeratorsResponse, error)