types

package
v0.1.0-furya.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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
)
View Source
const (
	DefaultParamspace = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthCommunity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommunity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCommunity = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
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

View Source
var (
	KeyModerators = []byte("Moderators")
	KeyFixedGas   = []byte("FixedGas")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
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,
}
View Source
var (
	DefaultModerators = []string(nil)
)
View Source
var LikeWeight_name = map[int32]string{
	0:  "LIKE_WEIGHT_ZERO",
	1:  "LIKE_WEIGHT_UP",
	-1: "LIKE_WEIGHT_DOWN",
}
View Source
var LikeWeight_value = map[string]int32{
	"LIKE_WEIGHT_ZERO": 0,
	"LIKE_WEIGHT_UP":   1,
	"LIKE_WEIGHT_DOWN": -1,
}

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for operations module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func ValidateFollowers(who string, whom []string) error

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

func (Category) EnumDescriptor() ([]byte, []int)

func (Category) String

func (x Category) String() string

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) MarshalTo

func (m *FixedGasParams) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetPostRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetPostResponse) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Like) GetOwner

func (m *Like) GetOwner() string

func (*Like) GetPostOwner

func (m *Like) GetPostOwner() string

func (*Like) GetPostUuid

func (m *Like) GetPostUuid() string

func (*Like) GetWeight

func (m *Like) GetWeight() LikeWeight

func (*Like) Marshal

func (m *Like) Marshal() (dAtA []byte, err error)

func (*Like) MarshalTo

func (m *Like) MarshalTo(dAtA []byte) (int, error)

func (*Like) MarshalToSizedBuffer

func (m *Like) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Like) ProtoMessage

func (*Like) ProtoMessage()

func (*Like) Reset

func (m *Like) Reset()

func (*Like) Size

func (m *Like) Size() (n int)

func (*Like) String

func (m *Like) String() string

func (*Like) Unmarshal

func (m *Like) Unmarshal(dAtA []byte) error

func (Like) Validate

func (l Like) Validate() error

func (*Like) XXX_DiscardUnknown

func (m *Like) XXX_DiscardUnknown()

func (*Like) XXX_Marshal

func (m *Like) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Like) XXX_Merge

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

func (*Like) XXX_Size

func (m *Like) XXX_Size() int

func (*Like) XXX_Unmarshal

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

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) MarshalTo

func (m *MsgCreatePost) MarshalTo(dAtA []byte) (int, 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) Type

func (m MsgCreatePost) Type() string

Type should return the action

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) MarshalTo

func (m *MsgDeletePost) MarshalTo(dAtA []byte) (int, 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) Type

func (m MsgDeletePost) Type() string

Type should return the action

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

func (MsgFollow) GetSignBytes

func (m MsgFollow) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgFollow) GetSigners

func (m MsgFollow) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgFollow) Marshal

func (m *MsgFollow) Marshal() (dAtA []byte, err error)

func (*MsgFollow) MarshalTo

func (m *MsgFollow) MarshalTo(dAtA []byte) (int, error)

func (*MsgFollow) MarshalToSizedBuffer

func (m *MsgFollow) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgFollow) ProtoMessage

func (*MsgFollow) ProtoMessage()

func (*MsgFollow) Reset

func (m *MsgFollow) Reset()

func (MsgFollow) Route

func (m MsgFollow) Route() string

Route should return the name of the module

func (*MsgFollow) Size

func (m *MsgFollow) Size() (n int)

func (*MsgFollow) String

func (m *MsgFollow) String() string

func (MsgFollow) Type

func (m MsgFollow) Type() string

Type should return the action

func (*MsgFollow) Unmarshal

func (m *MsgFollow) Unmarshal(dAtA []byte) error

func (MsgFollow) ValidateBasic

func (m MsgFollow) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgFollow) XXX_DiscardUnknown

func (m *MsgFollow) XXX_DiscardUnknown()

func (*MsgFollow) XXX_Marshal

func (m *MsgFollow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgFollow) XXX_Merge

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

func (*MsgFollow) XXX_Size

func (m *MsgFollow) XXX_Size() int

func (*MsgFollow) XXX_Unmarshal

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

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

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) MarshalTo

func (m *MsgSetLike) MarshalTo(dAtA []byte) (int, 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) Type

func (m MsgSetLike) Type() string

Type should return the action

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) MarshalTo

func (m *MsgUnfollow) MarshalTo(dAtA []byte) (int, 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) Type

func (m MsgUnfollow) Type() string

Type should return the action

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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetFixedGas

func (m *Params) GetFixedGas() FixedGasParams

func (*Params) GetModerators

func (m *Params) GetModerators() []string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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) Address

func (p Post) Address() string

func (*Post) Descriptor

func (*Post) Descriptor() ([]byte, []int)

func (*Post) GetCategory

func (m *Post) GetCategory() Category

func (*Post) GetOwner

func (m *Post) GetOwner() string

func (*Post) GetPreviewImage

func (m *Post) GetPreviewImage() string

func (*Post) GetText

func (m *Post) GetText() string

func (*Post) GetTitle

func (m *Post) GetTitle() string

func (*Post) GetUuid

func (m *Post) GetUuid() string

func (*Post) Marshal

func (m *Post) Marshal() (dAtA []byte, err error)

func (*Post) MarshalTo

func (m *Post) MarshalTo(dAtA []byte) (int, error)

func (*Post) MarshalToSizedBuffer

func (m *Post) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) Reset

func (m *Post) Reset()

func (*Post) Size

func (m *Post) Size() (n int)

func (*Post) String

func (m *Post) String() string

func (*Post) Unmarshal

func (m *Post) Unmarshal(dAtA []byte) error

func (Post) Validate

func (p Post) Validate() error

func (*Post) XXX_DiscardUnknown

func (m *Post) XXX_DiscardUnknown()

func (*Post) XXX_Marshal

func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Post) XXX_Merge

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

func (*Post) XXX_Size

func (m *Post) XXX_Size() int

func (*Post) XXX_Unmarshal

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

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

QueryServer is the server API for Query service.

type TokenKeeper

type TokenKeeper interface {
	IncTokens(ctx sdk.Context, address sdk.AccAddress, amount sdk.Fur)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreatePost

func (*UnimplementedMsgServer) DeletePost

func (*UnimplementedMsgServer) Follow

func (*UnimplementedMsgServer) SetLike

func (*UnimplementedMsgServer) Unfollow

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetPost

func (*UnimplementedQueryServer) ListFollowed

func (*UnimplementedQueryServer) ListUserPosts

func (*UnimplementedQueryServer) Moderators

Jump to

Keyboard shortcuts

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