types

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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 added in v1.0.0

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for operations module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces added in v1.5.0

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer added in v1.5.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateFollowers added in v1.5.0

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 added in v1.5.0

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

func (Category) String added in v1.5.0

func (x Category) String() string

type FixedGasParams added in v1.3.0

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 added in v1.3.0

func DefaultFixedGasParams() FixedGasParams

func NewFixedGasParams added in v1.5.0

func NewFixedGasParams(createPost, deletePost, setLike, follow, unfollow sdk.Gas) FixedGasParams

func (*FixedGasParams) Descriptor added in v1.5.0

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

func (*FixedGasParams) GetCreatePost added in v1.5.0

func (m *FixedGasParams) GetCreatePost() uint64

func (*FixedGasParams) GetDeletePost added in v1.5.0

func (m *FixedGasParams) GetDeletePost() uint64

func (*FixedGasParams) GetFollow added in v1.5.0

func (m *FixedGasParams) GetFollow() uint64

func (*FixedGasParams) GetSetLike added in v1.5.0

func (m *FixedGasParams) GetSetLike() uint64

func (*FixedGasParams) GetUnfollow added in v1.5.0

func (m *FixedGasParams) GetUnfollow() uint64

func (*FixedGasParams) Marshal added in v1.5.0

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

func (*FixedGasParams) MarshalTo added in v1.5.0

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

func (*FixedGasParams) MarshalToSizedBuffer added in v1.5.0

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

func (*FixedGasParams) ProtoMessage added in v1.5.0

func (*FixedGasParams) ProtoMessage()

func (*FixedGasParams) Reset added in v1.5.0

func (m *FixedGasParams) Reset()

func (*FixedGasParams) Size added in v1.5.0

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

func (*FixedGasParams) String added in v1.5.0

func (m *FixedGasParams) String() string

func (*FixedGasParams) Unmarshal added in v1.5.0

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

func (*FixedGasParams) XXX_DiscardUnknown added in v1.5.0

func (m *FixedGasParams) XXX_DiscardUnknown()

func (*FixedGasParams) XXX_Marshal added in v1.5.0

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

func (*FixedGasParams) XXX_Merge added in v1.5.0

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

func (*FixedGasParams) XXX_Size added in v1.5.0

func (m *FixedGasParams) XXX_Size() int

func (*FixedGasParams) XXX_Unmarshal added in v1.5.0

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

type GenesisState added in v1.5.0

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 added in v1.5.0

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func GetGenesisStateFromAppState added in v1.5.0

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState

func (*GenesisState) Descriptor added in v1.5.0

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

func (*GenesisState) GetFollowing added in v1.5.0

func (m *GenesisState) GetFollowing() map[string]GenesisState_AddressList

func (*GenesisState) GetLikes added in v1.5.0

func (m *GenesisState) GetLikes() []Like

func (*GenesisState) GetParams added in v1.5.0

func (m *GenesisState) GetParams() *Params

func (*GenesisState) GetPosts added in v1.5.0

func (m *GenesisState) GetPosts() []Post

func (*GenesisState) Marshal added in v1.5.0

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

func (*GenesisState) MarshalTo added in v1.5.0

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

func (*GenesisState) MarshalToSizedBuffer added in v1.5.0

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

func (*GenesisState) ProtoMessage added in v1.5.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v1.5.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v1.5.0

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

func (*GenesisState) String added in v1.5.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v1.5.0

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

func (GenesisState) Validate added in v1.5.0

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown added in v1.5.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v1.5.0

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

func (*GenesisState) XXX_Merge added in v1.5.0

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

func (*GenesisState) XXX_Size added in v1.5.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v1.5.0

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

type GenesisState_AddressList added in v1.5.0

type GenesisState_AddressList struct {
	Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
}

func (*GenesisState_AddressList) Descriptor added in v1.5.0

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

func (*GenesisState_AddressList) GetAddress added in v1.5.0

func (m *GenesisState_AddressList) GetAddress() []string

func (*GenesisState_AddressList) Marshal added in v1.5.0

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

func (*GenesisState_AddressList) MarshalTo added in v1.5.0

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

func (*GenesisState_AddressList) MarshalToSizedBuffer added in v1.5.0

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

func (*GenesisState_AddressList) ProtoMessage added in v1.5.0

func (*GenesisState_AddressList) ProtoMessage()

func (*GenesisState_AddressList) Reset added in v1.5.0

func (m *GenesisState_AddressList) Reset()

