types

package
v0.0.0-...-0943177 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreatePost           = "create_post"
	EventTypeEditPost             = "edit_post"
	EventTypeDeletePost           = "delete_post"
	EventTypeAddPostAttachment    = "add_post_attachment"
	EventTypeRemovePostAttachment = "remove_post_attachment"
	EventTypeAnswerPoll           = "answer_poll"
	EventTypeTallyPoll            = "tally_poll"

	AttributeValueCategory   = ModuleName
	AttributeKeySubspaceID   = "subspace_id"
	AttributeKeySectionID    = "section_id"
	AttributeKeyPostID       = "post_id"
	AttributeKeyAuthor       = "author"
	AttributeKeyCreationTime = "creation_date"
	AttributeKeyLastEditTime = "last_edit_date"
	AttributeKeyAttachmentID = "attachment_id"
	AttributeKeyPollID       = "poll_id"
)

Posts module event types

View Source
const (
	ModuleName   = "posts"
	RouterKey    = ModuleName
	StoreKey     = ModuleName
	QuerierRoute = ModuleName

	ActionCreatePost           = "create_post"
	ActionEditPost             = "edit_post"
	ActionAddPostAttachment    = "add_post_attachment"
	ActionRemovePostAttachment = "remove_post_attachment"
	ActionDeletePost           = "delete_post"
	ActionAnswerPoll           = "answer_poll"

	DoNotModify = "[do-not-modify]"
)
View Source
const (
	// DefaultParamsSpace represents the default paramspace for the Params keeper
	DefaultParamsSpace = ModuleName
)

Variables

View Source
var (
	ErrInvalidGenesis = sdkerrors.Register(ModuleName, 1, "invalid genesis state")
	ErrInvalidPost    = sdkerrors.Register(ModuleName, 2, "invalid post")
)
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 (
	NextPostIDPrefix       = []byte{0x00}
	PostPrefix             = []byte{0x01}
	PostSectionPrefix      = []byte{0x02}
	NextAttachmentIDPrefix = []byte{0x10}
	AttachmentPrefix       = []byte{0x11}
	UserAnswerPrefix       = []byte{0x20}
	ActivePollQueuePrefix  = []byte{0x21}
)
View Source
var (
	PostSectionPrefixLen = len(PostSectionPrefix)
	SubspaceIDLen        = len(subspacetypes.GetSubspaceIDBytes(1))
	SectionIDLen         = len(subspacetypes.GetSectionIDBytes(1))
	PostIDLen            = len(GetPostIDBytes(1))
)
View Source
var (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// PermissionWrite identifies users that can create content inside the subspace
	PermissionWrite = subspacestypes.RegisterPermission("write content")

	// PermissionComment identifies users that can comment posts inside the subspace
	PermissionComment = subspacestypes.RegisterPermission("comment content")

	// PermissionInteractWithContent allows users to interact with content inside the subspace (eg. polls)
	PermissionInteractWithContent = subspacestypes.RegisterPermission("interact with content")

	// PermissionEditOwnContent allows users to edit their own content inside the subspace
	PermissionEditOwnContent = subspacestypes.RegisterPermission("edit own content")

	// PermissionModerateContent allows users to moderate other user's content
	PermissionModerateContent = subspacestypes.RegisterPermission("moderate content")
)
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 (

	// AminoCodec references the global x/posts module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/posts and
	// defined at the application level.
	AminoCodec = codec.NewAminoCodec(amino)
)
View Source
var (
	// DefaultMaxTextLength represents the default max length for post texts
	DefaultMaxTextLength uint32 = 500
)
View Source
var (
	// MaxTextLengthKey represents the key used to store the max length for posts texts
	MaxTextLengthKey = []byte("MaxTextLength")
)
View Source
var PostReferenceType_name = map[int32]string{
	0: "POST_REFERENCE_TYPE_UNSPECIFIED",
	1: "POST_REFERENCE_TYPE_REPLY",
	2: "POST_REFERENCE_TYPE_QUOTE",
	3: "POST_REFERENCE_TYPE_REPOST",
}
View Source
var PostReferenceType_value = map[string]int32{
	"POST_REFERENCE_TYPE_UNSPECIFIED": 0,
	"POST_REFERENCE_TYPE_REPLY":       1,
	"POST_REFERENCE_TYPE_QUOTE":       2,
	"POST_REFERENCE_TYPE_REPOST":      3,
}
View Source
var ReplySetting_name = map[int32]string{
	0: "REPLY_SETTING_UNSPECIFIED",
	1: "REPLY_SETTING_EVERYONE",
	2: "REPLY_SETTING_FOLLOWERS",
	3: "REPLY_SETTING_MUTUAL",
	4: "REPLY_SETTING_MENTIONS",
}
View Source
var ReplySetting_value = map[string]int32{
	"REPLY_SETTING_UNSPECIFIED": 0,
	"REPLY_SETTING_EVERYONE":    1,
	"REPLY_SETTING_FOLLOWERS":   2,
	"REPLY_SETTING_MUTUAL":      3,
	"REPLY_SETTING_MENTIONS":    4,
}

Functions

func ActivePollByTimeKey

func ActivePollByTimeKey(endTime time.Time) []byte

ActivePollByTimeKey gets the active poll queue key by endTime

func ActivePollQueueKey

func ActivePollQueueKey(subspaceID uint64, postID uint64, pollID uint32, endTime time.Time) []byte

ActivePollQueueKey returns the key for a pollID in the activePollQueue

func AttachmentStoreKey

func AttachmentStoreKey(subspaceID uint64, postID uint64, attachmentID uint32) []byte

AttachmentStoreKey returns the store key that is used to store the attachment having the given id

func GetAttachmentIDBytes

func GetAttachmentIDBytes(attachmentID uint32) (attachmentIDBz []byte)

GetAttachmentIDBytes returns the byte representation of the attachmentID

func GetAttachmentIDFromBytes

func GetAttachmentIDFromBytes(bz []byte) (attachmentID uint32)

GetAttachmentIDFromBytes returns the attachmentID in uint32 format from a byte array

func GetPollIDBytes

func GetPollIDBytes(subspaceID uint64, postID uint64, pollID uint32) []byte

GetPollIDBytes returns the byte representation of the provided pollID

func GetPollIDFromBytes

func GetPollIDFromBytes(bz []byte) (subspaceID uint64, postID uint64, pollID uint32)

GetPollIDFromBytes returns the pollID in uint32 format from a byte array

func GetPostIDBytes

func GetPostIDBytes(postID uint64) (postIDBz []byte)

GetPostIDBytes returns the byte representation of the postID

func GetPostIDFromBytes

func GetPostIDFromBytes(bz []byte) (postID uint64)

GetPostIDFromBytes returns postID in uint64 format from a byte array

func GetSubspacePostIDBytes

func GetSubspacePostIDBytes(subspaceID uint64, postID uint64) []byte

GetSubspacePostIDBytes returns the byte representation of the subspaceID merged with the postID

func IsPoll

func IsPoll(attachment Attachment) bool

IsPoll tells whether the given attachment represents a poll or not

func NextAttachmentIDStoreKey

func NextAttachmentIDStoreKey(subspaceID uint64, postID uint64) []byte

NextAttachmentIDStoreKey returns the store key that is used to store the attachment id to be used next for the given post

func NextPostIDStoreKey

func NextPostIDStoreKey(subspaceID uint64) []byte

NextPostIDStoreKey returns the key uses to store the next post id for the given subspace

func PackAttachments

func PackAttachments(attachments []AttachmentContent) ([]*codectypes.Any, error)

PackAttachments packs the given AttachmentContent instances as Any instances

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable Key declaration for parameters

func ParseAttachmentID

func ParseAttachmentID(value string) (uint32, error)

ParseAttachmentID parses the given value as an attachment id, returning an error if it's invalid

func ParsePostID

func ParsePostID(value string) (uint64, error)

ParsePostID parses the given value as a post id, returning an error if it's invalid

func PollAnswerStoreKey

func PollAnswerStoreKey(subspaceID uint64, postID uint64, pollID uint32, user string) []byte

PollAnswerStoreKey returns the store key used to store the poll answer for the given user

func PollAnswersPrefix

func PollAnswersPrefix(subspaceID uint64, postID uint64, pollID uint32) []byte

PollAnswersPrefix returns the store prefix used to store the polls associated with the given post

func PostAttachmentsPrefix

func PostAttachmentsPrefix(subspaceID uint64, postID uint64) []byte

PostAttachmentsPrefix returns the store prefix used to store all the given post attachments

func PostSectionStoreKey

func PostSectionStoreKey(subspaceID uint64, sectionID uint32, postID uint64) []byte

PostSectionStoreKey returns the key used to store the section reference for the given post

func PostStoreKey

func PostStoreKey(subspaceID uint64, postID uint64) []byte

PostStoreKey returns the key for a specific post

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SectionPostsPrefix

func SectionPostsPrefix(subspaceID uint64, sectionID uint32) []byte

SectionPostsPrefix returns the prefix used to store all the section references for the given section

func SplitActivePollQueueKey

func SplitActivePollQueueKey(key []byte) (subspaceID uint64, postID uint64, pollID uint32, endTime time.Time)

SplitActivePollQueueKey split the active poll key and returns the poll id and endTime

func SplitPostSectionStoreKey

func SplitPostSectionStoreKey(key []byte) (subspaceID uint64, sectionID uint32, postID uint64)

func SubspacePostsPrefix

func SubspacePostsPrefix(subspaceID uint64) []byte

SubspacePostsPrefix returns the store prefix used to store all the posts related to the given subspace

func SubspaceSectionsPrefix

func SubspaceSectionsPrefix(subspaceID uint64) []byte

SubspaceSectionsPrefix returns the prefix used to store all the section references for the given subspace

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the given genesis state and returns an error if something is invalid

func ValidateMaxTextLength

func ValidateMaxTextLength(i interface{}) error

Types

type ActivePollData

type ActivePollData struct {
	SubspaceID uint64    `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	PostID     uint64    `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	PollID     uint32    `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"`
	EndDate    time.Time `protobuf:"bytes,4,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date"`
}

ActivePollData contains the data of an active poll

func NewActivePollData

func NewActivePollData(subspaceID uint64, postID uint64, pollID uint32, endTime time.Time) ActivePollData

NewActivePollData returns a new ActivePollData instance

func (*ActivePollData) Descriptor

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

func (*ActivePollData) Equal

func (this *ActivePollData) Equal(that interface{}) bool

func (*ActivePollData) GetEndDate

func (m *ActivePollData) GetEndDate() time.Time

func (*ActivePollData) GetPollID

func (m *ActivePollData) GetPollID() uint32

func (*ActivePollData) GetPostID

func (m *ActivePollData) GetPostID() uint64

func (*ActivePollData) GetSubspaceID

func (m *ActivePollData) GetSubspaceID() uint64

func (*ActivePollData) Marshal

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

func (*ActivePollData) MarshalTo

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

func (*ActivePollData) MarshalToSizedBuffer

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

func (*ActivePollData) ProtoMessage

func (*ActivePollData) ProtoMessage()

func (*ActivePollData) Reset

func (m *ActivePollData) Reset()

func (*ActivePollData) Size

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

func (*ActivePollData) String

func (m *ActivePollData) String() string

func (*ActivePollData) Unmarshal

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

func (ActivePollData) Validate

func (d ActivePollData) Validate() error

Validate returns an error if something is wrong with the poll data

func (*ActivePollData) XXX_DiscardUnknown

func (m *ActivePollData) XXX_DiscardUnknown()

func (*ActivePollData) XXX_Marshal

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

func (*ActivePollData) XXX_Merge

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

func (*ActivePollData) XXX_Size

func (m *ActivePollData) XXX_Size() int

func (*ActivePollData) XXX_Unmarshal

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

type Attachment

type Attachment struct {
	// Id of the subspace inside which the post to which this attachment should be
	// connected is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post to which this attachment should be connected
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// If of this attachment
	ID uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Content of the attachment
	Content *types.Any `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty" yaml:"content"`
}

