context

package
v0.0.0-...-75ca6bc Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ThreadCtx            *Thread  `protobuf:"bytes,1,opt,name=thread_ctx,json=threadCtx,proto3" json:"thread_ctx,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Comment is inside of a thread and has a comment identifier unique to that thread.

func (*Comment) Descriptor

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

func (*Comment) GetId

func (m *Comment) GetId() string

func (*Comment) GetThreadCtx

func (m *Comment) GetThreadCtx() *Thread

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) String

func (m *Comment) String() string

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

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

func (*Comment) XXX_Merge

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

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

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

type Context

type Context struct {
	// Types that are valid to be assigned to Ctx:
	//	*Context_SectionCtx
	//	*Context_ThreadCtx
	//	*Context_CommentCtx
	//	*Context_SubcommentCtx
	Ctx                  isContext_Ctx `protobuf_oneof:"ctx"`
	SectionId            string        `protobuf:"bytes,5,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Context) Descriptor

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

func (*Context) GetCommentCtx

func (m *Context) GetCommentCtx() *Comment

func (*Context) GetCtx

func (m *Context) GetCtx() isContext_Ctx

func (*Context) GetSectionCtx

func (m *Context) GetSectionCtx() *Section

func (*Context) GetSectionId

func (m *Context) GetSectionId() string

func (*Context) GetSubcommentCtx

func (m *Context) GetSubcommentCtx() *Subcomment

func (*Context) GetThreadCtx

func (m *Context) GetThreadCtx() *Thread

func (*Context) ProtoMessage

func (*Context) ProtoMessage()

func (*Context) Reset

func (m *Context) Reset()

func (*Context) String

func (m *Context) String() string

func (*Context) XXX_DiscardUnknown

func (m *Context) XXX_DiscardUnknown()

func (*Context) XXX_Marshal

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

func (*Context) XXX_Merge

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

func (*Context) XXX_OneofWrappers

func (*Context) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Context) XXX_Size

func (m *Context) XXX_Size() int

func (*Context) XXX_Unmarshal

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

type Context_CommentCtx

type Context_CommentCtx struct {
	CommentCtx *Comment `protobuf:"bytes,3,opt,name=comment_ctx,json=commentCtx,proto3,oneof"`
}

type Context_SectionCtx

type Context_SectionCtx struct {
	SectionCtx *Section `protobuf:"bytes,1,opt,name=section_ctx,json=sectionCtx,proto3,oneof"`
}

type Context_SubcommentCtx

type Context_SubcommentCtx struct {
	SubcommentCtx *Subcomment `protobuf:"bytes,4,opt,name=subcomment_ctx,json=subcommentCtx,proto3,oneof"`
}

type Context_ThreadCtx

type Context_ThreadCtx struct {
	ThreadCtx *Thread `protobuf:"bytes,2,opt,name=thread_ctx,json=threadCtx,proto3,oneof"`
}

type Section

type Section struct {
	Id                   string   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Section is the highest level and just has the name of the section.

func (*Section) Descriptor

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

func (*Section) GetId

func (m *Section) GetId() string

func (*Section) ProtoMessage

func (*Section) ProtoMessage()

func (*Section) Reset

func (m *Section) Reset()

func (*Section) String

func (m *Section) String() string

func (*Section) XXX_DiscardUnknown

func (m *Section) XXX_DiscardUnknown()

func (*Section) XXX_Marshal

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

func (*Section) XXX_Merge

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

func (*Section) XXX_Size

func (m *Section) XXX_Size() int

func (*Section) XXX_Unmarshal

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

type Subcomment

type Subcomment struct {
	CommentCtx           *Comment `protobuf:"bytes,1,opt,name=comment_ctx,json=commentCtx,proto3" json:"comment_ctx,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Subcomment is inside of a comment and has a subcomment identifier unique to that comment.

func (*Subcomment) Descriptor

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

func (*Subcomment) GetCommentCtx

func (m *Subcomment) GetCommentCtx() *Comment

func (*Subcomment) GetId

func (m *Subcomment) GetId() string

func (*Subcomment) ProtoMessage

func (*Subcomment) ProtoMessage()

func (*Subcomment) Reset

func (m *Subcomment) Reset()

func (*Subcomment) String

func (m *Subcomment) String() string

func (*Subcomment) XXX_DiscardUnknown

func (m *Subcomment) XXX_DiscardUnknown()

func (*Subcomment) XXX_Marshal

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

func (*Subcomment) XXX_Merge

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

func (*Subcomment) XXX_Size

func (m *Subcomment) XXX_Size() int

func (*Subcomment) XXX_Unmarshal

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

type Thread

type Thread struct {
	SectionCtx           *Section `protobuf:"bytes,1,opt,name=section_ctx,json=sectionCtx,proto3" json:"section_ctx,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Thread is inside of a section and has a thread identifier unique to that section.

func (*Thread) Descriptor

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

func (*Thread) GetId

func (m *Thread) GetId() string

func (*Thread) GetSectionCtx

func (m *Thread) GetSectionCtx() *Section

func (*Thread) ProtoMessage

func (*Thread) ProtoMessage()

func (*Thread) Reset

func (m *Thread) Reset()

func (*Thread) String

func (m *Thread) String() string

func (*Thread) XXX_DiscardUnknown

func (m *Thread) XXX_DiscardUnknown()

func (*Thread) XXX_Marshal

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

func (*Thread) XXX_Merge

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

func (*Thread) XXX_Size

func (m *Thread) XXX_Size() int

func (*Thread) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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