func (*GenesisState_AddressList) Size added in v1.5.0

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

func (*GenesisState_AddressList) String added in v1.5.0

func (m *GenesisState_AddressList) String() string

func (*GenesisState_AddressList) Unmarshal added in v1.5.0

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

func (*GenesisState_AddressList) XXX_DiscardUnknown added in v1.5.0

func (m *GenesisState_AddressList) XXX_DiscardUnknown()

func (*GenesisState_AddressList) XXX_Marshal added in v1.5.0

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

func (*GenesisState_AddressList) XXX_Merge added in v1.5.0

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

func (*GenesisState_AddressList) XXX_Size added in v1.5.0

func (m *GenesisState_AddressList) XXX_Size() int

func (*GenesisState_AddressList) XXX_Unmarshal added in v1.5.0

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

type GetPostRequest added in v1.5.0

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 added in v1.5.0

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

func (*GetPostRequest) Marshal added in v1.5.0

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

func (*GetPostRequest) MarshalTo added in v1.5.0

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

func (*GetPostRequest) MarshalToSizedBuffer added in v1.5.0

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

func (*GetPostRequest) ProtoMessage added in v1.5.0

func (*GetPostRequest) ProtoMessage()

func (*GetPostRequest) Reset added in v1.5.0

func (m *GetPostRequest) Reset()

func (*GetPostRequest) Size added in v1.5.0

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

func (*GetPostRequest) String added in v1.5.0

func (m *GetPostRequest) String() string

func (*GetPostRequest) Unmarshal added in v1.5.0

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

func (*GetPostRequest) XXX_DiscardUnknown added in v1.5.0

func (m *GetPostRequest) XXX_DiscardUnknown()

func (*GetPostRequest) XXX_Marshal added in v1.5.0

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

func (*GetPostRequest) XXX_Merge added in v1.5.0

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

func (*GetPostRequest) XXX_Size added in v1.5.0

func (m *GetPostRequest) XXX_Size() int

func (*GetPostRequest) XXX_Unmarshal added in v1.5.0

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

type GetPostResponse added in v1.5.0

type GetPostResponse struct {
	Post Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post"`
}

func (*GetPostResponse) Descriptor added in v1.5.0

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

func (*GetPostResponse) GetPost added in v1.5.0

func (m *GetPostResponse) GetPost() Post

func (*GetPostResponse) Marshal added in v1.5.0

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

func (*GetPostResponse) MarshalTo added in v1.5.0

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

func (*GetPostResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*GetPostResponse) ProtoMessage added in v1.5.0

func (*GetPostResponse) ProtoMessage()

func (*GetPostResponse) Reset added in v1.5.0

func (m *GetPostResponse) Reset()

func (*GetPostResponse) Size added in v1.5.0

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

func (*GetPostResponse) String added in v1.5.0

func (m *GetPostResponse) String() string

func (*GetPostResponse) Unmarshal added in v1.5.0

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

func (*GetPostResponse) XXX_DiscardUnknown added in v1.5.0

func (m *GetPostResponse) XXX_DiscardUnknown()

func (*GetPostResponse) XXX_Marshal added in v1.5.0

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

func (*GetPostResponse) XXX_Merge added in v1.5.0

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

func (*GetPostResponse) XXX_Size added in v1.5.0

func (m *GetPostResponse) XXX_Size() int

func (*GetPostResponse) XXX_Unmarshal added in v1.5.0

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 added in v1.5.0

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

func (*Like) GetOwner added in v1.5.0

func (m *Like) GetOwner() string

func (*Like) GetPostOwner added in v1.5.0

func (m *Like) GetPostOwner() string

func (*Like) GetPostUuid added in v1.5.0

func (m *Like) GetPostUuid() string

func (*Like) GetWeight added in v1.5.0

func (m *Like) GetWeight() LikeWeight

func (*Like) Marshal added in v1.5.0

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

func (*Like) MarshalTo added in v1.5.0

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

func (*Like) MarshalToSizedBuffer added in v1.5.0

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

func (*Like) ProtoMessage added in v1.5.0

func (*Like) ProtoMessage()

func (*Like) Reset added in v1.5.0

func (m *Like) Reset()

func (*Like) Size added in v1.5.0

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

func (*Like) String added in v1.5.0

func (m *Like) String() string

func (*Like) Unmarshal added in v1.5.0

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

func (Like) Validate added in v1.5.0

func (l Like) Validate() error

func (*Like) XXX_DiscardUnknown added in v1.5.0

func (m *Like) XXX_DiscardUnknown()