Attachment contains the data of a single post attachment

func NewAttachment

func NewAttachment(subspaceID uint64, postID uint64, id uint32, content AttachmentContent) Attachment

NewAttachment returns a new Attachment instance

func (*Attachment) Descriptor

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

func (*Attachment) Equal

func (this *Attachment) Equal(that interface{}) bool

func (*Attachment) GetContent

func (m *Attachment) GetContent() *types.Any

func (*Attachment) GetID

func (m *Attachment) GetID() uint32

func (*Attachment) GetPostID

func (m *Attachment) GetPostID() uint64

func (*Attachment) GetSubspaceID

func (m *Attachment) GetSubspaceID() uint64

func (*Attachment) Marshal

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

func (*Attachment) MarshalTo

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

func (*Attachment) MarshalToSizedBuffer

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

func (*Attachment) ProtoMessage

func (*Attachment) ProtoMessage()

func (*Attachment) Reset

func (m *Attachment) Reset()

func (*Attachment) Size

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

func (*Attachment) String

func (m *Attachment) String() string

func (*Attachment) Unmarshal

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

func (*Attachment) UnpackInterfaces

func (a *Attachment) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (Attachment) Validate

func (a Attachment) Validate() error

Validate implements fmt.Validator

func (*Attachment) XXX_DiscardUnknown

func (m *Attachment) XXX_DiscardUnknown()

func (*Attachment) XXX_Marshal

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

func (*Attachment) XXX_Merge

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

func (*Attachment) XXX_Size

func (m *Attachment) XXX_Size() int

func (*Attachment) XXX_Unmarshal

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

type AttachmentContent

type AttachmentContent interface {
	proto.Message

	Validate() error
	// contains filtered or unexported methods
}

AttachmentContent represents an attachment content

func UnpackAttachments

func UnpackAttachments(cdc codectypes.AnyUnpacker, attachmentAnys []*codectypes.Any) ([]AttachmentContent, error)

UnpackAttachments unpacks the given Any instances as AttachmentContent

type Attachments

type Attachments []Attachment

Attachments represents a slice of Attachment objects

func NewAttachments

func NewAttachments(attachments ...Attachment) Attachments

NewAttachments returns a new Attachments instance

func (Attachments) Validate

func (a Attachments) Validate() error

Validate implements fmt.Validators fmt.Validator

type Entities

type Entities struct {
	// Hashtags represent inside the post text
	Hashtags []TextTag `protobuf:"bytes,1,rep,name=hashtags,proto3" json:"hashtags" yaml:"hashtags"`
	// Mentions present inside the post text
	Mentions []TextTag `protobuf:"bytes,2,rep,name=mentions,proto3" json:"mentions" yaml:"mentions"`
	// Links present inside the post text
	Urls []Url `protobuf:"bytes,3,rep,name=urls,proto3" json:"urls" yaml:"urls"`
}

Contains the details of entities parsed out of the post text

func NewEntities

func NewEntities(hashtags []TextTag, mentions []TextTag, urls []Url) *Entities

NewEntities returns a new Entities instance

func (*Entities) Descriptor

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

func (*Entities) Equal

func (this *Entities) Equal(that interface{}) bool

func (*Entities) GetHashtags

func (m *Entities) GetHashtags() []TextTag

func (*Entities) GetMentions

func (m *Entities) GetMentions() []TextTag

func (*Entities) GetUrls

func (m *Entities) GetUrls() []Url

func (*Entities) Marshal

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

func (*Entities) MarshalTo

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

func (*Entities) MarshalToSizedBuffer

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

func (*Entities) ProtoMessage

func (*Entities) ProtoMessage()

func (*Entities) Reset

func (m *Entities) Reset()

func (*Entities) Size

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

func (*Entities) String

func (m *Entities) String() string

func (*Entities) Unmarshal

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

func (*Entities) Validate

func (e *Entities) Validate() error

Validate implements fmt.Validator

func (*Entities) XXX_DiscardUnknown

func (m *Entities) XXX_DiscardUnknown()

func (*Entities) XXX_Marshal

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

func (*Entities) XXX_Merge

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

func (*Entities) XXX_Size

func (m *Entities) XXX_Size() int

func (*Entities) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	SubspacesData []SubspaceDataEntry `protobuf:"bytes,1,rep,name=subspaces_data,json=subspacesData,proto3" json:"subspaces_data"`
	PostsData     []PostDataEntry     `protobuf:"bytes,2,rep,name=posts_data,json=postsData,proto3" json:"posts_data"`
	Posts         []Post              `protobuf:"bytes,3,rep,name=posts,proto3" json:"posts"`
	Attachments   []Attachment        `protobuf:"bytes,4,rep,name=attachments,proto3" json:"attachments"`
	ActivePolls   []ActivePollData    `protobuf:"bytes,5,rep,name=active_polls,json=activePolls,proto3" json:"active_polls"`
	UserAnswers   []UserAnswer        `protobuf:"bytes,6,rep,name=user_answers,json=userAnswers,proto3" json:"user_answers"`
	Params        Params              `protobuf:"bytes,7,opt,name=params,proto3" json:"params"`
}

GenesisState contains the data of the genesis state for the posts module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default GenesisState

func NewGenesisState

func NewGenesisState(
	subspacesData []SubspaceDataEntry,
	posts []Post,
	postsData []PostDataEntry,
	attachments []Attachment,
	activePolls []ActivePollData,
	userAnswers []UserAnswer,
	params Params,
) *GenesisState

NewGenesisState returns a new GenesisState instance

func (*GenesisState) Descriptor

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

func (*GenesisState) Equal

func (this *GenesisState) Equal(that interface{}) bool

func (*GenesisState) GetActivePolls

func (m *GenesisState) GetActivePolls() []ActivePollData

func (*GenesisState) GetAttachments

func (m *GenesisState) GetAttachments() []Attachment

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPosts

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

func (*GenesisState) GetPostsData

func (m *GenesisState) GetPostsData() []PostDataEntry

func (*GenesisState) GetSubspacesData

func (m *GenesisState) GetSubspacesData() []SubspaceDataEntry

func (*GenesisState) GetUserAnswers

func (m *GenesisState) GetUserAnswers() []UserAnswer

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

func (e GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

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 Media

type Media struct {
	Uri      string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty" yaml:"uri"`
	MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty" yaml:"mime_type"`
}

Media represents a media attachment

func NewMedia

func NewMedia(uri, mimeType string) *Media

NewMedia returns a new Media instance

func (*Media) Descriptor

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

func (*Media) Equal

func (this *Media) Equal(that interface{}) bool

func (*Media) GetMimeType

func (m *Media) GetMimeType() string

func (*Media) GetUri

func (m *Media) GetUri() string

func (*Media) Marshal

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

func (*Media) MarshalTo

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

func (*Media) MarshalToSizedBuffer

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

func (*Media) ProtoMessage

func (*Media) ProtoMessage()

func (*Media) Reset

func (m *Media) Reset()

func (*Media) Size

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

func (*Media) String

func (m *Media) String() string

func (*Media) Unmarshal

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

func (*Media) Validate

func (m *Media) Validate() error

Validate implements fmt.Validator

func (*Media) XXX_DiscardUnknown

func (m *Media) XXX_DiscardUnknown()

func (*Media) XXX_Marshal

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

func (*Media) XXX_Merge

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

func (*Media) XXX_Size

func (m *Media) XXX_Size() int

func (*Media) XXX_Unmarshal

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

type MsgAddPostAttachment

type MsgAddPostAttachment struct {
	// Id of the subspace containing the post
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post to which to add the attachment
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Content of the attachment
	Content *types.Any `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" yaml:"content"`
	// Editor of the post
	Editor string `protobuf:"bytes,4,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}

MsgAddPostAttachment represents the message that should be used when adding an attachment to post

func NewMsgAddPostAttachment

func NewMsgAddPostAttachment(
	subspaceID uint64,
	postID uint64,
	content AttachmentContent,
	editor string,
) *MsgAddPostAttachment

NewMsgAddPostAttachment returns a new MsgAddPostAttachment instance

func (*MsgAddPostAttachment) Descriptor

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

func (*MsgAddPostAttachment) GetContent

func (m *MsgAddPostAttachment) GetContent() *types.Any

func (*MsgAddPostAttachment) GetEditor

func (m *MsgAddPostAttachment) GetEditor() string

func (*MsgAddPostAttachment) GetPostID

func (m *MsgAddPostAttachment) GetPostID() uint64

func (MsgAddPostAttachment) GetSignBytes

func (msg MsgAddPostAttachment) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgAddPostAttachment) GetSigners

func (msg MsgAddPostAttachment) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAddPostAttachment) GetSubspaceID

func (m *MsgAddPostAttachment) GetSubspaceID() uint64

func (*MsgAddPostAttachment) Marshal

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

func (*MsgAddPostAttachment) MarshalTo

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

func (*MsgAddPostAttachment) MarshalToSizedBuffer

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

func (*MsgAddPostAttachment) ProtoMessage

func (*MsgAddPostAttachment) ProtoMessage()

func (*MsgAddPostAttachment) Reset

func (m *MsgAddPostAttachment) Reset()

func (MsgAddPostAttachment) Route

func (msg MsgAddPostAttachment) Route() string

Route implements sdk.Msg

func (*MsgAddPostAttachment) Size

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

func (*MsgAddPostAttachment) String

func (m *MsgAddPostAttachment) String() string

func (MsgAddPostAttachment) Type

func (msg MsgAddPostAttachment) Type() string

Type implements sdk.Msg

func (*MsgAddPostAttachment) Unmarshal

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

func (*MsgAddPostAttachment) UnpackInterfaces

func (msg *MsgAddPostAttachment) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (MsgAddPostAttachment) ValidateBasic

func (msg MsgAddPostAttachment) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddPostAttachment) XXX_DiscardUnknown

func (m *MsgAddPostAttachment) XXX_DiscardUnknown()

func (*MsgAddPostAttachment) XXX_Marshal

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

func (*MsgAddPostAttachment) XXX_Merge

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

func (*MsgAddPostAttachment) XXX_Size

func (m *MsgAddPostAttachment) XXX_Size() int

func (*MsgAddPostAttachment) XXX_Unmarshal

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

type MsgAddPostAttachmentResponse

type MsgAddPostAttachmentResponse struct {
	// New id of the uploaded attachment
	AttachmentID uint32 `protobuf:"varint,1,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty" yaml:"attachment_id"`
	// Edit date of the post
	EditDate time.Time `protobuf:"bytes,2,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"`
}

MsgAddPostAttachmentResponse defines the Msg/AddPostAttachment response type.

func (*MsgAddPostAttachmentResponse) Descriptor

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

func (*MsgAddPostAttachmentResponse) GetAttachmentID

func (m *MsgAddPostAttachmentResponse) GetAttachmentID() uint32

func (*MsgAddPostAttachmentResponse) GetEditDate

func (m *MsgAddPostAttachmentResponse) GetEditDate() time.Time

func (*MsgAddPostAttachmentResponse) Marshal

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

func (*MsgAddPostAttachmentResponse) MarshalTo

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

func (*MsgAddPostAttachmentResponse) MarshalToSizedBuffer

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

func (*MsgAddPostAttachmentResponse) ProtoMessage

func (*MsgAddPostAttachmentResponse) ProtoMessage()

func (*MsgAddPostAttachmentResponse) Reset

func (m *MsgAddPostAttachmentResponse) Reset()

func (*MsgAddPostAttachmentResponse) Size

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

func (*MsgAddPostAttachmentResponse) String

func (*MsgAddPostAttachmentResponse) Unmarshal

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

func (*MsgAddPostAttachmentResponse) XXX_DiscardUnknown

func (m *MsgAddPostAttachmentResponse) XXX_DiscardUnknown()

func (*MsgAddPostAttachmentResponse) XXX_Marshal

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

func (*MsgAddPostAttachmentResponse) XXX_Merge

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

func (*MsgAddPostAttachmentResponse) XXX_Size

func (m *MsgAddPostAttachmentResponse) XXX_Size() int

func (*MsgAddPostAttachmentResponse) XXX_Unmarshal

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

type MsgAnswerPoll

type MsgAnswerPoll struct {
	// Id of the subspace containing the post
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post that contains the poll to be answered
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Id of the poll to be answered
	PollID uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty" yaml:"poll_id"`
	// Indexes of the answer inside the ProvidedAnswers array
	AnswersIndexes []uint32 `` /* 134-byte string literal not displayed */
	// Address of the user answering the poll
	Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgAnswerPoll represents the message used to answer a poll

func NewMsgAnswerPoll

func NewMsgAnswerPoll(
	subspaceID uint64,
	postID uint64,
	pollID uint32,
	answersIndexes []uint32,
	signer string,
) *MsgAnswerPoll

NewMsgAnswerPoll returns a new MsgAnswerPoll instance

func (*MsgAnswerPoll) Descriptor

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

func (*MsgAnswerPoll) GetAnswersIndexes

func (m *MsgAnswerPoll) GetAnswersIndexes() []uint32

func (*MsgAnswerPoll) GetPollID

func (m *MsgAnswerPoll) GetPollID() uint32

func (*MsgAnswerPoll) GetPostID

func (m *MsgAnswerPoll) GetPostID() uint64

func (MsgAnswerPoll) GetSignBytes

func (msg MsgAnswerPoll) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgAnswerPoll) GetSigner

func (m *MsgAnswerPoll) GetSigner() string

func (MsgAnswerPoll) GetSigners

func (msg MsgAnswerPoll) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAnswerPoll) GetSubspaceID

