Documentation ¶
Index ¶
- Variables
- func BuildArticleUserIndex(comment *Comment) []byte
- func BuildBlogTimedIndex(article *Article) ([]byte, error)
- func NewCancelDeleteArticleTaskHandler(auth x.Authenticator, scheduler weave.Scheduler) weave.Handler
- func NewChangeBlogOwnerHandler(auth x.Authenticator) weave.Handler
- func NewCreateArticleHandler(auth x.Authenticator, scheduler weave.Scheduler) weave.Handler
- func NewCreateBlogHandler(auth x.Authenticator) weave.Handler
- func NewCreateCommentHandler(auth x.Authenticator) weave.Handler
- func NewCreateLikeHandler(auth x.Authenticator) weave.Handler
- func NewCreateUserHandler(auth x.Authenticator) weave.Handler
- func NewDeleteArticleHandler(auth x.Authenticator) weave.Handler
- func RegisterCronRoutes(r weave.Registry, auth x.Authenticator)
- func RegisterQuery(qr weave.QueryRouter)
- func RegisterRoutes(r weave.Registry, auth x.Authenticator, scheduler weave.Scheduler)
- type Article
- func (m *Article) Copy() orm.CloneableData
- func (*Article) Descriptor() ([]byte, []int)
- func (m *Article) GetBlogID() []byte
- func (m *Article) GetCommentCount() int64
- func (m *Article) GetContent() string
- func (m *Article) GetCreatedAt() github_com_iov_one_weave.UnixTime
- func (m *Article) GetDeleteAt() github_com_iov_one_weave.UnixTime
- func (m *Article) GetID() []byte
- func (m *Article) GetLikeCount() int64
- func (m *Article) GetMetadata() *weave.Metadata
- func (m *Article) GetOwner() github_com_iov_one_weave.Address
- func (m *Article) GetTitle() string
- func (m *Article) Marshal() (dAtA []byte, err error)
- func (m *Article) MarshalTo(dAtA []byte) (int, error)
- func (*Article) ProtoMessage()
- func (m *Article) Reset()
- func (m *Article) SetID(id []byte) error
- func (m *Article) Size() (n int)
- func (m *Article) String() string
- func (m *Article) Unmarshal(dAtA []byte) error
- func (m *Article) Validate() error
- func (m *Article) XXX_DiscardUnknown()
- func (m *Article) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Article) XXX_Merge(src proto.Message)
- func (m *Article) XXX_Size() int
- func (m *Article) XXX_Unmarshal(b []byte) error
- type ArticleBucket
- type Blog
- func (m *Blog) Copy() orm.CloneableData
- func (*Blog) Descriptor() ([]byte, []int)
- func (m *Blog) GetCreatedAt() github_com_iov_one_weave.UnixTime
- func (m *Blog) GetDescription() string
- func (m *Blog) GetID() []byte
- func (m *Blog) GetMetadata() *weave.Metadata
- func (m *Blog) GetOwner() github_com_iov_one_weave.Address
- func (m *Blog) GetTitle() string
- func (m *Blog) Marshal() (dAtA []byte, err error)
- func (m *Blog) MarshalTo(dAtA []byte) (int, error)
- func (*Blog) ProtoMessage()
- func (m *Blog) Reset()
- func (m *Blog) SetID(id []byte) error
- func (m *Blog) Size() (n int)
- func (m *Blog) String() string
- func (m *Blog) Unmarshal(dAtA []byte) error
- func (m *Blog) Validate() error
- func (m *Blog) XXX_DiscardUnknown()
- func (m *Blog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Blog) XXX_Merge(src proto.Message)
- func (m *Blog) XXX_Size() int
- func (m *Blog) XXX_Unmarshal(b []byte) error
- type BlogBucket
- type CancelDeleteArticleTaskHandler
- type CancelDeleteArticleTaskMsg
- func (*CancelDeleteArticleTaskMsg) Descriptor() ([]byte, []int)
- func (m *CancelDeleteArticleTaskMsg) GetMetadata() *weave.Metadata
- func (m *CancelDeleteArticleTaskMsg) GetTaskID() []byte
- func (m *CancelDeleteArticleTaskMsg) Marshal() (dAtA []byte, err error)
- func (m *CancelDeleteArticleTaskMsg) MarshalTo(dAtA []byte) (int, error)
- func (CancelDeleteArticleTaskMsg) Path() string
- func (*CancelDeleteArticleTaskMsg) ProtoMessage()
- func (m *CancelDeleteArticleTaskMsg) Reset()
- func (m *CancelDeleteArticleTaskMsg) Size() (n int)
- func (m *CancelDeleteArticleTaskMsg) String() string
- func (m *CancelDeleteArticleTaskMsg) Unmarshal(dAtA []byte) error
- func (m CancelDeleteArticleTaskMsg) Validate() error
- func (m *CancelDeleteArticleTaskMsg) XXX_DiscardUnknown()
- func (m *CancelDeleteArticleTaskMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CancelDeleteArticleTaskMsg) XXX_Merge(src proto.Message)
- func (m *CancelDeleteArticleTaskMsg) XXX_Size() int
- func (m *CancelDeleteArticleTaskMsg) XXX_Unmarshal(b []byte) error
- type ChangeBlogOwnerHandler
- type ChangeBlogOwnerMsg
- func (*ChangeBlogOwnerMsg) Descriptor() ([]byte, []int)
- func (m *ChangeBlogOwnerMsg) GetBlogID() []byte
- func (m *ChangeBlogOwnerMsg) GetMetadata() *weave.Metadata
- func (m *ChangeBlogOwnerMsg) GetNewOwner() github_com_iov_one_weave.Address
- func (m *ChangeBlogOwnerMsg) Marshal() (dAtA []byte, err error)
- func (m *ChangeBlogOwnerMsg) MarshalTo(dAtA []byte) (int, error)
- func (ChangeBlogOwnerMsg) Path() string
- func (*ChangeBlogOwnerMsg) ProtoMessage()
- func (m *ChangeBlogOwnerMsg) Reset()
- func (m *ChangeBlogOwnerMsg) Size() (n int)
- func (m *ChangeBlogOwnerMsg) String() string
- func (m *ChangeBlogOwnerMsg) Unmarshal(dAtA []byte) error
- func (m ChangeBlogOwnerMsg) Validate() error
- func (m *ChangeBlogOwnerMsg) XXX_DiscardUnknown()
- func (m *ChangeBlogOwnerMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangeBlogOwnerMsg) XXX_Merge(src proto.Message)
- func (m *ChangeBlogOwnerMsg) XXX_Size() int
- func (m *ChangeBlogOwnerMsg) XXX_Unmarshal(b []byte) error
- type Comment
- func (m *Comment) Copy() orm.CloneableData
- func (*Comment) Descriptor() ([]byte, []int)
- func (m *Comment) GetArticleID() []byte
- func (m *Comment) GetContent() string
- func (m *Comment) GetCreatedAt() github_com_iov_one_weave.UnixTime
- func (m *Comment) GetID() []byte
- func (m *Comment) GetMetadata() *weave.Metadata
- func (m *Comment) GetOwner() github_com_iov_one_weave.Address
- func (m *Comment) Marshal() (dAtA []byte, err error)
- func (m *Comment) MarshalTo(dAtA []byte) (int, error)
- func (*Comment) ProtoMessage()
- func (m *Comment) Reset()
- func (m *Comment) SetID(id []byte) error
- func (m *Comment) Size() (n int)
- func (m *Comment) String() string
- func (m *Comment) Unmarshal(dAtA []byte) error
- func (m *Comment) Validate() error
- func (m *Comment) XXX_DiscardUnknown()
- func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comment) XXX_Merge(src proto.Message)
- func (m *Comment) XXX_Size() int
- func (m *Comment) XXX_Unmarshal(b []byte) error
- type CommentBucket
- type CreateArticleHandler
- type CreateArticleMsg
- func (*CreateArticleMsg) Descriptor() ([]byte, []int)
- func (m *CreateArticleMsg) GetBlogID() []byte
- func (m *CreateArticleMsg) GetContent() string
- func (m *CreateArticleMsg) GetDeleteAt() github_com_iov_one_weave.UnixTime
- func (m *CreateArticleMsg) GetMetadata() *weave.Metadata
- func (m *CreateArticleMsg) GetTitle() string
- func (m *CreateArticleMsg) Marshal() (dAtA []byte, err error)
- func (m *CreateArticleMsg) MarshalTo(dAtA []byte) (int, error)
- func (CreateArticleMsg) Path() string
- func (*CreateArticleMsg) ProtoMessage()
- func (m *CreateArticleMsg) Reset()
- func (m *CreateArticleMsg) Size() (n int)
- func (m *CreateArticleMsg) String() string
- func (m *CreateArticleMsg) Unmarshal(dAtA []byte) error
- func (m CreateArticleMsg) Validate() error
- func (m *CreateArticleMsg) XXX_DiscardUnknown()
- func (m *CreateArticleMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateArticleMsg) XXX_Merge(src proto.Message)
- func (m *CreateArticleMsg) XXX_Size() int
- func (m *CreateArticleMsg) XXX_Unmarshal(b []byte) error
- type CreateBlogHandler
- type CreateBlogMsg
- func (*CreateBlogMsg) Descriptor() ([]byte, []int)
- func (m *CreateBlogMsg) GetDescription() string
- func (m *CreateBlogMsg) GetMetadata() *weave.Metadata
- func (m *CreateBlogMsg) GetTitle() string
- func (m *CreateBlogMsg) Marshal() (dAtA []byte, err error)
- func (m *CreateBlogMsg) MarshalTo(dAtA []byte) (int, error)
- func (CreateBlogMsg) Path() string
- func (*CreateBlogMsg) ProtoMessage()
- func (m *CreateBlogMsg) Reset()
- func (m *CreateBlogMsg) Size() (n int)
- func (m *CreateBlogMsg) String() string
- func (m *CreateBlogMsg) Unmarshal(dAtA []byte) error
- func (m CreateBlogMsg) Validate() error
- func (m *CreateBlogMsg) XXX_DiscardUnknown()
- func (m *CreateBlogMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBlogMsg) XXX_Merge(src proto.Message)
- func (m *CreateBlogMsg) XXX_Size() int
- func (m *CreateBlogMsg) XXX_Unmarshal(b []byte) error
- type CreateCommentHandler
- type CreateCommentMsg
- func (*CreateCommentMsg) Descriptor() ([]byte, []int)
- func (m *CreateCommentMsg) GetArticleID() []byte
- func (m *CreateCommentMsg) GetContent() string
- func (m *CreateCommentMsg) GetMetadata() *weave.Metadata
- func (m *CreateCommentMsg) Marshal() (dAtA []byte, err error)
- func (m *CreateCommentMsg) MarshalTo(dAtA []byte) (int, error)
- func (CreateCommentMsg) Path() string
- func (*CreateCommentMsg) ProtoMessage()
- func (m *CreateCommentMsg) Reset()
- func (m *CreateCommentMsg) Size() (n int)
- func (m *CreateCommentMsg) String() string
- func (m *CreateCommentMsg) Unmarshal(dAtA []byte) error
- func (m CreateCommentMsg) Validate() error
- func (m *CreateCommentMsg) XXX_DiscardUnknown()
- func (m *CreateCommentMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCommentMsg) XXX_Merge(src proto.Message)
- func (m *CreateCommentMsg) XXX_Size() int
- func (m *CreateCommentMsg) XXX_Unmarshal(b []byte) error
- type CreateLikeHandler
- type CreateLikeMsg
- func (*CreateLikeMsg) Descriptor() ([]byte, []int)
- func (m *CreateLikeMsg) GetArticleID() []byte
- func (m *CreateLikeMsg) GetMetadata() *weave.Metadata
- func (m *CreateLikeMsg) Marshal() (dAtA []byte, err error)
- func (m *CreateLikeMsg) MarshalTo(dAtA []byte) (int, error)
- func (CreateLikeMsg) Path() string
- func (*CreateLikeMsg) ProtoMessage()
- func (m *CreateLikeMsg) Reset()
- func (m *CreateLikeMsg) Size() (n int)
- func (m *CreateLikeMsg) String() string
- func (m *CreateLikeMsg) Unmarshal(dAtA []byte) error
- func (m CreateLikeMsg) Validate() error
- func (m *CreateLikeMsg) XXX_DiscardUnknown()
- func (m *CreateLikeMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateLikeMsg) XXX_Merge(src proto.Message)
- func (m *CreateLikeMsg) XXX_Size() int
- func (m *CreateLikeMsg) XXX_Unmarshal(b []byte) error
- type CreateUserHandler
- type CreateUserMsg
- func (*CreateUserMsg) Descriptor() ([]byte, []int)
- func (m *CreateUserMsg) GetBio() string
- func (m *CreateUserMsg) GetMetadata() *weave.Metadata
- func (m *CreateUserMsg) GetUsername() string
- func (m *CreateUserMsg) Marshal() (dAtA []byte, err error)
- func (m *CreateUserMsg) MarshalTo(dAtA []byte) (int, error)
- func (CreateUserMsg) Path() string
- func (*CreateUserMsg) ProtoMessage()
- func (m *CreateUserMsg) Reset()
- func (m *CreateUserMsg) Size() (n int)
- func (m *CreateUserMsg) String() string
- func (m *CreateUserMsg) Unmarshal(dAtA []byte) error
- func (m CreateUserMsg) Validate() error
- func (m *CreateUserMsg) XXX_DiscardUnknown()
- func (m *CreateUserMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateUserMsg) XXX_Merge(src proto.Message)
- func (m *CreateUserMsg) XXX_Size() int
- func (m *CreateUserMsg) XXX_Unmarshal(b []byte) error
- type CronDeleteArticleHandler
- type DeleteArticleHandler
- type DeleteArticleMsg
- func (*DeleteArticleMsg) Descriptor() ([]byte, []int)
- func (m *DeleteArticleMsg) GetArticleID() []byte
- func (m *DeleteArticleMsg) GetMetadata() *weave.Metadata
- func (m *DeleteArticleMsg) Marshal() (dAtA []byte, err error)
- func (m *DeleteArticleMsg) MarshalTo(dAtA []byte) (int, error)
- func (DeleteArticleMsg) Path() string
- func (*DeleteArticleMsg) ProtoMessage()
- func (m *DeleteArticleMsg) Reset()
- func (m *DeleteArticleMsg) Size() (n int)
- func (m *DeleteArticleMsg) String() string
- func (m *DeleteArticleMsg) Unmarshal(dAtA []byte) error
- func (m DeleteArticleMsg) Validate() error
- func (m *DeleteArticleMsg) XXX_DiscardUnknown()
- func (m *DeleteArticleMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteArticleMsg) XXX_Merge(src proto.Message)
- func (m *DeleteArticleMsg) XXX_Size() int
- func (m *DeleteArticleMsg) XXX_Unmarshal(b []byte) error
- type DeleteArticleTask
- func (m *DeleteArticleTask) Copy() orm.CloneableData
- func (*DeleteArticleTask) Descriptor() ([]byte, []int)
- func (m *DeleteArticleTask) GetArticleID() []byte
- func (m *DeleteArticleTask) GetID() []byte
- func (m *DeleteArticleTask) GetMetadata() *weave.Metadata
- func (m *DeleteArticleTask) GetTaskOwner() github_com_iov_one_weave.Address
- func (m *DeleteArticleTask) Marshal() (dAtA []byte, err error)
- func (m *DeleteArticleTask) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteArticleTask) ProtoMessage()
- func (m *DeleteArticleTask) Reset()
- func (m *DeleteArticleTask) SetID(id []byte) error
- func (m *DeleteArticleTask) Size() (n int)
- func (m *DeleteArticleTask) String() string
- func (m *DeleteArticleTask) Unmarshal(dAtA []byte) error
- func (m *DeleteArticleTask) Validate() error
- func (m *DeleteArticleTask) XXX_DiscardUnknown()
- func (m *DeleteArticleTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteArticleTask) XXX_Merge(src proto.Message)
- func (m *DeleteArticleTask) XXX_Size() int
- func (m *DeleteArticleTask) XXX_Unmarshal(b []byte) error
- type DeleteArticleTaskBucket
- type Like
- func (m *Like) Copy() orm.CloneableData
- func (*Like) Descriptor() ([]byte, []int)
- func (m *Like) GetArticleID() []byte
- func (m *Like) GetCreatedAt() github_com_iov_one_weave.UnixTime
- func (m *Like) GetID() []byte
- func (m *Like) GetMetadata() *weave.Metadata
- func (m *Like) GetOwner() github_com_iov_one_weave.Address
- func (m *Like) Marshal() (dAtA []byte, err error)
- func (m *Like) MarshalTo(dAtA []byte) (int, error)
- func (*Like) ProtoMessage()
- func (m *Like) Reset()
- func (m *Like) SetID(id []byte) error
- func (m *Like) Size() (n int)
- func (m *Like) String() string
- func (m *Like) Unmarshal(dAtA []byte) error
- func (m *Like) Validate() error
- func (m *Like) XXX_DiscardUnknown()
- func (m *Like) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Like) XXX_Merge(src proto.Message)
- func (m *Like) XXX_Size() int
- func (m *Like) XXX_Unmarshal(b []byte) error
- type LikeBucket
- type User
- func (m *User) Copy() orm.CloneableData
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetBio() string
- func (m *User) GetID() []byte
- func (m *User) GetMetadata() *weave.Metadata
- func (m *User) GetRegisteredAt() github_com_iov_one_weave.UnixTime
- func (m *User) GetUsername() string
- func (m *User) Marshal() (dAtA []byte, err error)
- func (m *User) MarshalTo(dAtA []byte) (int, error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) SetID(id []byte) error
- func (m *User) Size() (n int)
- func (m *User) String() string
- func (m *User) Unmarshal(dAtA []byte) error
- func (m *User) Validate() error
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserBucket
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthCodec = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCodec = fmt.Errorf("proto: integer overflow") )
Functions ¶
func BuildArticleUserIndex ¶
BuildArticleUserIndex indexByteSize = 8(ArticleID) + 8(UserID)
func BuildBlogTimedIndex ¶
BuildBlogTimedIndex produces 8 bytes BlogID || big-endian createdAt This allows lexographical searches over the time ranges (or earliest or latest) of all articles within one blog
func NewCancelDeleteArticleTaskHandler ¶
func NewCancelDeleteArticleTaskHandler(auth x.Authenticator, scheduler weave.Scheduler) weave.Handler
NewCancelDeleteArticleTaskHandler creates a cancel delete article task msg handler
func NewChangeBlogOwnerHandler ¶
func NewChangeBlogOwnerHandler(auth x.Authenticator) weave.Handler
NewChangeBlogOwnerHandler creates a blog message handler
func NewCreateArticleHandler ¶
NewCreateArticleHandler creates a article message handler
func NewCreateBlogHandler ¶
func NewCreateBlogHandler(auth x.Authenticator) weave.Handler
NewCreateBlogHandler creates a blog message handler
func NewCreateCommentHandler ¶
func NewCreateCommentHandler(auth x.Authenticator) weave.Handler
NewCreateCommentHandler creates a comment message handler
func NewCreateLikeHandler ¶
func NewCreateLikeHandler(auth x.Authenticator) weave.Handler
NewCreateLikeHandler creates a like message handler
func NewCreateUserHandler ¶
func NewCreateUserHandler(auth x.Authenticator) weave.Handler
NewCreateUserHandler creates a user message handler
func NewDeleteArticleHandler ¶
func NewDeleteArticleHandler(auth x.Authenticator) weave.Handler
NewDeleteArticleHandler creates a article message handler
func RegisterCronRoutes ¶
func RegisterCronRoutes( r weave.Registry, auth x.Authenticator, )
RegisterCronRoutes registers routes that are not exposed to routers
func RegisterQuery ¶
func RegisterQuery(qr weave.QueryRouter)
RegisterQuery registers buckets for querying.
func RegisterRoutes ¶
RegisterRoutes registers handlers for message processing.
Types ¶
type Article ¶
type Article struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ID is article's identifier ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // BlogID identifies blog that article is posted to BlogID []byte `protobuf:"bytes,3,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"` // Owner is the owner address of the blog Owner github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` // Title is title of the article Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` // Content is content of the blog Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` // CommentCount is total number of comments posted under article CommentCount int64 `protobuf:"varint,7,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // LikeCount is total number of likes posted under article LikeCount int64 `protobuf:"varint,8,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // CreatedAt defines creation time of the article CreatedAt github_com_iov_one_weave.UnixTime `` /* 132-byte string literal not displayed */ // DeleteAt defines deletion time of the article. // Could be nil if there is not a time of deletion DeleteAt github_com_iov_one_weave.UnixTime `` /* 130-byte string literal not displayed */ }
func (*Article) Copy ¶
func (m *Article) Copy() orm.CloneableData
Copy produces a new copy to fulfill the Model interface TODO remove after weave 0.22.0 is released
func (*Article) Descriptor ¶
func (*Article) GetCommentCount ¶
func (*Article) GetContent ¶
func (*Article) GetCreatedAt ¶
func (m *Article) GetCreatedAt() github_com_iov_one_weave.UnixTime
func (*Article) GetDeleteAt ¶
func (m *Article) GetDeleteAt() github_com_iov_one_weave.UnixTime
func (*Article) GetLikeCount ¶
func (*Article) GetMetadata ¶
func (*Article) GetOwner ¶
func (m *Article) GetOwner() github_com_iov_one_weave.Address
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) SetID ¶
SetID is a minimal implementation, useful when the ID is a separate protobuf field
func (*Article) XXX_DiscardUnknown ¶
func (m *Article) XXX_DiscardUnknown()
func (*Article) XXX_Marshal ¶
func (*Article) XXX_Unmarshal ¶
type ArticleBucket ¶
type ArticleBucket struct {
morm.ModelBucket
}
func NewArticleBucket ¶
func NewArticleBucket() *ArticleBucket
NewArticleBucket returns a new article bucket
type Blog ¶
type Blog struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ID is blog's identifier ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Owner is the owner address of the blog Owner github_com_iov_one_weave.Address `protobuf:"bytes,3,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` // Title is title of the blog Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // Description is description section of the blog Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // CreatedAt defines creation time of the blog CreatedAt github_com_iov_one_weave.UnixTime `` /* 132-byte string literal not displayed */ }
func (*Blog) Copy ¶
func (m *Blog) Copy() orm.CloneableData
Copy produces a new copy to fulfill the Model interface
func (*Blog) Descriptor ¶
func (*Blog) GetCreatedAt ¶
func (m *Blog) GetCreatedAt() github_com_iov_one_weave.UnixTime
func (*Blog) GetDescription ¶
func (*Blog) GetMetadata ¶
func (*Blog) GetOwner ¶
func (m *Blog) GetOwner() github_com_iov_one_weave.Address
func (*Blog) ProtoMessage ¶
func (*Blog) ProtoMessage()
func (*Blog) SetID ¶
SetID is a minimal implementation, useful when the ID is a separate protobuf field
func (*Blog) XXX_DiscardUnknown ¶
func (m *Blog) XXX_DiscardUnknown()
func (*Blog) XXX_Unmarshal ¶
type BlogBucket ¶
type BlogBucket struct {
morm.ModelBucket
}
type CancelDeleteArticleTaskHandler ¶
type CancelDeleteArticleTaskHandler struct {
// contains filtered or unexported fields
}
CancelDeleteArticleTaskHandler will handle CancelDeleteArticleTaskMsg
type CancelDeleteArticleTaskMsg ¶
type CancelDeleteArticleTaskMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // TaskID is the identifier of the task TaskID []byte `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` }
CancelDeleteArticleTaskMsg message cancelles scheduled article deletion
func (*CancelDeleteArticleTaskMsg) Descriptor ¶
func (*CancelDeleteArticleTaskMsg) Descriptor() ([]byte, []int)
func (*CancelDeleteArticleTaskMsg) GetMetadata ¶
func (m *CancelDeleteArticleTaskMsg) GetMetadata() *weave.Metadata
func (*CancelDeleteArticleTaskMsg) GetTaskID ¶
func (m *CancelDeleteArticleTaskMsg) GetTaskID() []byte
func (*CancelDeleteArticleTaskMsg) Marshal ¶
func (m *CancelDeleteArticleTaskMsg) Marshal() (dAtA []byte, err error)
func (*CancelDeleteArticleTaskMsg) MarshalTo ¶
func (m *CancelDeleteArticleTaskMsg) MarshalTo(dAtA []byte) (int, error)
func (CancelDeleteArticleTaskMsg) Path ¶
func (CancelDeleteArticleTaskMsg) Path() string
Path returns the routing path for this message.
func (*CancelDeleteArticleTaskMsg) ProtoMessage ¶
func (*CancelDeleteArticleTaskMsg) ProtoMessage()
func (*CancelDeleteArticleTaskMsg) Reset ¶
func (m *CancelDeleteArticleTaskMsg) Reset()
func (*CancelDeleteArticleTaskMsg) Size ¶
func (m *CancelDeleteArticleTaskMsg) Size() (n int)
func (*CancelDeleteArticleTaskMsg) String ¶
func (m *CancelDeleteArticleTaskMsg) String() string
func (*CancelDeleteArticleTaskMsg) Unmarshal ¶
func (m *CancelDeleteArticleTaskMsg) Unmarshal(dAtA []byte) error
func (CancelDeleteArticleTaskMsg) Validate ¶
func (m CancelDeleteArticleTaskMsg) Validate() error
Validate ensures the CancelDeleteArticleTaskMsg is valid
func (*CancelDeleteArticleTaskMsg) XXX_DiscardUnknown ¶
func (m *CancelDeleteArticleTaskMsg) XXX_DiscardUnknown()
func (*CancelDeleteArticleTaskMsg) XXX_Marshal ¶
func (m *CancelDeleteArticleTaskMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CancelDeleteArticleTaskMsg) XXX_Merge ¶
func (m *CancelDeleteArticleTaskMsg) XXX_Merge(src proto.Message)
func (*CancelDeleteArticleTaskMsg) XXX_Size ¶
func (m *CancelDeleteArticleTaskMsg) XXX_Size() int
func (*CancelDeleteArticleTaskMsg) XXX_Unmarshal ¶
func (m *CancelDeleteArticleTaskMsg) XXX_Unmarshal(b []byte) error
type ChangeBlogOwnerHandler ¶
type ChangeBlogOwnerHandler struct {
// contains filtered or unexported fields
}
ChangeBlogOwnerHandler will handle ChangeBlogOWnerMsg
type ChangeBlogOwnerMsg ¶
type ChangeBlogOwnerMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ID of the blog that is desired to change owner BlogID []byte `protobuf:"bytes,2,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"` // Address of the new owner NewOwner github_com_iov_one_weave.Address `` /* 127-byte string literal not displayed */ }
func (*ChangeBlogOwnerMsg) Descriptor ¶
func (*ChangeBlogOwnerMsg) Descriptor() ([]byte, []int)
func (*ChangeBlogOwnerMsg) GetBlogID ¶
func (m *ChangeBlogOwnerMsg) GetBlogID() []byte
func (*ChangeBlogOwnerMsg) GetMetadata ¶
func (m *ChangeBlogOwnerMsg) GetMetadata() *weave.Metadata
func (*ChangeBlogOwnerMsg) GetNewOwner ¶
func (m *ChangeBlogOwnerMsg) GetNewOwner() github_com_iov_one_weave.Address
func (*ChangeBlogOwnerMsg) Marshal ¶
func (m *ChangeBlogOwnerMsg) Marshal() (dAtA []byte, err error)
func (*ChangeBlogOwnerMsg) MarshalTo ¶
func (m *ChangeBlogOwnerMsg) MarshalTo(dAtA []byte) (int, error)
func (ChangeBlogOwnerMsg) Path ¶
func (ChangeBlogOwnerMsg) Path() string
Path returns the routing path for this message.
func (*ChangeBlogOwnerMsg) ProtoMessage ¶
func (*ChangeBlogOwnerMsg) ProtoMessage()
func (*ChangeBlogOwnerMsg) Reset ¶
func (m *ChangeBlogOwnerMsg) Reset()
func (*ChangeBlogOwnerMsg) Size ¶
func (m *ChangeBlogOwnerMsg) Size() (n int)
func (*ChangeBlogOwnerMsg) String ¶
func (m *ChangeBlogOwnerMsg) String() string
func (*ChangeBlogOwnerMsg) Unmarshal ¶
func (m *ChangeBlogOwnerMsg) Unmarshal(dAtA []byte) error
func (ChangeBlogOwnerMsg) Validate ¶
func (m ChangeBlogOwnerMsg) Validate() error
Validate ensures the ChangeBlogOwner is valid
func (*ChangeBlogOwnerMsg) XXX_DiscardUnknown ¶
func (m *ChangeBlogOwnerMsg) XXX_DiscardUnknown()
func (*ChangeBlogOwnerMsg) XXX_Marshal ¶
func (m *ChangeBlogOwnerMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChangeBlogOwnerMsg) XXX_Merge ¶
func (m *ChangeBlogOwnerMsg) XXX_Merge(src proto.Message)
func (*ChangeBlogOwnerMsg) XXX_Size ¶
func (m *ChangeBlogOwnerMsg) XXX_Size() int
func (*ChangeBlogOwnerMsg) XXX_Unmarshal ¶
func (m *ChangeBlogOwnerMsg) XXX_Unmarshal(b []byte) error
type Comment ¶
type Comment struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ID is comment's identifier ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // ArticleID identifies article that comment is posted to ArticleID []byte `protobuf:"bytes,3,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // Owner is the owner address of the comment Owner github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` // Content is content of the comment Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // CreatedAt defines creation time of the comment CreatedAt github_com_iov_one_weave.UnixTime `` /* 132-byte string literal not displayed */ }
func (*Comment) Copy ¶
func (m *Comment) Copy() orm.CloneableData
Copy produces a new copy to fulfill the Model interface TODO remove after weave 0.22.0 is released
func (*Comment) Descriptor ¶
func (*Comment) GetArticleID ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreatedAt ¶
func (m *Comment) GetCreatedAt() github_com_iov_one_weave.UnixTime
func (*Comment) GetMetadata ¶
func (*Comment) GetOwner ¶
func (m *Comment) GetOwner() github_com_iov_one_weave.Address
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) SetID ¶
SetID is a minimal implementation, useful when the ID is a separate protobuf field
func (*Comment) XXX_DiscardUnknown ¶
func (m *Comment) XXX_DiscardUnknown()
func (*Comment) XXX_Marshal ¶
func (*Comment) XXX_Unmarshal ¶
type CommentBucket ¶
type CommentBucket struct {
morm.ModelBucket
}
func NewCommentBucket ¶
func NewCommentBucket() *CommentBucket
NewCommentBucket returns a new comment bucket
type CreateArticleHandler ¶
type CreateArticleHandler struct {
// contains filtered or unexported fields
}
CreateArticleHandler will handle CreateArticleMsg
type CreateArticleMsg ¶
type CreateArticleMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // BlogID identifies blog that article is posted to BlogID []byte `protobuf:"bytes,2,opt,name=blog_id,json=blogId,proto3" json:"blog_id,omitempty"` // Title is title of the article Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` // Content is content of the blog Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // DeleteAt defines deletion time of the article. // Could be nil if there is not a time of deletion, or in future DeleteAt github_com_iov_one_weave.UnixTime `` /* 129-byte string literal not displayed */ }
func (*CreateArticleMsg) Descriptor ¶
func (*CreateArticleMsg) Descriptor() ([]byte, []int)
func (*CreateArticleMsg) GetBlogID ¶
func (m *CreateArticleMsg) GetBlogID() []byte
func (*CreateArticleMsg) GetContent ¶
func (m *CreateArticleMsg) GetContent() string
func (*CreateArticleMsg) GetDeleteAt ¶
func (m *CreateArticleMsg) GetDeleteAt() github_com_iov_one_weave.UnixTime
func (*CreateArticleMsg) GetMetadata ¶
func (m *CreateArticleMsg) GetMetadata() *weave.Metadata
func (*CreateArticleMsg) GetTitle ¶
func (m *CreateArticleMsg) GetTitle() string
func (*CreateArticleMsg) Marshal ¶
func (m *CreateArticleMsg) Marshal() (dAtA []byte, err error)
func (CreateArticleMsg) Path ¶
func (CreateArticleMsg) Path() string
Path returns the routing path for this message.
func (*CreateArticleMsg) ProtoMessage ¶
func (*CreateArticleMsg) ProtoMessage()
func (*CreateArticleMsg) Reset ¶
func (m *CreateArticleMsg) Reset()
func (*CreateArticleMsg) Size ¶
func (m *CreateArticleMsg) Size() (n int)
func (*CreateArticleMsg) String ¶
func (m *CreateArticleMsg) String() string
func (*CreateArticleMsg) Unmarshal ¶
func (m *CreateArticleMsg) Unmarshal(dAtA []byte) error
func (CreateArticleMsg) Validate ¶
func (m CreateArticleMsg) Validate() error
Validate ensures the CreateArticleMsg is valid
func (*CreateArticleMsg) XXX_DiscardUnknown ¶
func (m *CreateArticleMsg) XXX_DiscardUnknown()
func (*CreateArticleMsg) XXX_Marshal ¶
func (m *CreateArticleMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateArticleMsg) XXX_Merge ¶
func (m *CreateArticleMsg) XXX_Merge(src proto.Message)
func (*CreateArticleMsg) XXX_Size ¶
func (m *CreateArticleMsg) XXX_Size() int
func (*CreateArticleMsg) XXX_Unmarshal ¶
func (m *CreateArticleMsg) XXX_Unmarshal(b []byte) error
type CreateBlogHandler ¶
type CreateBlogHandler struct {
// contains filtered or unexported fields
}
CreateBlogHandler will handle CreateBlogMsg
type CreateBlogMsg ¶
type CreateBlogMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Title is title of the blog Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Description is description section of the blog Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` }
func (*CreateBlogMsg) Descriptor ¶
func (*CreateBlogMsg) Descriptor() ([]byte, []int)
func (*CreateBlogMsg) GetDescription ¶
func (m *CreateBlogMsg) GetDescription() string
func (*CreateBlogMsg) GetMetadata ¶
func (m *CreateBlogMsg) GetMetadata() *weave.Metadata
func (*CreateBlogMsg) GetTitle ¶
func (m *CreateBlogMsg) GetTitle() string
func (*CreateBlogMsg) Marshal ¶
func (m *CreateBlogMsg) Marshal() (dAtA []byte, err error)
func (CreateBlogMsg) Path ¶
func (CreateBlogMsg) Path() string
Path returns the routing path for this message.
func (*CreateBlogMsg) ProtoMessage ¶
func (*CreateBlogMsg) ProtoMessage()
func (*CreateBlogMsg) Reset ¶
func (m *CreateBlogMsg) Reset()
func (*CreateBlogMsg) Size ¶
func (m *CreateBlogMsg) Size() (n int)
func (*CreateBlogMsg) String ¶
func (m *CreateBlogMsg) String() string
func (*CreateBlogMsg) Unmarshal ¶
func (m *CreateBlogMsg) Unmarshal(dAtA []byte) error
func (CreateBlogMsg) Validate ¶
func (m CreateBlogMsg) Validate() error
Validate ensures the CreateBlogMsg is valid
func (*CreateBlogMsg) XXX_DiscardUnknown ¶
func (m *CreateBlogMsg) XXX_DiscardUnknown()
func (*CreateBlogMsg) XXX_Marshal ¶
func (m *CreateBlogMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBlogMsg) XXX_Merge ¶
func (m *CreateBlogMsg) XXX_Merge(src proto.Message)
func (*CreateBlogMsg) XXX_Size ¶
func (m *CreateBlogMsg) XXX_Size() int
func (*CreateBlogMsg) XXX_Unmarshal ¶
func (m *CreateBlogMsg) XXX_Unmarshal(b []byte) error
type CreateCommentHandler ¶
type CreateCommentHandler struct {
// contains filtered or unexported fields
}
CreateCommentHandler will handle CreateCommentMsg
type CreateCommentMsg ¶
type CreateCommentMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ArticleID is the identifier of the article that is desired to be commented ArticleID []byte `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // Content is the comment's content Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` }
func (*CreateCommentMsg) Descriptor ¶
func (*CreateCommentMsg) Descriptor() ([]byte, []int)
func (*CreateCommentMsg) GetArticleID ¶
func (m *CreateCommentMsg) GetArticleID() []byte
func (*CreateCommentMsg) GetContent ¶
func (m *CreateCommentMsg) GetContent() string
func (*CreateCommentMsg) GetMetadata ¶
func (m *CreateCommentMsg) GetMetadata() *weave.Metadata
func (*CreateCommentMsg) Marshal ¶
func (m *CreateCommentMsg) Marshal() (dAtA []byte, err error)
func (CreateCommentMsg) Path ¶
func (CreateCommentMsg) Path() string
Path returns the routing path for this message.
func (*CreateCommentMsg) ProtoMessage ¶
func (*CreateCommentMsg) ProtoMessage()
func (*CreateCommentMsg) Reset ¶
func (m *CreateCommentMsg) Reset()
func (*CreateCommentMsg) Size ¶
func (m *CreateCommentMsg) Size() (n int)
func (*CreateCommentMsg) String ¶
func (m *CreateCommentMsg) String() string
func (*CreateCommentMsg) Unmarshal ¶
func (m *CreateCommentMsg) Unmarshal(dAtA []byte) error
func (CreateCommentMsg) Validate ¶
func (m CreateCommentMsg) Validate() error
Validate ensures the CreateCommentMsg is valid
func (*CreateCommentMsg) XXX_DiscardUnknown ¶
func (m *CreateCommentMsg) XXX_DiscardUnknown()
func (*CreateCommentMsg) XXX_Marshal ¶
func (m *CreateCommentMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCommentMsg) XXX_Merge ¶
func (m *CreateCommentMsg) XXX_Merge(src proto.Message)
func (*CreateCommentMsg) XXX_Size ¶
func (m *CreateCommentMsg) XXX_Size() int
func (*CreateCommentMsg) XXX_Unmarshal ¶
func (m *CreateCommentMsg) XXX_Unmarshal(b []byte) error
type CreateLikeHandler ¶
type CreateLikeHandler struct {
// contains filtered or unexported fields
}
CreateLikeHander will handle CreateLikeMsg
type CreateLikeMsg ¶
type CreateLikeMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ArticleID is the identifier of the article that is desired to be liked ArticleID []byte `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` }
func (*CreateLikeMsg) Descriptor ¶
func (*CreateLikeMsg) Descriptor() ([]byte, []int)
func (*CreateLikeMsg) GetArticleID ¶
func (m *CreateLikeMsg) GetArticleID() []byte
func (*CreateLikeMsg) GetMetadata ¶
func (m *CreateLikeMsg) GetMetadata() *weave.Metadata
func (*CreateLikeMsg) Marshal ¶
func (m *CreateLikeMsg) Marshal() (dAtA []byte, err error)
func (CreateLikeMsg) Path ¶
func (CreateLikeMsg) Path() string
Path returns the routing path for this message.
func (*CreateLikeMsg) ProtoMessage ¶
func (*CreateLikeMsg) ProtoMessage()
func (*CreateLikeMsg) Reset ¶
func (m *CreateLikeMsg) Reset()
func (*CreateLikeMsg) Size ¶
func (m *CreateLikeMsg) Size() (n int)
func (*CreateLikeMsg) String ¶
func (m *CreateLikeMsg) String() string
func (*CreateLikeMsg) Unmarshal ¶
func (m *CreateLikeMsg) Unmarshal(dAtA []byte) error
func (CreateLikeMsg) Validate ¶
func (m CreateLikeMsg) Validate() error
Validate ensures the CreateLikeMsg is valid
func (*CreateLikeMsg) XXX_DiscardUnknown ¶
func (m *CreateLikeMsg) XXX_DiscardUnknown()
func (*CreateLikeMsg) XXX_Marshal ¶
func (m *CreateLikeMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateLikeMsg) XXX_Merge ¶
func (m *CreateLikeMsg) XXX_Merge(src proto.Message)
func (*CreateLikeMsg) XXX_Size ¶
func (m *CreateLikeMsg) XXX_Size() int
func (*CreateLikeMsg) XXX_Unmarshal ¶
func (m *CreateLikeMsg) XXX_Unmarshal(b []byte) error
type CreateUserHandler ¶
type CreateUserHandler struct {
// contains filtered or unexported fields
}
CreateUserHandler will handle CreateUserMsg
type CreateUserMsg ¶
type CreateUserMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Username is user's alias Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // Bio is user information Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty"` }
func (*CreateUserMsg) Descriptor ¶
func (*CreateUserMsg) Descriptor() ([]byte, []int)
func (*CreateUserMsg) GetBio ¶
func (m *CreateUserMsg) GetBio() string
func (*CreateUserMsg) GetMetadata ¶
func (m *CreateUserMsg) GetMetadata() *weave.Metadata
func (*CreateUserMsg) GetUsername ¶
func (m *CreateUserMsg) GetUsername() string
func (*CreateUserMsg) Marshal ¶
func (m *CreateUserMsg) Marshal() (dAtA []byte, err error)
func (CreateUserMsg) Path ¶
func (CreateUserMsg) Path() string
Path returns the routing path for this message.
func (*CreateUserMsg) ProtoMessage ¶
func (*CreateUserMsg) ProtoMessage()
func (*CreateUserMsg) Reset ¶
func (m *CreateUserMsg) Reset()
func (*CreateUserMsg) Size ¶
func (m *CreateUserMsg) Size() (n int)
func (*CreateUserMsg) String ¶
func (m *CreateUserMsg) String() string
func (*CreateUserMsg) Unmarshal ¶
func (m *CreateUserMsg) Unmarshal(dAtA []byte) error
func (CreateUserMsg) Validate ¶
func (m CreateUserMsg) Validate() error
Validate ensures the CreateUserMsg is valid
func (*CreateUserMsg) XXX_DiscardUnknown ¶
func (m *CreateUserMsg) XXX_DiscardUnknown()
func (*CreateUserMsg) XXX_Marshal ¶
func (m *CreateUserMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserMsg) XXX_Merge ¶
func (m *CreateUserMsg) XXX_Merge(src proto.Message)
func (*CreateUserMsg) XXX_Size ¶
func (m *CreateUserMsg) XXX_Size() int
func (*CreateUserMsg) XXX_Unmarshal ¶
func (m *CreateUserMsg) XXX_Unmarshal(b []byte) error
type CronDeleteArticleHandler ¶
type CronDeleteArticleHandler struct {
// contains filtered or unexported fields
}
CronDeleteArticleHandler will handle scheduled DeleteArticleMsg
type DeleteArticleHandler ¶
type DeleteArticleHandler struct {
// contains filtered or unexported fields
}
DeleteArticleHandler will handle DeleteArticleMsg
type DeleteArticleMsg ¶
type DeleteArticleMsg struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ArticleID is the identifier of the article that is desired to be deleted ArticleID []byte `protobuf:"bytes,2,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` }
DeleteArticleMsg message deletes the the article instantly
func (*DeleteArticleMsg) Descriptor ¶
func (*DeleteArticleMsg) Descriptor() ([]byte, []int)
func (*DeleteArticleMsg) GetArticleID ¶
func (m *DeleteArticleMsg) GetArticleID() []byte
func (*DeleteArticleMsg) GetMetadata ¶
func (m *DeleteArticleMsg) GetMetadata() *weave.Metadata
func (*DeleteArticleMsg) Marshal ¶
func (m *DeleteArticleMsg) Marshal() (dAtA []byte, err error)
func (DeleteArticleMsg) Path ¶
func (DeleteArticleMsg) Path() string
Path returns the routing path for this message.
func (*DeleteArticleMsg) ProtoMessage ¶
func (*DeleteArticleMsg) ProtoMessage()
func (*DeleteArticleMsg) Reset ¶
func (m *DeleteArticleMsg) Reset()
func (*DeleteArticleMsg) Size ¶
func (m *DeleteArticleMsg) Size() (n int)
func (*DeleteArticleMsg) String ¶
func (m *DeleteArticleMsg) String() string
func (*DeleteArticleMsg) Unmarshal ¶
func (m *DeleteArticleMsg) Unmarshal(dAtA []byte) error
func (DeleteArticleMsg) Validate ¶
func (m DeleteArticleMsg) Validate() error
Validate ensures the DeleteArticle is valid
func (*DeleteArticleMsg) XXX_DiscardUnknown ¶
func (m *DeleteArticleMsg) XXX_DiscardUnknown()
func (*DeleteArticleMsg) XXX_Marshal ¶
func (m *DeleteArticleMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteArticleMsg) XXX_Merge ¶
func (m *DeleteArticleMsg) XXX_Merge(src proto.Message)
func (*DeleteArticleMsg) XXX_Size ¶
func (m *DeleteArticleMsg) XXX_Size() int
func (*DeleteArticleMsg) XXX_Unmarshal ¶
func (m *DeleteArticleMsg) XXX_Unmarshal(b []byte) error
type DeleteArticleTask ¶
type DeleteArticleTask struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // TaskID is the unique identifier of the task ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // ArticleID is the id of the article that will be deleted ArticleID []byte `protobuf:"bytes,3,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // TaskOwner is the creator of the task TaskOwner github_com_iov_one_weave.Address `` /* 130-byte string literal not displayed */ }
DeleteArticleTask is used for representing scheduled task id. Used when deleting the task
func (*DeleteArticleTask) Copy ¶
func (m *DeleteArticleTask) Copy() orm.CloneableData
Copy produces a new copy to fulfill the Model interface
func (*DeleteArticleTask) Descriptor ¶
func (*DeleteArticleTask) Descriptor() ([]byte, []int)
func (*DeleteArticleTask) GetArticleID ¶
func (m *DeleteArticleTask) GetArticleID() []byte
func (*DeleteArticleTask) GetID ¶
func (m *DeleteArticleTask) GetID() []byte
func (*DeleteArticleTask) GetMetadata ¶
func (m *DeleteArticleTask) GetMetadata() *weave.Metadata
func (*DeleteArticleTask) GetTaskOwner ¶
func (m *DeleteArticleTask) GetTaskOwner() github_com_iov_one_weave.Address
func (*DeleteArticleTask) Marshal ¶
func (m *DeleteArticleTask) Marshal() (dAtA []byte, err error)
func (*DeleteArticleTask) MarshalTo ¶
func (m *DeleteArticleTask) MarshalTo(dAtA []byte) (int, error)
func (*DeleteArticleTask) ProtoMessage ¶
func (*DeleteArticleTask) ProtoMessage()
func (*DeleteArticleTask) Reset ¶
func (m *DeleteArticleTask) Reset()
func (*DeleteArticleTask) SetID ¶
func (m *DeleteArticleTask) SetID(id []byte) error
SetID is a minimal implementation, useful when the ID is a separate protobuf field
func (*DeleteArticleTask) Size ¶
func (m *DeleteArticleTask) Size() (n int)
func (*DeleteArticleTask) String ¶
func (m *DeleteArticleTask) String() string
func (*DeleteArticleTask) Unmarshal ¶
func (m *DeleteArticleTask) Unmarshal(dAtA []byte) error
func (*DeleteArticleTask) Validate ¶
func (m *DeleteArticleTask) Validate() error
Validate validates user's fields
func (*DeleteArticleTask) XXX_DiscardUnknown ¶
func (m *DeleteArticleTask) XXX_DiscardUnknown()
func (*DeleteArticleTask) XXX_Marshal ¶
func (m *DeleteArticleTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteArticleTask) XXX_Merge ¶
func (m *DeleteArticleTask) XXX_Merge(src proto.Message)
func (*DeleteArticleTask) XXX_Size ¶
func (m *DeleteArticleTask) XXX_Size() int
func (*DeleteArticleTask) XXX_Unmarshal ¶
func (m *DeleteArticleTask) XXX_Unmarshal(b []byte) error
type DeleteArticleTaskBucket ¶
type DeleteArticleTaskBucket struct {
morm.ModelBucket
}
func NewDeleteArticleTaskBucket ¶
func NewDeleteArticleTaskBucket() *DeleteArticleTaskBucket
NewDeleteArticleTaskBucket returns a new delete article task bucket
type Like ¶
type Like struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ID is like's identifier ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // ArticleID identifies article that like is posted to ArticleID []byte `protobuf:"bytes,3,opt,name=article_id,json=articleId,proto3" json:"article_id,omitempty"` // Owner is the owner address of the like Owner github_com_iov_one_weave.Address `protobuf:"bytes,4,opt,name=owner,proto3,casttype=github.com/iov-one/weave.Address" json:"owner,omitempty"` // CreatedAt defines creation time of the like CreatedAt github_com_iov_one_weave.UnixTime `` /* 132-byte string literal not displayed */ }
func (*Like) Copy ¶
func (m *Like) Copy() orm.CloneableData
Copy produces a new copy to fulfill the Model interface TODO remove after weave 0.22.0 is released
func (*Like) Descriptor ¶
func (*Like) GetArticleID ¶
func (*Like) GetCreatedAt ¶
func (m *Like) GetCreatedAt() github_com_iov_one_weave.UnixTime
func (*Like) GetMetadata ¶
func (*Like) GetOwner ¶
func (m *Like) GetOwner() github_com_iov_one_weave.Address
func (*Like) ProtoMessage ¶
func (*Like) ProtoMessage()
func (*Like) SetID ¶
SetID is a minimal implementation, useful when the ID is a separate protobuf field
func (*Like) XXX_DiscardUnknown ¶
func (m *Like) XXX_DiscardUnknown()
func (*Like) XXX_Unmarshal ¶
type LikeBucket ¶
type LikeBucket struct {
morm.ModelBucket
}
type User ¶
type User struct { Metadata *weave.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // ID is users identifier ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Username is user's alias Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // Bio is user information Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty"` // RegisteredAt defines registration time of the user RegisteredAt github_com_iov_one_weave.UnixTime `` /* 141-byte string literal not displayed */ }
func (*User) Copy ¶
func (m *User) Copy() orm.CloneableData
Copy produces a new copy to fulfill the Model interface
func (*User) Descriptor ¶
func (*User) GetMetadata ¶
func (*User) GetRegisteredAt ¶
func (m *User) GetRegisteredAt() github_com_iov_one_weave.UnixTime
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) SetID ¶
SetID is a minimal implementation, useful when the ID is a separate protobuf field
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserBucket ¶
type UserBucket struct {
morm.ModelBucket
}