func (*Like) XXX_Marshal added in v1.5.0

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

func (*Like) XXX_Merge added in v1.5.0

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

func (*Like) XXX_Size added in v1.5.0

func (m *Like) XXX_Size() int

func (*Like) XXX_Unmarshal added in v1.5.0

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 added in v1.5.0

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

func (LikeWeight) String added in v1.5.0

func (x LikeWeight) String() string

type ListFollowedRequest added in v1.5.0

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 added in v1.5.0

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

func (*ListFollowedRequest) Marshal added in v1.5.0

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

func (*ListFollowedRequest) MarshalTo added in v1.5.0

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

func (*ListFollowedRequest) MarshalToSizedBuffer added in v1.5.0

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

func (*ListFollowedRequest) ProtoMessage added in v1.5.0

func (*ListFollowedRequest) ProtoMessage()

func (*ListFollowedRequest) Reset added in v1.5.0

func (m *ListFollowedRequest) Reset()

func (*ListFollowedRequest) Size added in v1.5.0

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

func (*ListFollowedRequest) String added in v1.5.0

func (m *ListFollowedRequest) String() string

func (*ListFollowedRequest) Unmarshal added in v1.5.0

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

func (*ListFollowedRequest) XXX_DiscardUnknown added in v1.5.0

func (m *ListFollowedRequest) XXX_DiscardUnknown()

func (*ListFollowedRequest) XXX_Marshal added in v1.5.0

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

func (*ListFollowedRequest) XXX_Merge added in v1.5.0

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

func (*ListFollowedRequest) XXX_Size added in v1.5.0

func (m *ListFollowedRequest) XXX_Size() int

func (*ListFollowedRequest) XXX_Unmarshal added in v1.5.0

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

type ListFollowedResponse added in v1.5.0

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 added in v1.5.0

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

func (*ListFollowedResponse) GetFollowed added in v1.5.0

func (m *ListFollowedResponse) GetFollowed() []string

func (*ListFollowedResponse) GetPagination added in v1.5.0

func (m *ListFollowedResponse) GetPagination() query.PageResponse

func (*ListFollowedResponse) Marshal added in v1.5.0

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

func (*ListFollowedResponse) MarshalTo added in v1.5.0

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

func (*ListFollowedResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*ListFollowedResponse) ProtoMessage added in v1.5.0

func (*ListFollowedResponse) ProtoMessage()

func (*ListFollowedResponse) Reset added in v1.5.0

func (m *ListFollowedResponse) Reset()

func (*ListFollowedResponse) Size added in v1.5.0

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

func (*ListFollowedResponse) String added in v1.5.0

func (m *ListFollowedResponse) String() string

func (*ListFollowedResponse) Unmarshal added in v1.5.0

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

func (*ListFollowedResponse) XXX_DiscardUnknown added in v1.5.0

func (m *ListFollowedResponse) XXX_DiscardUnknown()

func (*ListFollowedResponse) XXX_Marshal added in v1.5.0

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

func (*ListFollowedResponse) XXX_Merge added in v1.5.0

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

func (*ListFollowedResponse) XXX_Size added in v1.5.0

func (m *ListFollowedResponse) XXX_Size() int

func (*ListFollowedResponse) XXX_Unmarshal added in v1.5.0

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

type ListUserPostsRequest added in v1.5.0

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 added in v1.5.0

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

func (*ListUserPostsRequest) Marshal added in v1.5.0

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

func (*ListUserPostsRequest) MarshalTo added in v1.5.0

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

func (*ListUserPostsRequest) MarshalToSizedBuffer added in v1.5.0

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

func (*ListUserPostsRequest) ProtoMessage added in v1.5.0

func (*ListUserPostsRequest) ProtoMessage()

func (*ListUserPostsRequest) Reset added in v1.5.0

func (m *ListUserPostsRequest) Reset()

func (*ListUserPostsRequest) Size added in v1.5.0

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

func (*ListUserPostsRequest) String added in v1.5.0

func (m *ListUserPostsRequest) String() string

func (*ListUserPostsRequest) Unmarshal added in v1.5.0

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

func (*ListUserPostsRequest) XXX_DiscardUnknown added in v1.5.0

func (m *ListUserPostsRequest) XXX_DiscardUnknown()

func (*ListUserPostsRequest) XXX_Marshal added in v1.5.0

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

func (*ListUserPostsRequest) XXX_Merge added in v1.5.0

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

func (*ListUserPostsRequest) XXX_Size added in v1.5.0