func (m *MsgAnswerPoll) GetSubspaceID() uint64

func (*MsgAnswerPoll) Marshal

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

func (*MsgAnswerPoll) MarshalTo

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

func (*MsgAnswerPoll) MarshalToSizedBuffer

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

func (*MsgAnswerPoll) ProtoMessage

func (*MsgAnswerPoll) ProtoMessage()

func (*MsgAnswerPoll) Reset

func (m *MsgAnswerPoll) Reset()

func (MsgAnswerPoll) Route

func (msg MsgAnswerPoll) Route() string

Route implements sdk.Msg

func (*MsgAnswerPoll) Size

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

func (*MsgAnswerPoll) String

func (m *MsgAnswerPoll) String() string

func (MsgAnswerPoll) Type

func (msg MsgAnswerPoll) Type() string

Type implements sdk.Msg

func (*MsgAnswerPoll) Unmarshal

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

func (MsgAnswerPoll) ValidateBasic

func (msg MsgAnswerPoll) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAnswerPoll) XXX_DiscardUnknown

func (m *MsgAnswerPoll) XXX_DiscardUnknown()

func (*MsgAnswerPoll) XXX_Marshal

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

func (*MsgAnswerPoll) XXX_Merge

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

func (*MsgAnswerPoll) XXX_Size

func (m *MsgAnswerPoll) XXX_Size() int

func (*MsgAnswerPoll) XXX_Unmarshal

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

type MsgAnswerPollResponse

type MsgAnswerPollResponse struct {
}

MsgAnswerPollResponse represents the MSg/AnswerPoll response type

func (*MsgAnswerPollResponse) Descriptor

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

func (*MsgAnswerPollResponse) Marshal

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

func (*MsgAnswerPollResponse) MarshalTo

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

func (*MsgAnswerPollResponse) MarshalToSizedBuffer

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

func (*MsgAnswerPollResponse) ProtoMessage

func (*MsgAnswerPollResponse) ProtoMessage()

func (*MsgAnswerPollResponse) Reset

func (m *MsgAnswerPollResponse) Reset()

func (*MsgAnswerPollResponse) Size

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

func (*MsgAnswerPollResponse) String

func (m *MsgAnswerPollResponse) String() string

func (*MsgAnswerPollResponse) Unmarshal

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

func (*MsgAnswerPollResponse) XXX_DiscardUnknown

func (m *MsgAnswerPollResponse) XXX_DiscardUnknown()

func (*MsgAnswerPollResponse) XXX_Marshal

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

func (*MsgAnswerPollResponse) XXX_Merge

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

func (*MsgAnswerPollResponse) XXX_Size

func (m *MsgAnswerPollResponse) XXX_Size() int

func (*MsgAnswerPollResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreatePost allows to create a new post
	CreatePost(ctx context.Context, in *MsgCreatePost, opts ...grpc.CallOption) (*MsgCreatePostResponse, error)
	// EditPost allows to edit an existing post
	EditPost(ctx context.Context, in *MsgEditPost, opts ...grpc.CallOption) (*MsgEditPostResponse, error)
	// DeletePost allows to delete an existing post
	DeletePost(ctx context.Context, in *MsgDeletePost, opts ...grpc.CallOption) (*MsgDeletePostResponse, error)
	// AddPostAttachment allows to add a new attachment to a post
	AddPostAttachment(ctx context.Context, in *MsgAddPostAttachment, opts ...grpc.CallOption) (*MsgAddPostAttachmentResponse, error)
	// RemovePostAttachment allows to remove an attachment from a post
	RemovePostAttachment(ctx context.Context, in *MsgRemovePostAttachment, opts ...grpc.CallOption) (*MsgRemovePostAttachmentResponse, error)
	// AnswerPoll allows to answer a post poll
	AnswerPoll(ctx context.Context, in *MsgAnswerPoll, opts ...grpc.CallOption) (*MsgAnswerPollResponse, 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 {
	// Id of the subspace inside which the post must be created
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section inside which the post must be created
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// (optional) External id for this post
	ExternalID string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty" yaml:"external_id"`
	// (optional) Text of the post
	Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
	// (optional) Entities connected to this post
	Entities *Entities `protobuf:"bytes,5,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"`
	// Tags connected to this post
	Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"`
	// Attachments of the post
	Attachments []*types.Any `protobuf:"bytes,7,rep,name=attachments,proto3" json:"attachments,omitempty" yaml:"attachments"`
	// Author of the post
	Author string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty" yaml:"author"`
	// (optional) Id of the original post of the conversation
	ConversationID uint64 `` /* 127-byte string literal not displayed */
	// Reply settings of this post
	ReplySettings ReplySetting `` /* 156-byte string literal not displayed */
	// A list this posts references (either as a reply, repost or quote)
	ReferencedPosts []PostReference `protobuf:"bytes,11,rep,name=referenced_posts,json=referencedPosts,proto3" json:"referenced_posts" yaml:"referenced_posts"`
}

MsgCreatePost represents the message to be used to create a post.

func NewMsgCreatePost

func NewMsgCreatePost(
	subspaceID uint64,
	sectionID uint32,
	externalID string,
	text string,
	conversationID uint64,
	replySettings ReplySetting,
	entities *Entities,
	tags []string,
	attachments []AttachmentContent,
	referencedPosts []PostReference,
	author string,
) *MsgCreatePost

NewMsgCreatePost returns a new MsgCreatePost instance

func (*MsgCreatePost) Descriptor

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

func (*MsgCreatePost) GetAttachments

func (m *MsgCreatePost) GetAttachments() []*types.Any

func (*MsgCreatePost) GetAuthor

func (m *MsgCreatePost) GetAuthor() string

func (*MsgCreatePost) GetConversationID

func (m *MsgCreatePost) GetConversationID() uint64

func (*MsgCreatePost) GetEntities

func (m *MsgCreatePost) GetEntities() *Entities

func (*MsgCreatePost) GetExternalID

func (m *MsgCreatePost) GetExternalID() string

func (*MsgCreatePost) GetReferencedPosts

func (m *MsgCreatePost) GetReferencedPosts() []PostReference

func (*MsgCreatePost) GetReplySettings

func (m *MsgCreatePost) GetReplySettings() ReplySetting

func (*MsgCreatePost) GetSectionID

func (m *MsgCreatePost) GetSectionID() uint32

func (MsgCreatePost) GetSignBytes

func (msg MsgCreatePost) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgCreatePost) GetSigners

func (msg MsgCreatePost) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreatePost) GetSubspaceID

func (m *MsgCreatePost) GetSubspaceID() uint64

func (*MsgCreatePost) GetTags

func (m *MsgCreatePost) GetTags() []string

func (*MsgCreatePost) GetText

func (m *MsgCreatePost) GetText() string

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 (msg MsgCreatePost) Route() string

Route implements sdk.Msg

func (*MsgCreatePost) Size

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

func (*MsgCreatePost) String

func (m *MsgCreatePost) String() string

func (MsgCreatePost) Type

func (msg MsgCreatePost) Type() string

Type implements sdk.Msg

func (*MsgCreatePost) Unmarshal

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

func (*MsgCreatePost) UnpackInterfaces

func (msg *MsgCreatePost) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (MsgCreatePost) ValidateBasic

func (msg MsgCreatePost) ValidateBasic() error

ValidateBasic implements sdk.Msg

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 {
	// Id of the newly created post
	PostID uint64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Creation date of the post
	CreationDate time.Time `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"`
}

MsgCreatePostResponse defines the Msg/CreatePost response type.

func (*MsgCreatePostResponse) Descriptor

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

func (*MsgCreatePostResponse) GetCreationDate

func (m *MsgCreatePostResponse) GetCreationDate() time.Time

func (*MsgCreatePostResponse) GetPostID

func (m *MsgCreatePostResponse) GetPostID() uint64

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 {
	// Id of the subspace containing the post
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post to be deleted
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// User that is deleting the post
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeletePost represents the message used when deleting a post.

func NewMsgDeletePost

func NewMsgDeletePost(subspaceID uint64, postID uint64, signer string) *MsgDeletePost

NewMsgDeletePost returns a new MsgDeletePost instance

func (*MsgDeletePost) Descriptor

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

func (*MsgDeletePost) GetPostID

func (m *MsgDeletePost) GetPostID() uint64

func (MsgDeletePost) GetSignBytes

func (msg MsgDeletePost) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDeletePost) GetSigner

func (m *MsgDeletePost) GetSigner() string

func (MsgDeletePost) GetSigners

func (msg MsgDeletePost) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDeletePost) GetSubspaceID

func (m *MsgDeletePost) GetSubspaceID() uint64

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 (msg MsgDeletePost) Route() string

Route implements sdk.Msg

func (*MsgDeletePost) Size

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

func (*MsgDeletePost) String

func (m *MsgDeletePost) String() string

func (MsgDeletePost) Type

func (msg MsgDeletePost) Type() string

Type implements sdk.Msg

func (*MsgDeletePost) Unmarshal

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

func (MsgDeletePost) ValidateBasic

func (msg MsgDeletePost) ValidateBasic() error

ValidateBasic implements sdk.Msg

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 {
}

MsgDeletePostResponse represents the Msg/DeletePost response type

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 MsgEditPost