func (m *ListUserPostsRequest) XXX_Size() int

func (*ListUserPostsRequest) XXX_Unmarshal added in v1.5.0

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

type ListUserPostsResponse added in v1.5.0

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 added in v1.5.0

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

func (*ListUserPostsResponse) GetPagination added in v1.5.0

func (m *ListUserPostsResponse) GetPagination() query.PageResponse

func (*ListUserPostsResponse) GetPosts added in v1.5.0

func (m *ListUserPostsResponse) GetPosts() []Post

func (*ListUserPostsResponse) Marshal added in v1.5.0

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

func (*ListUserPostsResponse) MarshalTo added in v1.5.0

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

func (*ListUserPostsResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*ListUserPostsResponse) ProtoMessage added in v1.5.0

func (*ListUserPostsResponse) ProtoMessage()

func (*ListUserPostsResponse) Reset added in v1.5.0

func (m *ListUserPostsResponse) Reset()

func (*ListUserPostsResponse) Size added in v1.5.0

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

func (*ListUserPostsResponse) String added in v1.5.0

func (m *ListUserPostsResponse) String() string

func (*ListUserPostsResponse) Unmarshal added in v1.5.0

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

func (*ListUserPostsResponse) XXX_DiscardUnknown added in v1.5.0

func (m *ListUserPostsResponse) XXX_DiscardUnknown()

func (*ListUserPostsResponse) XXX_Marshal added in v1.5.0

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

func (*ListUserPostsResponse) XXX_Merge added in v1.5.0

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

func (*ListUserPostsResponse) XXX_Size added in v1.5.0

func (m *ListUserPostsResponse) XXX_Size() int

func (*ListUserPostsResponse) XXX_Unmarshal added in v1.5.0

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

type ModeratorsRequest added in v1.5.0

type ModeratorsRequest struct {
}

func (*ModeratorsRequest) Descriptor added in v1.5.0

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

func (*ModeratorsRequest) Marshal added in v1.5.0

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

func (*ModeratorsRequest) MarshalTo added in v1.5.0

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

func (*ModeratorsRequest) MarshalToSizedBuffer added in v1.5.0

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

func (*ModeratorsRequest) ProtoMessage added in v1.5.0

func (*ModeratorsRequest) ProtoMessage()

func (*ModeratorsRequest) Reset added in v1.5.0

func (m *ModeratorsRequest) Reset()

func (*ModeratorsRequest) Size added in v1.5.0

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

func (*ModeratorsRequest) String added in v1.5.0

func (m *ModeratorsRequest) String() string

func (*ModeratorsRequest) Unmarshal added in v1.5.0

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

func (*ModeratorsRequest) XXX_DiscardUnknown added in v1.5.0

func (m *ModeratorsRequest) XXX_DiscardUnknown()

func (*ModeratorsRequest) XXX_Marshal added in v1.5.0

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

func (*ModeratorsRequest) XXX_Merge added in v1.5.0

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

func (*ModeratorsRequest) XXX_Size added in v1.5.0

func (m *ModeratorsRequest) XXX_Size() int

func (*ModeratorsRequest) XXX_Unmarshal added in v1.5.0

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

type ModeratorsResponse added in v1.5.0

type ModeratorsResponse struct {
	Moderators []string `protobuf:"bytes,1,rep,name=moderators,proto3" json:"moderators,omitempty"`
}

func (*ModeratorsResponse) Descriptor added in v1.5.0

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

func (*ModeratorsResponse) GetModerators added in v1.5.0

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

func (*ModeratorsResponse) Marshal added in v1.5.0

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

func (*ModeratorsResponse) MarshalTo added in v1.5.0

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

func (*ModeratorsResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*ModeratorsResponse) ProtoMessage added in v1.5.0

func (*ModeratorsResponse) ProtoMessage()

func (*ModeratorsResponse) Reset added in v1.5.0

func (m *ModeratorsResponse) Reset()

func (*ModeratorsResponse) Size added in v1.5.0

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

func (*ModeratorsResponse) String added in v1.5.0

func (m *ModeratorsResponse) String() string

func (*ModeratorsResponse) Unmarshal added in v1.5.0

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

func (*ModeratorsResponse) XXX_DiscardUnknown added in v1.5.0

func (m *ModeratorsResponse) XXX_DiscardUnknown()

func (*ModeratorsResponse) XXX_Marshal added in v1.5.0

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

func (*ModeratorsResponse) XXX_Merge added in v1.5.0

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

func (*ModeratorsResponse) XXX_Size added in v1.5.0

func (m *ModeratorsResponse) XXX_Size() int

func (*ModeratorsResponse) XXX_Unmarshal added in v1.5.0

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

type MsgClient added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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

func (*MsgCreatePost) MarshalTo added in v1.5.0

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

func (*MsgCreatePost) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgCreatePost) ProtoMessage added in v1.5.0

func (*MsgCreatePost) ProtoMessage()

func (*MsgCreatePost) Reset added in v1.5.0

func (m *MsgCreatePost) Reset()

func (MsgCreatePost) Route

func (m MsgCreatePost) Route() string

Route should return the name of the module

func (*MsgCreatePost) Size added in v1.5.0

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

func (*MsgCreatePost) String added in v1.5.0

func (m *MsgCreatePost) String() string

func (MsgCreatePost) Type

func (m MsgCreatePost) Type() string

Type should return the action

func (*MsgCreatePost) Unmarshal added in v1.5.0

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 added in v1.5.0

func (m *MsgCreatePost) XXX_DiscardUnknown()

func (*MsgCreatePost) XXX_Marshal added in v1.5.0

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

func (*MsgCreatePost) XXX_Merge added in v1.5.0

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

func (*MsgCreatePost) XXX_Size added in v1.5.0

func (m *MsgCreatePost) XXX_Size() int

func (*MsgCreatePost) XXX_Unmarshal added in v1.5.0

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

type MsgCreatePostResponse added in v1.5.0

type MsgCreatePostResponse struct {
}

func (*MsgCreatePostResponse) Descriptor added in v1.5.0

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

func (*MsgCreatePostResponse) Marshal added in v1.5.0

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

func (*MsgCreatePostResponse) MarshalTo added in v1.5.0

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

func (*MsgCreatePostResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgCreatePostResponse) ProtoMessage added in v1.5.0

func (*MsgCreatePostResponse) ProtoMessage()

func (*MsgCreatePostResponse) Reset added in v1.5.0

func (m *MsgCreatePostResponse) Reset()

func (*MsgCreatePostResponse) Size added in v1.5.0

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

func (*MsgCreatePostResponse) String added in v1.5.0

func (m *MsgCreatePostResponse) String() string

func (*MsgCreatePostResponse) Unmarshal added in v1.5.0

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

func (*MsgCreatePostResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgCreatePostResponse) XXX_DiscardUnknown()

func (*MsgCreatePostResponse) XXX_Marshal added in v1.5.0

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

func (*MsgCreatePostResponse) XXX_Merge added in v1.5.0

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

func (*MsgCreatePostResponse) XXX_Size added in v1.5.0

func (m *MsgCreatePostResponse) XXX_Size() int

func (*MsgCreatePostResponse) XXX_Unmarshal added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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

func (*MsgDeletePost) MarshalTo added in v1.5.0

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

func (*MsgDeletePost) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgDeletePost) ProtoMessage added in v1.5.0

func (*MsgDeletePost) ProtoMessage()

func (*MsgDeletePost) Reset added in v1.5.0

func (m *MsgDeletePost) Reset()

func (MsgDeletePost) Route

func (m MsgDeletePost) Route() string

Route should return the name of the module

func (*MsgDeletePost) Size added in v1.5.0

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

func (*MsgDeletePost) String added in v1.5.0

func (m *MsgDeletePost) String() string

func (MsgDeletePost) Type

func (m MsgDeletePost) Type() string

Type should return the action

func (*MsgDeletePost) Unmarshal added in v1.5.0

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 added in v1.5.0

func (m *MsgDeletePost) XXX_DiscardUnknown()

func (*MsgDeletePost) XXX_Marshal added in v1.5.0

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

func (*MsgDeletePost) XXX_Merge added in v1.5.0

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

func (*MsgDeletePost) XXX_Size added in v1.5.0

func (m *MsgDeletePost) XXX_Size() int

func (*MsgDeletePost) XXX_Unmarshal added in v1.5.0

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

type MsgDeletePostResponse added in v1.5.0

type MsgDeletePostResponse struct {
}

func (*MsgDeletePostResponse) Descriptor added in v1.5.0

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

func (*MsgDeletePostResponse) Marshal added in v1.5.0

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

func (*MsgDeletePostResponse) MarshalTo added in v1.5.0

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

func (*MsgDeletePostResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgDeletePostResponse) ProtoMessage added in v1.5.0

func (*MsgDeletePostResponse) ProtoMessage()