type MsgEditPost struct {
	// Id of the subspace inside which the post is
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post to edit
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// New text of the post. If set to [do-not-modify] it will change the current
	// post's text.
	Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
	// New entities connected to this post. These will always replace the current
	// post's entities
	Entities *Entities `protobuf:"bytes,4,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"`
	// New tags connected to this post. These will always replace the current
	// post's tags
	Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"`
	// Editor of the post
	Editor string `protobuf:"bytes,6,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}

MsgEditPost represents the message to be used to edit a post.

func NewMsgEditPost

func NewMsgEditPost(
	subspaceID uint64,
	postID uint64,
	text string,
	entities *Entities,
	tags []string,
	editor string,
) *MsgEditPost

NewMsgEditPost returns a new MsgEditPost instance

func (*MsgEditPost) Descriptor

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

func (*MsgEditPost) GetEditor

func (m *MsgEditPost) GetEditor() string

func (*MsgEditPost) GetEntities

func (m *MsgEditPost) GetEntities() *Entities

func (*MsgEditPost) GetPostID

func (m *MsgEditPost) GetPostID() uint64

func (MsgEditPost) GetSignBytes

func (msg MsgEditPost) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgEditPost) GetSigners

func (msg MsgEditPost) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditPost) GetSubspaceID

func (m *MsgEditPost) GetSubspaceID() uint64

func (*MsgEditPost) GetTags

func (m *MsgEditPost) GetTags() []string

func (*MsgEditPost) GetText

func (m *MsgEditPost) GetText() string

func (*MsgEditPost) Marshal

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

func (*MsgEditPost) MarshalTo

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

func (*MsgEditPost) MarshalToSizedBuffer

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

func (*MsgEditPost) ProtoMessage

func (*MsgEditPost) ProtoMessage()

func (*MsgEditPost) Reset

func (m *MsgEditPost) Reset()

func (MsgEditPost) Route

func (msg MsgEditPost) Route() string

Route implements sdk.Msg

func (*MsgEditPost) Size

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

func (*MsgEditPost) String

func (m *MsgEditPost) String() string

func (MsgEditPost) Type

func (msg MsgEditPost) Type() string

Type implements sdk.Msg

func (*MsgEditPost) Unmarshal

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

func (MsgEditPost) ValidateBasic

func (msg MsgEditPost) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditPost) XXX_DiscardUnknown

func (m *MsgEditPost) XXX_DiscardUnknown()

func (*MsgEditPost) XXX_Marshal

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

func (*MsgEditPost) XXX_Merge

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

func (*MsgEditPost) XXX_Size

func (m *MsgEditPost) XXX_Size() int

func (*MsgEditPost) XXX_Unmarshal

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

type MsgEditPostResponse

type MsgEditPostResponse struct {
	// Edit date of the post
	EditDate time.Time `protobuf:"bytes,1,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"`
}

MsgCreatePostResponse defines the Msg/EditPost response type.

func (*MsgEditPostResponse) Descriptor

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

func (*MsgEditPostResponse) GetEditDate

func (m *MsgEditPostResponse) GetEditDate() time.Time

func (*MsgEditPostResponse) Marshal

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

func (*MsgEditPostResponse) MarshalTo

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

func (*MsgEditPostResponse) MarshalToSizedBuffer

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

func (*MsgEditPostResponse) ProtoMessage

func (*MsgEditPostResponse) ProtoMessage()

func (*MsgEditPostResponse) Reset

func (m *MsgEditPostResponse) Reset()

func (*MsgEditPostResponse) Size

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

func (*MsgEditPostResponse) String

func (m *MsgEditPostResponse) String() string

func (*MsgEditPostResponse) Unmarshal

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

func (*MsgEditPostResponse) XXX_DiscardUnknown

func (m *MsgEditPostResponse) XXX_DiscardUnknown()

func (*MsgEditPostResponse) XXX_Marshal

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

func (*MsgEditPostResponse) XXX_Merge

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

func (*MsgEditPostResponse) XXX_Size

func (m *MsgEditPostResponse) XXX_Size() int

func (*MsgEditPostResponse) XXX_Unmarshal

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

type MsgRemovePostAttachment

type MsgRemovePostAttachment struct {
	// Id of the subspace containing the post
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post from which to remove the attachment
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Id of the attachment to be removed
	AttachmentID uint32 `protobuf:"varint,3,opt,name=attachment_id,json=attachmentId,proto3" json:"attachment_id,omitempty" yaml:"attachment_id"`
	// User that is removing the attachment
	Editor string `protobuf:"bytes,4,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"`
}

MsgRemovePostAttachment represents the message to be used when removing an attachment from a post

func NewMsgRemovePostAttachment

func NewMsgRemovePostAttachment(subspaceID uint64, postID uint64, attachmentID uint32, editor string) *MsgRemovePostAttachment

NewMsgRemovePostAttachment returns a new MsgRemovePostAttachment instance

func (*MsgRemovePostAttachment) Descriptor

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

func (*MsgRemovePostAttachment) GetAttachmentID

func (m *MsgRemovePostAttachment) GetAttachmentID() uint32

func (*MsgRemovePostAttachment) GetEditor

func (m *MsgRemovePostAttachment) GetEditor() string

func (*MsgRemovePostAttachment) GetPostID

func (m *MsgRemovePostAttachment) GetPostID() uint64

func (MsgRemovePostAttachment) GetSignBytes

func (msg MsgRemovePostAttachment) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgRemovePostAttachment) GetSigners

func (msg MsgRemovePostAttachment) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgRemovePostAttachment) GetSubspaceID

func (m *MsgRemovePostAttachment) GetSubspaceID() uint64

func (*MsgRemovePostAttachment) Marshal

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

func (*MsgRemovePostAttachment) MarshalTo

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

func (*MsgRemovePostAttachment) MarshalToSizedBuffer

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

func (*MsgRemovePostAttachment) ProtoMessage

func (*MsgRemovePostAttachment) ProtoMessage()

func (*MsgRemovePostAttachment) Reset

func (m *MsgRemovePostAttachment) Reset()

func (MsgRemovePostAttachment) Route

func (msg MsgRemovePostAttachment) Route() string

Route implements sdk.Msg

func (*MsgRemovePostAttachment) Size

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

func (*MsgRemovePostAttachment) String

func (m *MsgRemovePostAttachment) String() string

func (MsgRemovePostAttachment) Type

func (msg MsgRemovePostAttachment) Type() string

Type implements sdk.Msg

func (*MsgRemovePostAttachment) Unmarshal

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

func (MsgRemovePostAttachment) ValidateBasic

func (msg MsgRemovePostAttachment) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemovePostAttachment) XXX_DiscardUnknown

func (m *MsgRemovePostAttachment) XXX_DiscardUnknown()

func (*MsgRemovePostAttachment) XXX_Marshal

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

func (*MsgRemovePostAttachment) XXX_Merge

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

func (*MsgRemovePostAttachment) XXX_Size

func (m *MsgRemovePostAttachment) XXX_Size() int

func (*MsgRemovePostAttachment) XXX_Unmarshal

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

type MsgRemovePostAttachmentResponse

type MsgRemovePostAttachmentResponse struct {
	// Edit date of the post
	EditDate time.Time `protobuf:"bytes,1,opt,name=edit_date,json=editDate,proto3,stdtime" json:"edit_date" yaml:"edit_date"`
}

MsgRemovePostAttachmentResponse defines the Msg/RemovePostAttachment response type.

func (*MsgRemovePostAttachmentResponse) Descriptor

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

func (*MsgRemovePostAttachmentResponse) GetEditDate

func (m *MsgRemovePostAttachmentResponse) GetEditDate() time.Time

func (*MsgRemovePostAttachmentResponse) Marshal

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

func (*MsgRemovePostAttachmentResponse) MarshalTo

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

func (*MsgRemovePostAttachmentResponse) MarshalToSizedBuffer

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

func (*MsgRemovePostAttachmentResponse) ProtoMessage

func (*MsgRemovePostAttachmentResponse) ProtoMessage()

func (*MsgRemovePostAttachmentResponse) Reset

func (*MsgRemovePostAttachmentResponse) Size

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

func (*MsgRemovePostAttachmentResponse) String

func (*MsgRemovePostAttachmentResponse) Unmarshal

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

func (*MsgRemovePostAttachmentResponse) XXX_DiscardUnknown

func (m *MsgRemovePostAttachmentResponse) XXX_DiscardUnknown()

func (*MsgRemovePostAttachmentResponse) XXX_Marshal

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

func (*MsgRemovePostAttachmentResponse) XXX_Merge

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

func (*MsgRemovePostAttachmentResponse) XXX_Size

func (m *MsgRemovePostAttachmentResponse) XXX_Size() int

func (*MsgRemovePostAttachmentResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreatePost allows to create a new post
	CreatePost(context.Context, *MsgCreatePost) (*MsgCreatePostResponse, error)
	// EditPost allows to edit an existing post
	EditPost(context.Context, *MsgEditPost) (*MsgEditPostResponse, error)
	// DeletePost allows to delete an existing post
	DeletePost(context.Context, *MsgDeletePost) (*MsgDeletePostResponse, error)
	// AddPostAttachment allows to add a new attachment to a post
	AddPostAttachment(context.Context, *MsgAddPostAttachment) (*MsgAddPostAttachmentResponse, error)
	// RemovePostAttachment allows to remove an attachment from a post
	RemovePostAttachment(context.Context, *MsgRemovePostAttachment) (*MsgRemovePostAttachmentResponse, error)
	// AnswerPoll allows to answer a post poll
	AnswerPoll(context.Context, *MsgAnswerPoll) (*MsgAnswerPollResponse, error)
}

MsgServer is the server API for Msg service.

type MultiPostsHooks

type MultiPostsHooks []PostsHooks

MultiPostsHooks combines multiple posts hooks, all hook functions are run in array sequence

func NewMultiPostsHooks

func NewMultiPostsHooks(hooks ...PostsHooks) MultiPostsHooks

func (MultiPostsHooks) AfterAttachmentDeleted

func (h MultiPostsHooks) AfterAttachmentDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)

AfterAttachmentDeleted implements PostsHooks

func (MultiPostsHooks) AfterAttachmentSaved

func (h MultiPostsHooks) AfterAttachmentSaved(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)

AfterAttachmentSaved implements PostsHooks

func (MultiPostsHooks) AfterPollAnswerDeleted

func (h MultiPostsHooks) AfterPollAnswerDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)

AfterPollAnswerDeleted implements PostsHooks

func (MultiPostsHooks) AfterPollAnswerSaved

func (h MultiPostsHooks) AfterPollAnswerSaved(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)

AfterPollAnswerSaved implements PostsHooks

func (MultiPostsHooks) AfterPollVotingPeriodEnded

func (h MultiPostsHooks) AfterPollVotingPeriodEnded(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32)

AfterPollVotingPeriodEnded implements PostsHooks

func (MultiPostsHooks) AfterPostDeleted

func (h MultiPostsHooks) AfterPostDeleted(ctx sdk.Context, subspaceID uint64, postID uint64)

AfterPostDeleted implements PostsHooks

func (MultiPostsHooks) AfterPostSaved

func (h MultiPostsHooks) AfterPostSaved(ctx sdk.Context, subspaceID uint64, postID uint64)

AfterPostSaved implements PostsHooks

type Params

type Params struct {
	// Maximum length of the post text
	MaxTextLength uint32 `` /* 126-byte string literal not displayed */
}

Params contains the parameters for the posts module

func DefaultParams

func DefaultParams() Params

DefaultParams return default paramsModule

func NewParams

func NewParams(maxTextLength uint32) Params

NewParams returns a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetMaxTextLength

func (m *Params) GetMaxTextLength() uint32

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 (params *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns the key/value pairs of posts module's parameters.

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 (params Params) Validate() error

Validate perform basic checks on all parameters to ensure they are correct

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 Poll

type Poll struct {
	// Question of the poll
	Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty" yaml:"question"`
	// Answers the users can choose from
	ProvidedAnswers []Poll_ProvidedAnswer `protobuf:"bytes,2,rep,name=provided_answers,json=providedAnswers,proto3" json:"provided_answers" yaml:"provided_answers"`
	// Date at which the poll will close
	EndDate time.Time `protobuf:"bytes,3,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date" yaml:"end_date"`
	// Whether the poll allows multiple choices from the same user or not
	AllowsMultipleAnswers bool `` /* 158-byte string literal not displayed */
	// Whether the poll allows to edit an answer or not
	AllowsAnswerEdits bool `` /* 143-byte string literal not displayed */
	// Final poll results
	FinalTallyResults *PollTallyResults `` /* 141-byte string literal not displayed */
}

Poll represents a poll attachment

func NewPoll

func NewPoll(
	question string,
	providedAnswers []Poll_ProvidedAnswer,
	endDate time.Time,
	allowsMultipleAnswers bool,
	allowsAnswerEdits bool,
	tallyResults *PollTallyResults,
) *Poll

NewPoll returns a new Poll instance

func (*Poll) Descriptor

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

func (*Poll) Equal

func (this *Poll) Equal(that interface{}) bool