func (*MsgDeletePostResponse) Reset added in v1.5.0

func (m *MsgDeletePostResponse) Reset()

func (*MsgDeletePostResponse) Size added in v1.5.0

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

func (*MsgDeletePostResponse) String added in v1.5.0

func (m *MsgDeletePostResponse) String() string

func (*MsgDeletePostResponse) Unmarshal added in v1.5.0

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

func (*MsgDeletePostResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgDeletePostResponse) XXX_DiscardUnknown()

func (*MsgDeletePostResponse) XXX_Marshal added in v1.5.0

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

func (*MsgDeletePostResponse) XXX_Merge added in v1.5.0

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

func (*MsgDeletePostResponse) XXX_Size added in v1.5.0

func (m *MsgDeletePostResponse) XXX_Size() int

func (*MsgDeletePostResponse) XXX_Unmarshal added in v1.5.0

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

type MsgFollow added in v1.0.3

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 added in v1.0.3

func NewMsgFollow(owner, whom sdk.AccAddress) MsgFollow

NewMsgFollow is a constructor function for MsgFollow

func (*MsgFollow) Descriptor added in v1.5.0

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

func (MsgFollow) GetSignBytes added in v1.0.3

func (m MsgFollow) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgFollow) GetSigners added in v1.0.3

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

GetSigners defines whose signature is required

func (*MsgFollow) Marshal added in v1.5.0

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

func (*MsgFollow) MarshalTo added in v1.5.0

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

func (*MsgFollow) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgFollow) ProtoMessage added in v1.5.0

func (*MsgFollow) ProtoMessage()

func (*MsgFollow) Reset added in v1.5.0

func (m *MsgFollow) Reset()

func (MsgFollow) Route added in v1.0.3

func (m MsgFollow) Route() string

Route should return the name of the module

func (*MsgFollow) Size added in v1.5.0

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

func (*MsgFollow) String added in v1.5.0

func (m *MsgFollow) String() string

func (MsgFollow) Type added in v1.0.3

func (m MsgFollow) Type() string

Type should return the action

func (*MsgFollow) Unmarshal added in v1.5.0

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

func (MsgFollow) ValidateBasic added in v1.0.3

func (m MsgFollow) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgFollow) XXX_DiscardUnknown added in v1.5.0

func (m *MsgFollow) XXX_DiscardUnknown()

func (*MsgFollow) XXX_Marshal added in v1.5.0

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

func (*MsgFollow) XXX_Merge added in v1.5.0

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

func (*MsgFollow) XXX_Size added in v1.5.0

func (m *MsgFollow) XXX_Size() int

func (*MsgFollow) XXX_Unmarshal added in v1.5.0

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

type MsgFollowResponse added in v1.5.0

type MsgFollowResponse struct {
}

func (*MsgFollowResponse) Descriptor added in v1.5.0

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

func (*MsgFollowResponse) Marshal added in v1.5.0

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

func (*MsgFollowResponse) MarshalTo added in v1.5.0

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

func (*MsgFollowResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgFollowResponse) ProtoMessage added in v1.5.0

func (*MsgFollowResponse) ProtoMessage()

func (*MsgFollowResponse) Reset added in v1.5.0

func (m *MsgFollowResponse) Reset()

func (*MsgFollowResponse) Size added in v1.5.0

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

func (*MsgFollowResponse) String added in v1.5.0

func (m *MsgFollowResponse) String() string

func (*MsgFollowResponse) Unmarshal added in v1.5.0

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

func (*MsgFollowResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgFollowResponse) XXX_DiscardUnknown()

func (*MsgFollowResponse) XXX_Marshal added in v1.5.0

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

func (*MsgFollowResponse) XXX_Merge added in v1.5.0

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

func (*MsgFollowResponse) XXX_Size added in v1.5.0

func (m *MsgFollowResponse) XXX_Size() int

func (*MsgFollowResponse) XXX_Unmarshal added in v1.5.0

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

type MsgServer added in v1.5.0

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 added in v1.5.0

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 added in v1.5.0

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

func (*MsgSetLike) MarshalTo added in v1.5.0

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

func (*MsgSetLike) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgSetLike) ProtoMessage added in v1.5.0

func (*MsgSetLike) ProtoMessage()

func (*MsgSetLike) Reset added in v1.5.0

func (m *MsgSetLike) Reset()

func (MsgSetLike) Route

func (m MsgSetLike) Route() string

Route should return the name of the module

func (*MsgSetLike) Size added in v1.5.0

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