func (*Poll) GetAllowsAnswerEdits

func (m *Poll) GetAllowsAnswerEdits() bool

func (*Poll) GetAllowsMultipleAnswers

func (m *Poll) GetAllowsMultipleAnswers() bool

func (*Poll) GetEndDate

func (m *Poll) GetEndDate() time.Time

func (*Poll) GetFinalTallyResults

func (m *Poll) GetFinalTallyResults() *PollTallyResults

func (*Poll) GetProvidedAnswers

func (m *Poll) GetProvidedAnswers() []Poll_ProvidedAnswer

func (*Poll) GetQuestion

func (m *Poll) GetQuestion() string

func (*Poll) Marshal

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

func (*Poll) MarshalTo

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

func (*Poll) MarshalToSizedBuffer

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

func (*Poll) ProtoMessage

func (*Poll) ProtoMessage()

func (*Poll) Reset

func (m *Poll) Reset()

func (*Poll) Size

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

func (*Poll) String

func (m *Poll) String() string

func (*Poll) Unmarshal

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

func (*Poll) Validate

func (p *Poll) Validate() error

Validate implements fmt.Validator

func (*Poll) XXX_DiscardUnknown

func (m *Poll) XXX_DiscardUnknown()

func (*Poll) XXX_Marshal

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

func (*Poll) XXX_Merge

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

func (*Poll) XXX_Size

func (m *Poll) XXX_Size() int

func (*Poll) XXX_Unmarshal

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

type PollTallyResults

type PollTallyResults struct {
	Results []PollTallyResults_AnswerResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results" yaml:"results"`
}

PollTallyResults contains the tally results for a poll

func NewPollTallyResults

func NewPollTallyResults(results []PollTallyResults_AnswerResult) *PollTallyResults

NewPollTallyResults returns a new PollTallyResults instance

func (*PollTallyResults) Descriptor

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

func (*PollTallyResults) Equal

func (this *PollTallyResults) Equal(that interface{}) bool

func (*PollTallyResults) GetResults

func (*PollTallyResults) Marshal

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

func (*PollTallyResults) MarshalTo

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

func (*PollTallyResults) MarshalToSizedBuffer

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

func (*PollTallyResults) ProtoMessage

func (*PollTallyResults) ProtoMessage()

func (*PollTallyResults) Reset

func (m *PollTallyResults) Reset()

func (*PollTallyResults) Size

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

func (*PollTallyResults) String

func (m *PollTallyResults) String() string

func (*PollTallyResults) Unmarshal

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

func (*PollTallyResults) Validate

func (r *PollTallyResults) Validate() error

Validate implements fmt.Validator

func (*PollTallyResults) XXX_DiscardUnknown

func (m *PollTallyResults) XXX_DiscardUnknown()

func (*PollTallyResults) XXX_Marshal

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

func (*PollTallyResults) XXX_Merge

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

func (*PollTallyResults) XXX_Size

func (m *PollTallyResults) XXX_Size() int

func (*PollTallyResults) XXX_Unmarshal

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

type PollTallyResults_AnswerResult

type PollTallyResults_AnswerResult struct {
	// Index of the answer inside the poll's ProvidedAnswers slice
	AnswerIndex uint32 `protobuf:"varint,1,opt,name=answer_index,json=answerIndex,proto3" json:"answer_index,omitempty" yaml:"answer_index"`
	// Number of votes the answer has received
	Votes uint64 `protobuf:"varint,2,opt,name=votes,proto3" json:"votes,omitempty" yaml:"votes"`
}

AnswerResult contains the result of a single poll provided answer

func NewAnswerResult

func NewAnswerResult(answerIndex uint32, votes uint64) PollTallyResults_AnswerResult

NewAnswerResult returns a new PollTallyResults_AnswerResult instance

func (*PollTallyResults_AnswerResult) Descriptor

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

func (*PollTallyResults_AnswerResult) Equal

func (this *PollTallyResults_AnswerResult) Equal(that interface{}) bool

func (*PollTallyResults_AnswerResult) GetAnswerIndex

func (m *PollTallyResults_AnswerResult) GetAnswerIndex() uint32

func (*PollTallyResults_AnswerResult) GetVotes

func (m *PollTallyResults_AnswerResult) GetVotes() uint64

func (*PollTallyResults_AnswerResult) Marshal

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

func (*PollTallyResults_AnswerResult) MarshalTo

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

func (*PollTallyResults_AnswerResult) MarshalToSizedBuffer

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

func (*PollTallyResults_AnswerResult) ProtoMessage

func (*PollTallyResults_AnswerResult) ProtoMessage()

func (*PollTallyResults_AnswerResult) Reset

func (m *PollTallyResults_AnswerResult) Reset()

func (*PollTallyResults_AnswerResult) Size

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

func (*PollTallyResults_AnswerResult) String

func (*PollTallyResults_AnswerResult) Unmarshal

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

func (*PollTallyResults_AnswerResult) XXX_DiscardUnknown

func (m *PollTallyResults_AnswerResult) XXX_DiscardUnknown()

func (*PollTallyResults_AnswerResult) XXX_Marshal

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

func (*PollTallyResults_AnswerResult) XXX_Merge

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

func (*PollTallyResults_AnswerResult) XXX_Size

func (m *PollTallyResults_AnswerResult) XXX_Size() int

func (*PollTallyResults_AnswerResult) XXX_Unmarshal

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

type Poll_ProvidedAnswer

type Poll_ProvidedAnswer struct {
	// (optional) Text of the answer
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
	// Attachments of the answer
	Attachments []Attachment `protobuf:"bytes,2,rep,name=attachments,proto3" json:"attachments" yaml:"attachments"`
}

Provided answer contains the details of a possible poll answer

func NewProvidedAnswer

func NewProvidedAnswer(text string, attachments []Attachment) Poll_ProvidedAnswer

NewProvidedAnswer returns a new Poll_ProvidedAnswer instance

func (*Poll_ProvidedAnswer) Descriptor

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

func (*Poll_ProvidedAnswer) Equal

func (this *Poll_ProvidedAnswer) Equal(that interface{}) bool

func (*Poll_ProvidedAnswer) GetAttachments

func (m *Poll_ProvidedAnswer) GetAttachments() []Attachment

func (*Poll_ProvidedAnswer) GetText

func (m *Poll_ProvidedAnswer) GetText() string

func (*Poll_ProvidedAnswer) Marshal

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

func (*Poll_ProvidedAnswer) MarshalTo

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

func (*Poll_ProvidedAnswer) MarshalToSizedBuffer

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

func (*Poll_ProvidedAnswer) ProtoMessage

func (*Poll_ProvidedAnswer) ProtoMessage()

func (*Poll_ProvidedAnswer) Reset

func (m *Poll_ProvidedAnswer) Reset()

func (*Poll_ProvidedAnswer) Size

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

func (*Poll_ProvidedAnswer) String

func (m *Poll_ProvidedAnswer) String() string

func (*Poll_ProvidedAnswer) Unmarshal

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

func (Poll_ProvidedAnswer) Validate

func (a Poll_ProvidedAnswer) Validate() error

Validate implements fmt.Validator

func (*Poll_ProvidedAnswer) XXX_DiscardUnknown

func (m *Poll_ProvidedAnswer) XXX_DiscardUnknown()

func (*Poll_ProvidedAnswer) XXX_Marshal

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

func (*Poll_ProvidedAnswer) XXX_Merge

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

func (*Poll_ProvidedAnswer) XXX_Size

func (m *Poll_ProvidedAnswer) XXX_Size() int

func (*Poll_ProvidedAnswer) XXX_Unmarshal

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

type Post

type Post struct {
	// Id of the subspace inside which the post has been created
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the section inside which the post has been created
	SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"`
	// Unique id of the post
	ID uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// (optional) External id for this post
	ExternalID string `protobuf:"bytes,4,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty" yaml:"external_id"`
	// (optional) Text of the post
	Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty" yaml:"text"`
	// (optional) Entities connected to this post
	Entities *Entities `protobuf:"bytes,6,opt,name=entities,proto3" json:"entities,omitempty" yaml:"entities"`
	// Tags related to this post, useful for categorization
	Tags []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty" yaml:"tags"`
	// Author of the post
	Author string `protobuf:"bytes,8,opt,name=author,proto3" json:"author,omitempty" yaml:"author"`
	// (optional) Id of the original post of the conversation
	ConversationID uint64 `` /* 127-byte string literal not displayed */
	// A list this posts references (either as a reply, repost or quote)
	ReferencedPosts []PostReference `protobuf:"bytes,10,rep,name=referenced_posts,json=referencedPosts,proto3" json:"referenced_posts" yaml:"referenced_posts"`
	// Reply settings of this post
	ReplySettings ReplySetting `` /* 156-byte string literal not displayed */
	// Creation date of the post
	CreationDate time.Time `protobuf:"bytes,12,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"`
	// (optional) Last edited time of the post
	LastEditedDate *time.Time `` /* 138-byte string literal not displayed */
}

Post contains all the information about a single post

func NewPost

func NewPost(
	subspaceID uint64,
	sectionID uint32,
	id uint64,
	externalID string,
	text string,
	author string,
	conversationID uint64,
	entities *Entities,
	tags []string,
	referencedPosts []PostReference,
	replySetting ReplySetting,
	creationDate time.Time,
	lastEditedDate *time.Time,
) Post

NewPost allows to build a new Post instance

func (*Post) Descriptor

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

func (*Post) Equal

func (this *Post) Equal(that interface{}) bool

func (*Post) GetAuthor

func (m *Post) GetAuthor() string

func (*Post) GetConversationID

func (m *Post) GetConversationID() uint64

func (*Post) GetCreationDate

func (m *Post) GetCreationDate() time.Time

func (*Post) GetEntities

func (m *Post) GetEntities() *Entities

func (*Post) GetExternalID

func (m *Post) GetExternalID() string

func (*Post) GetID

func (m *Post) GetID() uint64

func (*Post) GetLastEditedDate

func (m *Post) GetLastEditedDate() *time.Time

func (Post) GetMentionedUsers

func (p Post) GetMentionedUsers() []string

GetMentionedUsers returns all the mentioned users

func (*Post) GetReferencedPosts

func (m *Post) GetReferencedPosts() []PostReference

func (*Post) GetReplySettings

func (m *Post) GetReplySettings() ReplySetting

func (*Post) GetSectionID

func (m *Post) GetSectionID() uint32

func (*Post) GetSubspaceID

func (m *Post) GetSubspaceID() uint64

func (*Post) GetTags

func (m *Post) GetTags() []string

func (*Post) GetText

func (m *Post) GetText() string

func (Post) IsUserMentioned

func (p Post) IsUserMentioned(user string) bool

IsUserMentioned tells whether the given user is mentioned inside the post or not

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

func (p Post) Update(update PostUpdate) Post

Update updates the fields of a given post without validating it. Before storing the updated post, a validation with keeper.ValidatePost should be performed.

func (Post) Validate

func (p Post) Validate() error

Validate implements fmt.Validator

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 PostDataEntry

type PostDataEntry struct {
	SubspaceID          uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	PostID              uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	InitialAttachmentID uint32 `protobuf:"varint,3,opt,name=initial_attachment_id,json=initialAttachmentId,proto3" json:"initial_attachment_id,omitempty"`
}

PostDataEntry contains the data of a given post

func NewPostDataEntry

func NewPostDataEntry(subspaceID uint64, postID uint64, attachmentID uint32) PostDataEntry

NewPostDataEntry returns a new PostDataEntry instance

func (*PostDataEntry) Descriptor

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

func (*PostDataEntry) Equal

func (this *PostDataEntry) Equal(that interface{}) bool

func (*PostDataEntry) GetInitialAttachmentID

func (m *PostDataEntry) GetInitialAttachmentID() uint32

func (*PostDataEntry) GetPostID

func (m *PostDataEntry) GetPostID() uint64

func (*PostDataEntry) GetSubspaceID

func (m *PostDataEntry) GetSubspaceID() uint64

func (*PostDataEntry) Marshal

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

func (*PostDataEntry) MarshalTo

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

func (*PostDataEntry) MarshalToSizedBuffer

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

func (*PostDataEntry) ProtoMessage

func (*PostDataEntry) ProtoMessage()

func (*PostDataEntry) Reset

func (m *PostDataEntry) Reset()

func (*PostDataEntry) Size

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

func (*PostDataEntry) String

func (m *PostDataEntry) String() string

func (*PostDataEntry) Unmarshal

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

func (PostDataEntry) Validate

func (p PostDataEntry) Validate() error

Validate returns an error if something is wrong within the entry

func (*PostDataEntry) XXX_DiscardUnknown

func (m *PostDataEntry) XXX_DiscardUnknown()

func (*PostDataEntry) XXX_Marshal

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

func (*PostDataEntry) XXX_Merge

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

func (*PostDataEntry) XXX_Size

func (m *PostDataEntry) XXX_Size() int

func (*PostDataEntry) XXX_Unmarshal

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

type PostReference

type PostReference struct {
	// Type of reference
	Type PostReferenceType `protobuf:"varint,1,opt,name=type,proto3,enum=mage.posts.v2.PostReferenceType" json:"type,omitempty" yaml:"type"`
	// Id of the referenced post
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Position of the reference inside the post's text. This should be used only
	// with the type set to TYPE_QUOTE
	Position uint64 `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty" yaml:"position"`
}

PostReference contains the details of a post reference

func NewPostReference

func NewPostReference(referenceType PostReferenceType, postID uint64, position uint64) PostReference

NewPostReference returns a new PostReference instance

func (*PostReference) Descriptor

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

func (*PostReference) Equal

func (this *PostReference) Equal(that interface{}) bool

func (*PostReference) GetPosition

func (m *PostReference) GetPosition() uint64

func (*PostReference) GetPostID

func (m *PostReference) GetPostID() uint64

func (*PostReference) GetType

func (m *PostReference) GetType() PostReferenceType

func (*PostReference) Marshal

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

func (*PostReference) MarshalTo

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

func (*PostReference) MarshalToSizedBuffer

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

func (*PostReference) ProtoMessage

func (*PostReference) ProtoMessage()

func (*PostReference) Reset

func (m *PostReference) Reset()

func (*PostReference) Size

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

func (*PostReference) String

func (m *PostReference) String() string

func (*PostReference) Unmarshal

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

func (PostReference) Validate

func (r PostReference) Validate() error

Validate implements fmt.Validator

func (*PostReference) XXX_DiscardUnknown

func (m *PostReference) XXX_DiscardUnknown()

func (*PostReference) XXX_Marshal

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

func (*PostReference) XXX_Merge

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

func (*PostReference) XXX_Size

func (m *PostReference) XXX_Size() int

func (*PostReference) XXX_Unmarshal

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

type PostReferenceType

type PostReferenceType int32

PostReferenceType represents the different types of references

const (
	// No reference specified
	POST_REFERENCE_TYPE_UNSPECIFIED PostReferenceType = 0
	// This reference represents a reply to the specified post
	POST_REFERENCE_TYPE_REPLY PostReferenceType = 1
	// This reference represents a quote of the specified post
	POST_REFERENCE_TYPE_QUOTE PostReferenceType = 2
	// This reference represents a repost of the specified post
	POST_REFERENCE_TYPE_REPOST PostReferenceType = 3
)

func (PostReferenceType) EnumDescriptor

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

func (PostReferenceType) String

func (x PostReferenceType) String() string

type PostUpdate

type PostUpdate struct {
	// If it shouldn't replace the current text, it must be set to types.DoNotModify
	Text string

	// Update's entities will always replace the existing ones
	Entities *Entities

	// Update's tags will always replace the existing ones
	Tags []string

	UpdateTime time.Time
}

PostUpdate contains all the data that can be updated about a post. When performing an update, if a text field should not be edited then it must be set to types.DoNotModify.

func NewPostUpdate

func NewPostUpdate(text string, entities *Entities, tags []string, updateTime time.Time) PostUpdate

NewPostUpdate returns a new PostUpdate instance

type PostsHooks

type PostsHooks interface {
	AfterPostSaved(ctx sdk.Context, subspaceID uint64, postID uint64)   // Must be called when a post is saved
	AfterPostDeleted(ctx sdk.Context, subspaceID uint64, postID uint64) // Must be called when a post is deleted

	AfterAttachmentSaved(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32)   // Must be called when a post attachment is saved
	AfterAttachmentDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, attachmentID uint32) // Must be called when a post attachment is deleted

	AfterPollAnswerSaved(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string)   // Must be called when a poll user answer is saved
	AfterPollAnswerDeleted(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32, user string) // Must be called when a poll user answer is deleted

	AfterPollVotingPeriodEnded(ctx sdk.Context, subspaceID uint64, postID uint64, pollID uint32) // Must be called when a poll tally results are saved
}

PostsHooks event hooks for posts objects (noalias)

type PostsMsg

type PostsMsg struct {
	CreatePost           *json.RawMessage `json:"create_post"`
	EditPost             *json.RawMessage `json:"edit_post"`
	DeletePost           *json.RawMessage `json:"delete_post"`
	AddPostAttachment    *json.RawMessage `json:"add_post_attachment"`
	RemovePostAttachment *json.RawMessage `json:"remove_post_attachment"`
	AnswerPoll           *json.RawMessage `json:"answer_poll"`
}

type PostsQuery

type PostsQuery struct {
	SubspacePosts   *json.RawMessage `json:"subspace_posts"`
	SectionPosts    *json.RawMessage `json:"section_posts"`
	Post            *json.RawMessage `json:"post"`
	PostAttachments *json.RawMessage `json:"post_attachments"`
	PollAnswers     *json.RawMessage `json:"poll_answers"`
}

type ProfilesKeeper

type ProfilesKeeper interface {
	// HasProfile returns true iff the given user has a profile
	HasProfile(ctx sdk.Context, user string) bool
}

ProfilesKeeper represents a keeper that deals with profiles

type QueryClient