func (*MsgSetLike) String added in v1.5.0

func (m *MsgSetLike) String() string

func (MsgSetLike) Type

func (m MsgSetLike) Type() string

Type should return the action

func (*MsgSetLike) Unmarshal added in v1.5.0

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 added in v1.5.0

func (m *MsgSetLike) XXX_DiscardUnknown()

func (*MsgSetLike) XXX_Marshal added in v1.5.0

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

func (*MsgSetLike) XXX_Merge added in v1.5.0

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

func (*MsgSetLike) XXX_Size added in v1.5.0

func (m *MsgSetLike) XXX_Size() int

func (*MsgSetLike) XXX_Unmarshal added in v1.5.0

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

type MsgSetLikeResponse added in v1.5.0

type MsgSetLikeResponse struct {
}

func (*MsgSetLikeResponse) Descriptor added in v1.5.0

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

func (*MsgSetLikeResponse) Marshal added in v1.5.0

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

func (*MsgSetLikeResponse) MarshalTo added in v1.5.0

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

func (*MsgSetLikeResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgSetLikeResponse) ProtoMessage added in v1.5.0

func (*MsgSetLikeResponse) ProtoMessage()

func (*MsgSetLikeResponse) Reset added in v1.5.0

func (m *MsgSetLikeResponse) Reset()

func (*MsgSetLikeResponse) Size added in v1.5.0

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

func (*MsgSetLikeResponse) String added in v1.5.0

func (m *MsgSetLikeResponse) String() string

func (*MsgSetLikeResponse) Unmarshal added in v1.5.0

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

func (*MsgSetLikeResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgSetLikeResponse) XXX_DiscardUnknown()

func (*MsgSetLikeResponse) XXX_Marshal added in v1.5.0

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

func (*MsgSetLikeResponse) XXX_Merge added in v1.5.0

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

func (*MsgSetLikeResponse) XXX_Size added in v1.5.0

func (m *MsgSetLikeResponse) XXX_Size() int

func (*MsgSetLikeResponse) XXX_Unmarshal added in v1.5.0

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

type MsgUnfollow added in v1.0.3

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 added in v1.0.3

func NewMsgUnfollow(owner, whom sdk.AccAddress) MsgUnfollow

NewMsgUnfollow is a constructor function for MsgUnfollow

func (*MsgUnfollow) Descriptor added in v1.5.0

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

func (MsgUnfollow) GetSignBytes added in v1.0.3

func (m MsgUnfollow) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUnfollow) GetSigners added in v1.0.3

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

GetSigners defines whose signature is required

func (*MsgUnfollow) Marshal added in v1.5.0

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

func (*MsgUnfollow) MarshalTo added in v1.5.0

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

func (*MsgUnfollow) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgUnfollow) ProtoMessage added in v1.5.0

func (*MsgUnfollow) ProtoMessage()

func (*MsgUnfollow) Reset added in v1.5.0

func (m *MsgUnfollow) Reset()

func (MsgUnfollow) Route added in v1.0.3

func (m MsgUnfollow) Route() string

Route should return the name of the module

func (*MsgUnfollow) Size added in v1.5.0

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

func (*MsgUnfollow) String added in v1.5.0

func (m *MsgUnfollow) String() string

func (MsgUnfollow) Type added in v1.0.3

func (m MsgUnfollow) Type() string

Type should return the action

func (*MsgUnfollow) Unmarshal added in v1.5.0

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

func (MsgUnfollow) ValidateBasic added in v1.0.3

func (m MsgUnfollow) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUnfollow) XXX_DiscardUnknown added in v1.5.0

func (m *MsgUnfollow) XXX_DiscardUnknown()

func (*MsgUnfollow) XXX_Marshal added in v1.5.0

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

func (*MsgUnfollow) XXX_Merge added in v1.5.0

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

func (*MsgUnfollow) XXX_Size added in v1.5.0

func (m *MsgUnfollow) XXX_Size() int

func (*MsgUnfollow) XXX_Unmarshal added in v1.5.0

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

type MsgUnfollowResponse added in v1.5.0

type MsgUnfollowResponse struct {
}

func (*MsgUnfollowResponse) Descriptor added in v1.5.0

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

func (*MsgUnfollowResponse) Marshal added in v1.5.0

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

func (*MsgUnfollowResponse) MarshalTo added in v1.5.0

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

func (*MsgUnfollowResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgUnfollowResponse) ProtoMessage added in v1.5.0