type QueryClient interface {
	// SubspacePosts queries all the posts inside a given subspace
	SubspacePosts(ctx context.Context, in *QuerySubspacePostsRequest, opts ...grpc.CallOption) (*QuerySubspacePostsResponse, error)
	// SectionPosts queries all the posts inside a given section
	SectionPosts(ctx context.Context, in *QuerySectionPostsRequest, opts ...grpc.CallOption) (*QuerySectionPostsResponse, error)
	// Post queries for a single post inside a given subspace
	Post(ctx context.Context, in *QueryPostRequest, opts ...grpc.CallOption) (*QueryPostResponse, error)
	// PostAttachments queries the attachments of the post having the given id
	PostAttachments(ctx context.Context, in *QueryPostAttachmentsRequest, opts ...grpc.CallOption) (*QueryPostAttachmentsResponse, error)
	// PollAnswers queries the answers for the poll having the given id
	PollAnswers(ctx context.Context, in *QueryPollAnswersRequest, opts ...grpc.CallOption) (*QueryPollAnswersResponse, error)
	// Params queries the module parameters
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method

func NewQueryParamsRequest

func NewQueryParamsRequest() *QueryParamsRequest

NewQueryParamsRequest returns a new QueryParamsRequest instance

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryPollAnswersRequest

type QueryPollAnswersRequest struct {
	// Id of the subspace where the post is stored
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the post that holds the poll
	PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	// Id of the poll to query the answers for
	PollId uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty"`
	// (Optional) Address of the user to query the responses for
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPollAnswersRequest is the request type for the Query/PollAnswers RPC method

func NewQueryPollAnswersRequest

func NewQueryPollAnswersRequest(
	subspaceID uint64, postID uint64, pollID uint32, user string, pagination *query.PageRequest,
) *QueryPollAnswersRequest

NewQueryPollAnswersRequest returns a new QueryPollAnswersRequest instance

func (*QueryPollAnswersRequest) Descriptor

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

func (*QueryPollAnswersRequest) GetPagination

func (m *QueryPollAnswersRequest) GetPagination() *query.PageRequest

func (*QueryPollAnswersRequest) GetPollId

func (m *QueryPollAnswersRequest) GetPollId() uint32

func (*QueryPollAnswersRequest) GetPostId

func (m *QueryPollAnswersRequest) GetPostId() uint64

func (*QueryPollAnswersRequest) GetSubspaceId

func (m *QueryPollAnswersRequest) GetSubspaceId() uint64

func (*QueryPollAnswersRequest) GetUser

func (m *QueryPollAnswersRequest) GetUser() string

func (*QueryPollAnswersRequest) Marshal

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

func (*QueryPollAnswersRequest) MarshalTo

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

func (*QueryPollAnswersRequest) MarshalToSizedBuffer

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

func (*QueryPollAnswersRequest) ProtoMessage

func (*QueryPollAnswersRequest) ProtoMessage()

func (*QueryPollAnswersRequest) Reset

func (m *QueryPollAnswersRequest) Reset()

func (*QueryPollAnswersRequest) Size

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

func (*QueryPollAnswersRequest) String

func (m *QueryPollAnswersRequest) String() string

func (*QueryPollAnswersRequest) Unmarshal

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

func (*QueryPollAnswersRequest) XXX_DiscardUnknown

func (m *QueryPollAnswersRequest) XXX_DiscardUnknown()

func (*QueryPollAnswersRequest) XXX_Marshal

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

func (*QueryPollAnswersRequest) XXX_Merge

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

func (*QueryPollAnswersRequest) XXX_Size

func (m *QueryPollAnswersRequest) XXX_Size() int

func (*QueryPollAnswersRequest) XXX_Unmarshal

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

type QueryPollAnswersResponse

type QueryPollAnswersResponse struct {
	Answers    []UserAnswer        `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPollAnswersResponse is the response type for the Query/PollAnswers RPC method

func (*QueryPollAnswersResponse) Descriptor

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

func (*QueryPollAnswersResponse) GetAnswers

func (m *QueryPollAnswersResponse) GetAnswers() []UserAnswer

func (*QueryPollAnswersResponse) GetPagination

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

func (*QueryPollAnswersResponse) Marshal

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

func (*QueryPollAnswersResponse) MarshalTo

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

func (*QueryPollAnswersResponse) MarshalToSizedBuffer

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

func (*QueryPollAnswersResponse) ProtoMessage

func (*QueryPollAnswersResponse) ProtoMessage()

func (*QueryPollAnswersResponse) Reset

func (m *QueryPollAnswersResponse) Reset()

func (*QueryPollAnswersResponse) Size

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

func (*QueryPollAnswersResponse) String

func (m *QueryPollAnswersResponse) String() string

func (*QueryPollAnswersResponse) Unmarshal

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

func (*QueryPollAnswersResponse) XXX_DiscardUnknown

func (m *QueryPollAnswersResponse) XXX_DiscardUnknown()

func (*QueryPollAnswersResponse) XXX_Marshal

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

func (*QueryPollAnswersResponse) XXX_Merge

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

func (*QueryPollAnswersResponse) XXX_Size

func (m *QueryPollAnswersResponse) XXX_Size() int

func (*QueryPollAnswersResponse) XXX_Unmarshal

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

type QueryPostAttachmentsRequest

type QueryPostAttachmentsRequest struct {
	// Id of the subspace where the post is stored
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the post to query the attachments for
	PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPostsRequest is the request type for the Query/PostAttachments RPC method

func NewQueryPostAttachmentsRequest

func NewQueryPostAttachmentsRequest(
	subspaceID uint64, postID uint64, pagination *query.PageRequest,
) *QueryPostAttachmentsRequest

NewQueryPostAttachmentsRequest returns a new QueryPostAttachmentsRequest instance

func (*QueryPostAttachmentsRequest) Descriptor

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

func (*QueryPostAttachmentsRequest) GetPagination

func (m *QueryPostAttachmentsRequest) GetPagination() *query.PageRequest

func (*QueryPostAttachmentsRequest) GetPostId

func (m *QueryPostAttachmentsRequest) GetPostId() uint64

func (*QueryPostAttachmentsRequest) GetSubspaceId

func (m *QueryPostAttachmentsRequest) GetSubspaceId() uint64

func (*QueryPostAttachmentsRequest) Marshal

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

func (*QueryPostAttachmentsRequest) MarshalTo

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

func (*QueryPostAttachmentsRequest) MarshalToSizedBuffer

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

func (*QueryPostAttachmentsRequest) ProtoMessage

func (*QueryPostAttachmentsRequest) ProtoMessage()

func (*QueryPostAttachmentsRequest) Reset

func (m *QueryPostAttachmentsRequest) Reset()

func (*QueryPostAttachmentsRequest) Size

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

func (*QueryPostAttachmentsRequest) String

func (m *QueryPostAttachmentsRequest) String() string

func (*QueryPostAttachmentsRequest) Unmarshal

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

func (*QueryPostAttachmentsRequest) XXX_DiscardUnknown

func (m *QueryPostAttachmentsRequest) XXX_DiscardUnknown()

func (*QueryPostAttachmentsRequest) XXX_Marshal

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

func (*QueryPostAttachmentsRequest) XXX_Merge

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

func (*QueryPostAttachmentsRequest) XXX_Size

func (m *QueryPostAttachmentsRequest) XXX_Size() int

func (*QueryPostAttachmentsRequest) XXX_Unmarshal

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

type QueryPostAttachmentsResponse

type QueryPostAttachmentsResponse struct {
	Attachments []Attachment        `protobuf:"bytes,1,rep,name=attachments,proto3" json:"attachments"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPostAttachmentsResponse is the response type for the Query/PostAttachments RPC method

func (*QueryPostAttachmentsResponse) Descriptor

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

func (*QueryPostAttachmentsResponse) GetAttachments

func (m *QueryPostAttachmentsResponse) GetAttachments() []Attachment

func (*QueryPostAttachmentsResponse) GetPagination

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

func (*QueryPostAttachmentsResponse) Marshal

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

func (*QueryPostAttachmentsResponse) MarshalTo

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

func (*QueryPostAttachmentsResponse) MarshalToSizedBuffer

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

func (*QueryPostAttachmentsResponse) ProtoMessage

func (*QueryPostAttachmentsResponse) ProtoMessage()

func (*QueryPostAttachmentsResponse) Reset

func (m *QueryPostAttachmentsResponse) Reset()

func (*QueryPostAttachmentsResponse) Size

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

func (*QueryPostAttachmentsResponse) String

func (*QueryPostAttachmentsResponse) Unmarshal

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

func (*QueryPostAttachmentsResponse) UnpackInterfaces

func (r *QueryPostAttachmentsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryPostAttachmentsResponse) XXX_DiscardUnknown

func (m *QueryPostAttachmentsResponse) XXX_DiscardUnknown()

func (*QueryPostAttachmentsResponse) XXX_Marshal

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

func (*QueryPostAttachmentsResponse) XXX_Merge

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

func (*QueryPostAttachmentsResponse) XXX_Size

func (m *QueryPostAttachmentsResponse) XXX_Size() int

func (*QueryPostAttachmentsResponse) XXX_Unmarshal

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

type QueryPostRequest

type QueryPostRequest struct {
	// Id of the subspace inside which the post lies
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the post to query for
	PostId uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"`
}

QueryPostRequest is the request type for the Query/Post RPC method

func NewQueryPostRequest

func NewQueryPostRequest(subspaceID uint64, postID uint64) *QueryPostRequest

NewQueryPostRequest returns a new QueryPostRequest instance

func (*QueryPostRequest) Descriptor

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

func (*QueryPostRequest) GetPostId

func (m *QueryPostRequest) GetPostId() uint64

func (*QueryPostRequest) GetSubspaceId

func (m *QueryPostRequest) GetSubspaceId() uint64

func (*QueryPostRequest) Marshal

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

func (*QueryPostRequest) MarshalTo

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

func (*QueryPostRequest) MarshalToSizedBuffer

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

func (*QueryPostRequest) ProtoMessage

func (*QueryPostRequest) ProtoMessage()

func (*QueryPostRequest) Reset

func (m *QueryPostRequest) Reset()

func (*QueryPostRequest) Size

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

func (*QueryPostRequest) String

func (m *QueryPostRequest) String() string

func (*QueryPostRequest) Unmarshal

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

func (*QueryPostRequest) XXX_DiscardUnknown

func (m *QueryPostRequest) XXX_DiscardUnknown()

func (*QueryPostRequest) XXX_Marshal

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

func (*QueryPostRequest) XXX_Merge

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

func (*QueryPostRequest) XXX_Size

func (m *QueryPostRequest) XXX_Size() int

func (*QueryPostRequest) XXX_Unmarshal

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

type QueryPostResponse

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

QueryPostResponse is the response type for the Query/Post RPC method

func (*QueryPostResponse) Descriptor

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

func (*QueryPostResponse) GetPost

func (m *QueryPostResponse) GetPost() Post

func (*QueryPostResponse) Marshal

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

func (*QueryPostResponse) MarshalTo

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

func (*QueryPostResponse) MarshalToSizedBuffer

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

func (*QueryPostResponse) ProtoMessage

func (*QueryPostResponse) ProtoMessage()

func (*QueryPostResponse) Reset

func (m *QueryPostResponse) Reset()

func (*QueryPostResponse) Size

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

func (*QueryPostResponse) String

func (m *QueryPostResponse) String() string

func (*QueryPostResponse) Unmarshal

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

func (*QueryPostResponse) XXX_DiscardUnknown

func (m *QueryPostResponse) XXX_DiscardUnknown()

func (*QueryPostResponse) XXX_Marshal

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

func (*QueryPostResponse) XXX_Merge

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

func (*QueryPostResponse) XXX_Size

func (m *QueryPostResponse) XXX_Size() int

func (*QueryPostResponse) XXX_Unmarshal

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

type QuerySectionPostsRequest

type QuerySectionPostsRequest struct {
	// Id of the subspace to query the posts for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the section to query the posts for
	SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySectionPostsRequest is the request type for the Query/SectionPosts RPC method

func NewQuerySectionPostsRequest

func NewQuerySectionPostsRequest(subspaceID uint64, sectionID uint32, pagination *query.PageRequest) *QuerySectionPostsRequest

NewQuerySectionPostsRequest returns a new QuerySectionPostsRequest instance

func (*QuerySectionPostsRequest) Descriptor

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

func (*QuerySectionPostsRequest) GetPagination

func (m *QuerySectionPostsRequest) GetPagination() *query.PageRequest

func (*QuerySectionPostsRequest) GetSectionId

func (m *QuerySectionPostsRequest) GetSectionId() uint32

func (*QuerySectionPostsRequest) GetSubspaceId

func (m *QuerySectionPostsRequest) GetSubspaceId() uint64

func (*QuerySectionPostsRequest) Marshal

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

func (*QuerySectionPostsRequest) MarshalTo

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

func (*QuerySectionPostsRequest) MarshalToSizedBuffer

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

func (*QuerySectionPostsRequest) ProtoMessage

func (*QuerySectionPostsRequest) ProtoMessage()

func (*QuerySectionPostsRequest) Reset

func (m *QuerySectionPostsRequest) Reset()

func (*QuerySectionPostsRequest) Size

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

func (*QuerySectionPostsRequest) String

func (m *QuerySectionPostsRequest) String() string

func (*QuerySectionPostsRequest) Unmarshal

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

func (*QuerySectionPostsRequest) XXX_DiscardUnknown

func (m *QuerySectionPostsRequest) XXX_DiscardUnknown()

func (*QuerySectionPostsRequest) XXX_Marshal

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

func (*QuerySectionPostsRequest) XXX_Merge

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

func (*QuerySectionPostsRequest) XXX_Size

func (m *QuerySectionPostsRequest) XXX_Size() int

func (*QuerySectionPostsRequest) XXX_Unmarshal

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

type QuerySectionPostsResponse

type QuerySectionPostsResponse struct {
	Posts      []Post              `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySectionPostsResponse is the response type for the Query/SectionPosts RPC method

func (*QuerySectionPostsResponse) Descriptor

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

func (*QuerySectionPostsResponse) GetPagination

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

func (*QuerySectionPostsResponse) GetPosts

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

func (*QuerySectionPostsResponse) Marshal

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

func (*QuerySectionPostsResponse) MarshalTo

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

func (*QuerySectionPostsResponse) MarshalToSizedBuffer

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

func (*QuerySectionPostsResponse) ProtoMessage

func (*QuerySectionPostsResponse) ProtoMessage()

func (*QuerySectionPostsResponse) Reset

func (m *QuerySectionPostsResponse) Reset()

func (*QuerySectionPostsResponse) Size

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

func (*QuerySectionPostsResponse) String

func (m *QuerySectionPostsResponse) String() string

func (*QuerySectionPostsResponse) Unmarshal

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

func (*QuerySectionPostsResponse) XXX_DiscardUnknown

func (m *QuerySectionPostsResponse) XXX_DiscardUnknown()

func (*QuerySectionPostsResponse) XXX_Marshal

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

func (*QuerySectionPostsResponse) XXX_Merge

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

func (*QuerySectionPostsResponse) XXX_Size

func (m *QuerySectionPostsResponse) XXX_Size() int

func (*QuerySectionPostsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// SubspacePosts queries all the posts inside a given subspace
	SubspacePosts(context.Context, *QuerySubspacePostsRequest) (*QuerySubspacePostsResponse, error)
	// SectionPosts queries all the posts inside a given section
	SectionPosts(context.Context, *QuerySectionPostsRequest) (*QuerySectionPostsResponse, error)
	// Post queries for a single post inside a given subspace
	Post(context.Context, *QueryPostRequest) (*QueryPostResponse, error)
	// PostAttachments queries the attachments of the post having the given id
	PostAttachments(context.Context, *QueryPostAttachmentsRequest) (*QueryPostAttachmentsResponse, error)
	// PollAnswers queries the answers for the poll having the given id
	PollAnswers(context.Context, *QueryPollAnswersRequest) (*QueryPollAnswersResponse, error)
	// Params queries the module parameters
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySubspacePostsRequest

type QuerySubspacePostsRequest struct {
	// Id of the subspace to query the posts for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySubspacePostsRequest is the request type for the Query/SubspacePosts RPC method

func NewQuerySubspacePostsRequest

func NewQuerySubspacePostsRequest(subspaceID uint64, pagination *query.PageRequest) *QuerySubspacePostsRequest

NewQuerySubspacePostsRequest returns a new QuerySubspacePostsRequest instance

func (*QuerySubspacePostsRequest) Descriptor

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

func (*QuerySubspacePostsRequest) GetPagination

func (m *QuerySubspacePostsRequest) GetPagination() *query.PageRequest

func (*QuerySubspacePostsRequest) GetSubspaceId

func (m *QuerySubspacePostsRequest) GetSubspaceId() uint64

func (*QuerySubspacePostsRequest) Marshal

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

func (*QuerySubspacePostsRequest) MarshalTo

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

func (*QuerySubspacePostsRequest) MarshalToSizedBuffer

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

func (*QuerySubspacePostsRequest) ProtoMessage

func (*QuerySubspacePostsRequest) ProtoMessage()

func (*QuerySubspacePostsRequest) Reset

func (m *QuerySubspacePostsRequest) Reset()

func (*QuerySubspacePostsRequest) Size

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

func (*QuerySubspacePostsRequest) String

func (m *QuerySubspacePostsRequest) String() string

func (*QuerySubspacePostsRequest) Unmarshal

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

func (*QuerySubspacePostsRequest) XXX_DiscardUnknown

func (m *QuerySubspacePostsRequest) XXX_DiscardUnknown()

func (*QuerySubspacePostsRequest) XXX_Marshal

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

func (*QuerySubspacePostsRequest) XXX_Merge

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

func (*QuerySubspacePostsRequest) XXX_Size

func (m *QuerySubspacePostsRequest) XXX_Size() int

func (*QuerySubspacePostsRequest) XXX_Unmarshal

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

type QuerySubspacePostsResponse

type QuerySubspacePostsResponse struct {
	Posts      []Post              `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySubspacePostsResponse is the response type for the Query/SubspacePosts RPC method

func (*QuerySubspacePostsResponse) Descriptor

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

func (*QuerySubspacePostsResponse) GetPagination

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

func (*QuerySubspacePostsResponse) GetPosts

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

func (*QuerySubspacePostsResponse) Marshal

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

func (*QuerySubspacePostsResponse) MarshalTo

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

func (*QuerySubspacePostsResponse) MarshalToSizedBuffer

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

func (*QuerySubspacePostsResponse) ProtoMessage

func (*QuerySubspacePostsResponse) ProtoMessage()

func (*QuerySubspacePostsResponse) Reset

func (m *QuerySubspacePostsResponse) Reset()

func (*QuerySubspacePostsResponse) Size

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

func (*QuerySubspacePostsResponse) String

func (m *QuerySubspacePostsResponse) String() string

func (*QuerySubspacePostsResponse) Unmarshal

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

func (*QuerySubspacePostsResponse) XXX_DiscardUnknown

func (m *QuerySubspacePostsResponse) XXX_DiscardUnknown()

func (*QuerySubspacePostsResponse) XXX_Marshal

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

func (*QuerySubspacePostsResponse) XXX_Merge

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

func (*QuerySubspacePostsResponse) XXX_Size

func (m *QuerySubspacePostsResponse) XXX_Size() int

func (*QuerySubspacePostsResponse) XXX_Unmarshal

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

type RelationshipsKeeper

type RelationshipsKeeper interface {
	// HasUserBlocked tells whether the given blocker has blocked the user inside the provided subspace
	HasUserBlocked(ctx sdk.Context, blocker, user string, subspaceID uint64) bool

	// HasRelationship tells whether the relationship between the user and counterparty exists for the given subspace
	HasRelationship(ctx sdk.Context, user, counterparty string, subspaceID uint64) bool
}

RelationshipsKeeper represents a keeper that deals with relationships

type ReplySetting

type ReplySetting int32

ReplySetting contains the possible reply settings that a post can have

const (
	// No reply setting specified
	REPLY_SETTING_UNSPECIFIED ReplySetting = 0
	// Everyone will be able to reply to this post
	REPLY_SETTING_EVERYONE ReplySetting = 1
	// Only followers of the author will be able to reply to this post
	REPLY_SETTING_FOLLOWERS ReplySetting = 2
	// Only the author mutual followers will be able to reply to this post
	REPLY_SETTING_MUTUAL ReplySetting = 3
	// Only people mentioned inside this post will be able to reply
	REPLY_SETTING_MENTIONS ReplySetting = 4
)

func (ReplySetting) EnumDescriptor

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

func (ReplySetting) String

func (x ReplySetting) String() string

type SubspaceDataEntry

type SubspaceDataEntry struct {
	SubspaceID    uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	InitialPostID uint64 `protobuf:"varint,2,opt,name=initial_post_id,json=initialPostId,proto3" json:"initial_post_id,omitempty"`
}

SubspaceDataEntry contains the data for a given subspace

func NewSubspaceDataEntry

func NewSubspaceDataEntry(subspaceID uint64, initialPostID uint64) SubspaceDataEntry

NewSubspaceDataEntry returns a new SubspaceDataEntry instance

func (*SubspaceDataEntry) Descriptor

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

func (*SubspaceDataEntry) Equal

func (this *SubspaceDataEntry) Equal(that interface{}) bool

func (*SubspaceDataEntry) GetInitialPostID

func (m *SubspaceDataEntry) GetInitialPostID() uint64

func (*SubspaceDataEntry) GetSubspaceID

func (m *SubspaceDataEntry) GetSubspaceID() uint64

func (*SubspaceDataEntry) Marshal

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

func (*SubspaceDataEntry) MarshalTo

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

func (*SubspaceDataEntry) MarshalToSizedBuffer

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

func (*SubspaceDataEntry) ProtoMessage

func (*SubspaceDataEntry) ProtoMessage()

func (*SubspaceDataEntry) Reset

func (m *SubspaceDataEntry) Reset()

func (*SubspaceDataEntry) Size

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

func (*SubspaceDataEntry) String

func (m *SubspaceDataEntry) String() string

func (*SubspaceDataEntry) Unmarshal

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

func (SubspaceDataEntry) Validate

func (e SubspaceDataEntry) Validate() error

Validate returns an error if something is wrong within the entry data

func (*SubspaceDataEntry) XXX_DiscardUnknown

func (m *SubspaceDataEntry) XXX_DiscardUnknown()

func (*SubspaceDataEntry) XXX_Marshal

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

func (*SubspaceDataEntry) XXX_Merge

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

func (*SubspaceDataEntry) XXX_Size

func (m *SubspaceDataEntry) XXX_Size() int

func (*SubspaceDataEntry) XXX_Unmarshal

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

type SubspacesKeeper

type SubspacesKeeper interface {
	// HasSubspace tells whether the subspace with the given id exists or not
	HasSubspace(ctx sdk.Context, subspaceID uint64) bool

	// HasSection tells whether the section having the given id exists inside the provided subspace
	HasSection(ctx sdk.Context, subspaceID uint64, sectionID uint32) bool

	// HasPermission tells whether the given user has the provided permission inside the subspace with the specified id
	HasPermission(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permission subspacestypes.Permission) bool

	// IterateSubspaces iterates through the subspaces set and performs the given function
	IterateSubspaces(ctx sdk.Context, fn func(subspace subspacestypes.Subspace) (stop bool))
}

SubspacesKeeper represents a keeper that deals with subspaces

type TextTag

type TextTag struct {
	// Index of the character inside the text at which the tag starts
	Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty" yaml:"start"`
	// Index of the character inside the text at which the tag ends
	End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty" yaml:"end"`
	// Tag reference (user address, hashtag value, etc)
	Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty" yaml:"tag"`
}

TextTag represents a tag within the post text

func NewTextTag

func NewTextTag(start, end uint64, tag string) TextTag

NewTextTag returns a new TextTag instance

func (*TextTag) Descriptor

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

func (*TextTag) Equal

func (this *TextTag) Equal(that interface{}) bool

func (*TextTag) GetEnd

func (m *TextTag) GetEnd() uint64

func (*TextTag) GetStart

func (m *TextTag) GetStart() uint64

func (*TextTag) GetTag

func (m *TextTag) GetTag() string

func (*TextTag) Marshal

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

func (*TextTag) MarshalTo

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

func (*TextTag) MarshalToSizedBuffer

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

func (*TextTag) ProtoMessage

func (*TextTag) ProtoMessage()

func (*TextTag) Reset

func (m *TextTag) Reset()

func (*TextTag) Size

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

func (*TextTag) String

func (m *TextTag) String() string

func (*TextTag) Unmarshal

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

func (TextTag) Validate

func (t TextTag) Validate() error

Validate implements fmt.Validator

func (*TextTag) XXX_DiscardUnknown

func (m *TextTag) XXX_DiscardUnknown()

func (*TextTag) XXX_Marshal

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

func (*TextTag) XXX_Merge

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

func (*TextTag) XXX_Size

func (m *TextTag) XXX_Size() int

func (*TextTag) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddPostAttachment

func (*UnimplementedMsgServer) AnswerPoll

func (*UnimplementedMsgServer) CreatePost

func (*UnimplementedMsgServer) DeletePost

func (*UnimplementedMsgServer) EditPost

func (*UnimplementedMsgServer) RemovePostAttachment

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PollAnswers

func (*UnimplementedQueryServer) Post

func (*UnimplementedQueryServer) PostAttachments

func (*UnimplementedQueryServer) SectionPosts

func (*UnimplementedQueryServer) SubspacePosts

type Url

type Url struct {
	// Index of the character inside the text at which the URL starts
	Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty" yaml:"start"`
	// Index of the character inside the text at which the URL ends
	End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty" yaml:"end"`
	// Value of the URL where the user should be redirected to
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty" yaml:"url"`
	// (optional) Display value of the URL
	DisplayUrl string `protobuf:"bytes,4,opt,name=display_url,json=displayUrl,proto3" json:"display_url,omitempty" yaml:"display_url"`
}

Url contains the details of a generic URL

func NewURL

func NewURL(start, end uint64, url, displayURL string) Url

NewURL returns a new Url instance

func (*Url) Descriptor

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

func (*Url) Equal

func (this *Url) Equal(that interface{}) bool

func (*Url) GetDisplayUrl

func (m *Url) GetDisplayUrl() string

func (*Url) GetEnd

func (m *Url) GetEnd() uint64

func (*Url) GetStart

func (m *Url) GetStart() uint64

func (*Url) GetUrl

func (m *Url) GetUrl() string

func (*Url) Marshal

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

func (*Url) MarshalTo

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

func (*Url) MarshalToSizedBuffer

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

func (*Url) ProtoMessage

func (*Url) ProtoMessage()

func (*Url) Reset

func (m *Url) Reset()

func (*Url) Size

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

func (*Url) String

func (m *Url) String() string

func (*Url) Unmarshal

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

func (Url) Validate

func (u Url) Validate() error

Validate implements fmt.Validator

func (*Url) XXX_DiscardUnknown

func (m *Url) XXX_DiscardUnknown()

func (*Url) XXX_Marshal

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

func (*Url) XXX_Merge

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

func (*Url) XXX_Size

func (m *Url) XXX_Size() int

func (*Url) XXX_Unmarshal

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

type UserAnswer

type UserAnswer struct {
	// Subspace id inside which the post related to this attachment is located
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the post associated to this attachment
	PostID uint64 `protobuf:"varint,2,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
	// Id of the poll to which this answer is associated
	PollID uint32 `protobuf:"varint,3,opt,name=poll_id,json=pollId,proto3" json:"poll_id,omitempty" yaml:"poll_id"`
	// Indexes of the answers inside the ProvidedAnswers array
	AnswersIndexes []uint32 `` /* 134-byte string literal not displayed */
	// Address of the user answering the poll
	User string `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

UserAnswer represents a user answer to a poll

func NewUserAnswer

func NewUserAnswer(subspaceID uint64, postID uint64, pollID uint32, answersIndexes []uint32, user string) UserAnswer

NewUserAnswer returns a new UserAnswer instance

func (*UserAnswer) Descriptor

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

func (*UserAnswer) Equal

func (this *UserAnswer) Equal(that interface{}) bool

func (*UserAnswer) GetAnswersIndexes

func (m *UserAnswer) GetAnswersIndexes() []uint32

func (*UserAnswer) GetPollID

func (m *UserAnswer) GetPollID() uint32

func (*UserAnswer) GetPostID

func (m *UserAnswer) GetPostID() uint64

func (*UserAnswer) GetSubspaceID

func (m *UserAnswer) GetSubspaceID() uint64

func (*UserAnswer) GetUser

func (m *UserAnswer) GetUser() string

func (*UserAnswer) Marshal

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

func (*UserAnswer) MarshalTo

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

func (*UserAnswer) MarshalToSizedBuffer

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

func (*UserAnswer) ProtoMessage

func (*UserAnswer) ProtoMessage()

func (*UserAnswer) Reset

func (m *UserAnswer) Reset()

func (*UserAnswer) Size

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

func (*UserAnswer) String

func (m *UserAnswer) String() string

func (*UserAnswer) Unmarshal

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

func (UserAnswer) Validate

func (a UserAnswer) Validate() error

Validate implements fmt.Validator

func (*UserAnswer) XXX_DiscardUnknown

func (m *UserAnswer) XXX_DiscardUnknown()

func (*UserAnswer) XXX_Marshal

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

func (*UserAnswer) XXX_Merge

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

func (*UserAnswer) XXX_Size

func (m *UserAnswer) XXX_Size() int

func (*UserAnswer) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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