func (*MsgUnfollowResponse) ProtoMessage()

func (*MsgUnfollowResponse) Reset added in v1.5.0

func (m *MsgUnfollowResponse) Reset()

func (*MsgUnfollowResponse) Size added in v1.5.0

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

func (*MsgUnfollowResponse) String added in v1.5.0

func (m *MsgUnfollowResponse) String() string

func (*MsgUnfollowResponse) Unmarshal added in v1.5.0

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

func (*MsgUnfollowResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgUnfollowResponse) XXX_DiscardUnknown()

func (*MsgUnfollowResponse) XXX_Marshal added in v1.5.0

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

func (*MsgUnfollowResponse) XXX_Merge added in v1.5.0

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

func (*MsgUnfollowResponse) XXX_Size added in v1.5.0

func (m *MsgUnfollowResponse) XXX_Size() int

func (*MsgUnfollowResponse) XXX_Unmarshal added in v1.5.0

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

type Params added in v1.4.0

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 added in v1.4.0

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func (*Params) Descriptor added in v1.5.0

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

func (*Params) GetFixedGas added in v1.5.0

func (m *Params) GetFixedGas() FixedGasParams

func (*Params) GetModerators added in v1.5.0

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

func (*Params) Marshal added in v1.5.0

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

func (*Params) MarshalTo added in v1.5.0

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

func (*Params) MarshalToSizedBuffer added in v1.5.0

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

func (*Params) ParamSetPairs added in v1.4.0

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

func (*Params) ProtoMessage added in v1.5.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v1.5.0

func (m *Params) Reset()

func (*Params) Size added in v1.5.0

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

func (*Params) String added in v1.5.0

func (m *Params) String() string

func (*Params) Unmarshal added in v1.5.0

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

func (Params) Validate added in v1.4.0

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown added in v1.5.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v1.5.0

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

func (*Params) XXX_Merge added in v1.5.0

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

func (*Params) XXX_Size added in v1.5.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v1.5.0

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 added in v1.5.0

func (p Post) Address() string

func (*Post) Descriptor added in v1.5.0

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

func (*Post) GetCategory added in v1.5.0

func (m *Post) GetCategory() Category

func (*Post) GetOwner added in v1.5.0

func (m *Post) GetOwner() string

func (*Post) GetPreviewImage added in v1.5.0

func (m *Post) GetPreviewImage() string

func (*Post) GetText added in v1.5.0

func (m *Post) GetText() string

func (*Post) GetTitle added in v1.5.0

func (m *Post) GetTitle() string

func (*Post) GetUuid added in v1.5.0

func (m *Post) GetUuid() string

func (*Post) Marshal added in v1.5.0

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

func (*Post) MarshalTo added in v1.5.0

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

func (*Post) MarshalToSizedBuffer added in v1.5.0

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

func (*Post) ProtoMessage added in v1.5.0

func (*Post) ProtoMessage()

func (*Post) Reset added in v1.5.0

func (m *Post) Reset()

func (*Post) Size added in v1.5.0

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

func (*Post) String added in v1.5.0

func (m *Post) String() string

func (*Post) Unmarshal added in v1.5.0

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

func (Post) Validate added in v1.5.0

func (p Post) Validate() error

func (*Post) XXX_DiscardUnknown added in v1.5.0

func (m *Post) XXX_DiscardUnknown()

func (*Post) XXX_Marshal added in v1.5.0

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

func (*Post) XXX_Merge added in v1.5.0

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

func (*Post) XXX_Size added in v1.5.0

func (m *Post) XXX_Size() int

func (*Post) XXX_Unmarshal added in v1.5.0

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

type QueryClient added in v1.5.0

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 added in v1.5.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryServer added in v1.5.0

QueryServer is the server API for Query service.

type TokenKeeper added in v1.5.0

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

type UnimplementedMsgServer added in v1.5.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreatePost added in v1.5.0

func (*UnimplementedMsgServer) DeletePost added in v1.5.0

func (*UnimplementedMsgServer) Follow added in v1.5.0

func (*UnimplementedMsgServer) SetLike added in v1.5.0

func (*UnimplementedMsgServer) Unfollow added in v1.5.0

type UnimplementedQueryServer added in v1.5.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetPost added in v1.5.0

func (*UnimplementedQueryServer) ListFollowed added in v1.5.0

func (*UnimplementedQueryServer) ListUserPosts added in v1.5.0

func (*UnimplementedQueryServer) Moderators added in v1.5.0

Jump to

Keyboard shortcuts

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