boardd

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PartialOptions_SelectType_name = map[int32]string{
		0: "SELECT_FULL",
		1: "SELECT_HEAD",
		2: "SELECT_TAIL",
		3: "SELECT_PART",
	}
	PartialOptions_SelectType_value = map[string]int32{
		"SELECT_FULL": 0,
		"SELECT_HEAD": 1,
		"SELECT_TAIL": 2,
		"SELECT_PART": 3,
	}
)

Enum value maps for PartialOptions_SelectType.

View Source
var (
	SearchFilter_Type_name = map[int32]string{
		0: "TYPE_UNKNOWN",
		1: "TYPE_EXACT_TITLE",
		2: "TYPE_TITLE",
		3: "TYPE_AUTHOR",
		4: "TYPE_RECOMMEND",
		5: "TYPE_MONEY",
		6: "TYPE_MARK",
		7: "TYPE_SOLVED",
	}
	SearchFilter_Type_value = map[string]int32{
		"TYPE_UNKNOWN":     0,
		"TYPE_EXACT_TITLE": 1,
		"TYPE_TITLE":       2,
		"TYPE_AUTHOR":      3,
		"TYPE_RECOMMEND":   4,
		"TYPE_MONEY":       5,
		"TYPE_MARK":        6,
		"TYPE_SOLVED":      7,
	}
)

Enum value maps for SearchFilter_Type.

View Source
var (
	IsTest    = false
	TestMutex sync.Mutex
)
View Source
var BoardService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pttbbs.api.BoardService",
	HandlerType: (*BoardServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Board",
			Handler:    _BoardService_Board_Handler,
		},
		{
			MethodName: "List",
			Handler:    _BoardService_List_Handler,
		},
		{
			MethodName: "Hotboard",
			Handler:    _BoardService_Hotboard_Handler,
		},
		{
			MethodName: "Content",
			Handler:    _BoardService_Content_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _BoardService_Search_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "board.proto",
}

BoardService_ServiceDesc is the grpc.ServiceDesc for BoardService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ErrCliAlreadyInit = errors.New("cli already init")
View Source
var File_board_proto protoreflect.FileDescriptor
View Source
var GRPC_HOST = "localhost:5150"

Functions

func Finalize

func Finalize(isLocked bool)

func Init

func Init(isLocked bool) (err error)

func InitConfig

func InitConfig() error

func RegisterBoardServiceServer

func RegisterBoardServiceServer(s grpc.ServiceRegistrar, srv BoardServiceServer)

func Reset

func Reset() (err error)

func SetIsTest

func SetIsTest()

func UnsetIsTest

func UnsetIsTest()

Types

type Board

type Board struct {
	Bid           uint32   `protobuf:"varint,1,opt,name=bid,proto3" json:"bid,omitempty"`
	Name          string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Title         string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Bclass        string   `protobuf:"bytes,4,opt,name=bclass,proto3" json:"bclass,omitempty"`
	RawModerators string   `protobuf:"bytes,5,opt,name=raw_moderators,json=rawModerators,proto3" json:"raw_moderators,omitempty"`
	Parent        uint32   `protobuf:"varint,6,opt,name=parent,proto3" json:"parent,omitempty"`
	NumUsers      uint32   `protobuf:"varint,7,opt,name=num_users,json=numUsers,proto3" json:"num_users,omitempty"`
	NumPosts      uint32   `protobuf:"varint,8,opt,name=num_posts,json=numPosts,proto3" json:"num_posts,omitempty"`
	Attributes    uint32   `protobuf:"varint,9,opt,name=attributes,proto3" json:"attributes,omitempty"`
	Children      []uint32 `protobuf:"varint,10,rep,packed,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*Board) Descriptor deprecated

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

Deprecated: Use Board.ProtoReflect.Descriptor instead.

func (*Board) GetAttributes

func (x *Board) GetAttributes() uint32

func (*Board) GetBclass

func (x *Board) GetBclass() string

func (*Board) GetBid

func (x *Board) GetBid() uint32

func (*Board) GetChildren

func (x *Board) GetChildren() []uint32

func (*Board) GetName

func (x *Board) GetName() string

func (*Board) GetNumPosts

func (x *Board) GetNumPosts() uint32

func (*Board) GetNumUsers

func (x *Board) GetNumUsers() uint32

func (*Board) GetParent

func (x *Board) GetParent() uint32

func (*Board) GetRawModerators

func (x *Board) GetRawModerators() string

func (*Board) GetTitle

func (x *Board) GetTitle() string

func (*Board) ProtoMessage

func (*Board) ProtoMessage()

func (*Board) ProtoReflect

func (x *Board) ProtoReflect() protoreflect.Message

func (*Board) Reset

func (x *Board) Reset()

func (*Board) String

func (x *Board) String() string

type BoardRef

type BoardRef struct {

	// Types that are assignable to Ref:
	//	*BoardRef_Bid
	//	*BoardRef_Name
	Ref isBoardRef_Ref `protobuf_oneof:"ref"`
	// contains filtered or unexported fields
}

func (*BoardRef) Descriptor deprecated

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

Deprecated: Use BoardRef.ProtoReflect.Descriptor instead.

func (*BoardRef) GetBid

func (x *BoardRef) GetBid() uint32

func (*BoardRef) GetName

func (x *BoardRef) GetName() string

func (*BoardRef) GetRef

func (m *BoardRef) GetRef() isBoardRef_Ref

func (*BoardRef) ProtoMessage

func (*BoardRef) ProtoMessage()

func (*BoardRef) ProtoReflect

func (x *BoardRef) ProtoReflect() protoreflect.Message

func (*BoardRef) Reset

func (x *BoardRef) Reset()

func (*BoardRef) String

func (x *BoardRef) String() string

type BoardRef_Bid

type BoardRef_Bid struct {
	Bid uint32 `protobuf:"varint,1,opt,name=bid,proto3,oneof"`
}

type BoardRef_Name

type BoardRef_Name struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type BoardReply

type BoardReply struct {
	Boards []*Board `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"`
	// contains filtered or unexported fields
}

func (*BoardReply) Descriptor deprecated

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

Deprecated: Use BoardReply.ProtoReflect.Descriptor instead.

func (*BoardReply) GetBoards

func (x *BoardReply) GetBoards() []*Board

func (*BoardReply) ProtoMessage

func (*BoardReply) ProtoMessage()

func (*BoardReply) ProtoReflect

func (x *BoardReply) ProtoReflect() protoreflect.Message

func (*BoardReply) Reset

func (x *BoardReply) Reset()

func (*BoardReply) String

func (x *BoardReply) String() string

type BoardRequest

type BoardRequest struct {
	Ref []*BoardRef `protobuf:"bytes,1,rep,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*BoardRequest) Descriptor deprecated

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

Deprecated: Use BoardRequest.ProtoReflect.Descriptor instead.

func (*BoardRequest) GetRef

func (x *BoardRequest) GetRef() []*BoardRef

func (*BoardRequest) ProtoMessage

func (*BoardRequest) ProtoMessage()

func (*BoardRequest) ProtoReflect

func (x *BoardRequest) ProtoReflect() protoreflect.Message

func (*BoardRequest) Reset

func (x *BoardRequest) Reset()

func (*BoardRequest) String

func (x *BoardRequest) String() string

type BoardServiceClient

type BoardServiceClient interface {
	Board(ctx context.Context, in *BoardRequest, opts ...grpc.CallOption) (*BoardReply, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
	Hotboard(ctx context.Context, in *HotboardRequest, opts ...grpc.CallOption) (*HotboardReply, error)
	Content(ctx context.Context, in *ContentRequest, opts ...grpc.CallOption) (*ContentReply, error)
	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchReply, error)
}

BoardServiceClient is the client API for BoardService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Cli: this will be used in api.

type BoardServiceServer

type BoardServiceServer interface {
	Board(context.Context, *BoardRequest) (*BoardReply, error)
	List(context.Context, *ListRequest) (*ListReply, error)
	Hotboard(context.Context, *HotboardRequest) (*HotboardReply, error)
	Content(context.Context, *ContentRequest) (*ContentReply, error)
	Search(context.Context, *SearchRequest) (*SearchReply, error)
	// contains filtered or unexported methods
}

BoardServiceServer is the server API for BoardService service. All implementations must embed UnimplementedBoardServiceServer for forward compatibility

type Content

type Content struct {
	Content          []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	ConsistencyToken string `protobuf:"bytes,2,opt,name=consistency_token,json=consistencyToken,proto3" json:"consistency_token,omitempty"`
	Offset           int64  `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	Length           int64  `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"`
	TotalLength      int64  `protobuf:"varint,5,opt,name=total_length,json=totalLength,proto3" json:"total_length,omitempty"`
	// contains filtered or unexported fields
}

func (*Content) Descriptor deprecated

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetConsistencyToken

func (x *Content) GetConsistencyToken() string

func (*Content) GetContent

func (x *Content) GetContent() []byte

func (*Content) GetLength

func (x *Content) GetLength() int64

func (*Content) GetOffset

func (x *Content) GetOffset() int64

func (*Content) GetTotalLength

func (x *Content) GetTotalLength() int64

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

func (x *Content) ProtoReflect() protoreflect.Message

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

type ContentReply

type ContentReply struct {
	Content *Content `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentReply) Descriptor deprecated

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

Deprecated: Use ContentReply.ProtoReflect.Descriptor instead.

func (*ContentReply) GetContent

func (x *ContentReply) GetContent() *Content

func (*ContentReply) ProtoMessage

func (*ContentReply) ProtoMessage()

func (*ContentReply) ProtoReflect

func (x *ContentReply) ProtoReflect() protoreflect.Message

func (*ContentReply) Reset

func (x *ContentReply) Reset()

func (*ContentReply) String

func (x *ContentReply) String() string

type ContentRequest

type ContentRequest struct {
	BoardRef         *BoardRef       `protobuf:"bytes,1,opt,name=board_ref,json=boardRef,proto3" json:"board_ref,omitempty"`
	Filename         string          `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	ConsistencyToken string          `protobuf:"bytes,3,opt,name=consistency_token,json=consistencyToken,proto3" json:"consistency_token,omitempty"`
	PartialOptions   *PartialOptions `protobuf:"bytes,4,opt,name=partial_options,json=partialOptions,proto3" json:"partial_options,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentRequest) Descriptor deprecated

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

Deprecated: Use ContentRequest.ProtoReflect.Descriptor instead.

func (*ContentRequest) GetBoardRef

func (x *ContentRequest) GetBoardRef() *BoardRef

func (*ContentRequest) GetConsistencyToken

func (x *ContentRequest) GetConsistencyToken() string

func (*ContentRequest) GetFilename

func (x *ContentRequest) GetFilename() string

func (*ContentRequest) GetPartialOptions

func (x *ContentRequest) GetPartialOptions() *PartialOptions

func (*ContentRequest) ProtoMessage

func (*ContentRequest) ProtoMessage()

func (*ContentRequest) ProtoReflect

func (x *ContentRequest) ProtoReflect() protoreflect.Message

func (*ContentRequest) Reset

func (x *ContentRequest) Reset()

func (*ContentRequest) String

func (x *ContentRequest) String() string

type HotboardReply

type HotboardReply struct {
	Boards []*Board `protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"`
	// contains filtered or unexported fields
}

func (*HotboardReply) Descriptor deprecated

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

Deprecated: Use HotboardReply.ProtoReflect.Descriptor instead.

func (*HotboardReply) GetBoards

func (x *HotboardReply) GetBoards() []*Board

func (*HotboardReply) ProtoMessage

func (*HotboardReply) ProtoMessage()

func (*HotboardReply) ProtoReflect

func (x *HotboardReply) ProtoReflect() protoreflect.Message

func (*HotboardReply) Reset

func (x *HotboardReply) Reset()

func (*HotboardReply) String

func (x *HotboardReply) String() string

type HotboardRequest

type HotboardRequest struct {
	// contains filtered or unexported fields
}

func (*HotboardRequest) Descriptor deprecated

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

Deprecated: Use HotboardRequest.ProtoReflect.Descriptor instead.

func (*HotboardRequest) ProtoMessage

func (*HotboardRequest) ProtoMessage()

func (*HotboardRequest) ProtoReflect

func (x *HotboardRequest) ProtoReflect() protoreflect.Message

func (*HotboardRequest) Reset

func (x *HotboardRequest) Reset()

func (*HotboardRequest) String

func (x *HotboardRequest) String() string

type ListReply

type ListReply struct {
	Posts   []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
	Bottoms []*Post `protobuf:"bytes,2,rep,name=bottoms,proto3" json:"bottoms,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReply) Descriptor deprecated

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

Deprecated: Use ListReply.ProtoReflect.Descriptor instead.

func (*ListReply) GetBottoms

func (x *ListReply) GetBottoms() []*Post

func (*ListReply) GetPosts

func (x *ListReply) GetPosts() []*Post

func (*ListReply) ProtoMessage

func (*ListReply) ProtoMessage()

func (*ListReply) ProtoReflect

func (x *ListReply) ProtoReflect() protoreflect.Message

func (*ListReply) Reset

func (x *ListReply) Reset()

func (*ListReply) String

func (x *ListReply) String() string

type ListRequest

type ListRequest struct {
	Ref            *BoardRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	IncludePosts   bool      `protobuf:"varint,2,opt,name=include_posts,json=includePosts,proto3" json:"include_posts,omitempty"`
	Offset         int32     `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	Length         int32     `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"`
	IncludeBottoms bool      `protobuf:"varint,5,opt,name=include_bottoms,json=includeBottoms,proto3" json:"include_bottoms,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetIncludeBottoms

func (x *ListRequest) GetIncludeBottoms() bool

func (*ListRequest) GetIncludePosts

func (x *ListRequest) GetIncludePosts() bool

func (*ListRequest) GetLength

func (x *ListRequest) GetLength() int32

func (*ListRequest) GetOffset

func (x *ListRequest) GetOffset() int32

func (*ListRequest) GetRef

func (x *ListRequest) GetRef() *BoardRef

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type MockClientConn

type MockClientConn struct{}

func NewMockClientConn

func NewMockClientConn() *MockClientConn

func (*MockClientConn) Close

func (c *MockClientConn) Close()

func (*MockClientConn) Invoke

func (c *MockClientConn) Invoke(ctx context.Context, method string, args interface{}, reply interface{}, opts ...grpc.CallOption) (err error)

func (*MockClientConn) NewStream

func (c *MockClientConn) NewStream(ctx context.Context, desc *grpc.StreamDesc, method string, opts ...grpc.CallOption) (cs grpc.ClientStream, err error)

type PartialOptions

type PartialOptions struct {
	SelectType PartialOptions_SelectType `` /* 134-byte string literal not displayed */
	Offset     int64                     `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	MaxLength  int64                     `protobuf:"varint,3,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"`
	// contains filtered or unexported fields
}

func (*PartialOptions) Descriptor deprecated

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

Deprecated: Use PartialOptions.ProtoReflect.Descriptor instead.

func (*PartialOptions) GetMaxLength

func (x *PartialOptions) GetMaxLength() int64

func (*PartialOptions) GetOffset

func (x *PartialOptions) GetOffset() int64

func (*PartialOptions) GetSelectType

func (x *PartialOptions) GetSelectType() PartialOptions_SelectType

func (*PartialOptions) ProtoMessage

func (*PartialOptions) ProtoMessage()

func (*PartialOptions) ProtoReflect

func (x *PartialOptions) ProtoReflect() protoreflect.Message

func (*PartialOptions) Reset

func (x *PartialOptions) Reset()

func (*PartialOptions) String

func (x *PartialOptions) String() string

type PartialOptions_SelectType

type PartialOptions_SelectType int32
const (
	PartialOptions_SELECT_FULL PartialOptions_SelectType = 0
	PartialOptions_SELECT_HEAD PartialOptions_SelectType = 1
	PartialOptions_SELECT_TAIL PartialOptions_SelectType = 2
	PartialOptions_SELECT_PART PartialOptions_SelectType = 3
)

func (PartialOptions_SelectType) Descriptor

func (PartialOptions_SelectType) Enum

func (PartialOptions_SelectType) EnumDescriptor deprecated

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

Deprecated: Use PartialOptions_SelectType.Descriptor instead.

func (PartialOptions_SelectType) Number

func (PartialOptions_SelectType) String

func (x PartialOptions_SelectType) String() string

func (PartialOptions_SelectType) Type

type Post

type Post struct {
	Index         uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	Filename      string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
	RawDate       string `protobuf:"bytes,3,opt,name=raw_date,json=rawDate,proto3" json:"raw_date,omitempty"`
	NumRecommends int32  `protobuf:"varint,4,opt,name=num_recommends,json=numRecommends,proto3" json:"num_recommends,omitempty"`
	Filemode      int32  `protobuf:"varint,5,opt,name=filemode,proto3" json:"filemode,omitempty"`
	Owner         string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	Title         string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
	ModifiedNsec  int64  `protobuf:"varint,8,opt,name=modified_nsec,json=modifiedNsec,proto3" json:"modified_nsec,omitempty"`
	// contains filtered or unexported fields
}

func (*Post) Descriptor deprecated

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

Deprecated: Use Post.ProtoReflect.Descriptor instead.

func (*Post) GetFilemode

func (x *Post) GetFilemode() int32

func (*Post) GetFilename

func (x *Post) GetFilename() string

func (*Post) GetIndex

func (x *Post) GetIndex() uint32

func (*Post) GetModifiedNsec

func (x *Post) GetModifiedNsec() int64

func (*Post) GetNumRecommends

func (x *Post) GetNumRecommends() int32

func (*Post) GetOwner

func (x *Post) GetOwner() string

func (*Post) GetRawDate

func (x *Post) GetRawDate() string

func (*Post) GetTitle

func (x *Post) GetTitle() string

func (*Post) ProtoMessage

func (*Post) ProtoMessage()

func (*Post) ProtoReflect

func (x *Post) ProtoReflect() protoreflect.Message

func (*Post) Reset

func (x *Post) Reset()

func (*Post) String

func (x *Post) String() string

type SearchFilter

type SearchFilter struct {
	Type       SearchFilter_Type `protobuf:"varint,1,opt,name=type,proto3,enum=pttbbs.api.SearchFilter_Type" json:"type,omitempty"`
	NumberData int64             `protobuf:"varint,2,opt,name=number_data,json=numberData,proto3" json:"number_data,omitempty"`
	StringData string            `protobuf:"bytes,3,opt,name=string_data,json=stringData,proto3" json:"string_data,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchFilter) Descriptor deprecated

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

Deprecated: Use SearchFilter.ProtoReflect.Descriptor instead.

func (*SearchFilter) GetNumberData

func (x *SearchFilter) GetNumberData() int64

func (*SearchFilter) GetStringData

func (x *SearchFilter) GetStringData() string

func (*SearchFilter) GetType

func (x *SearchFilter) GetType() SearchFilter_Type

func (*SearchFilter) ProtoMessage

func (*SearchFilter) ProtoMessage()

func (*SearchFilter) ProtoReflect

func (x *SearchFilter) ProtoReflect() protoreflect.Message

func (*SearchFilter) Reset

func (x *SearchFilter) Reset()

func (*SearchFilter) String

func (x *SearchFilter) String() string

type SearchFilter_Type

type SearchFilter_Type int32
const (
	SearchFilter_TYPE_UNKNOWN     SearchFilter_Type = 0
	SearchFilter_TYPE_EXACT_TITLE SearchFilter_Type = 1
	SearchFilter_TYPE_TITLE       SearchFilter_Type = 2
	SearchFilter_TYPE_AUTHOR      SearchFilter_Type = 3
	SearchFilter_TYPE_RECOMMEND   SearchFilter_Type = 4
	SearchFilter_TYPE_MONEY       SearchFilter_Type = 5
	SearchFilter_TYPE_MARK        SearchFilter_Type = 6
	SearchFilter_TYPE_SOLVED      SearchFilter_Type = 7
)

func (SearchFilter_Type) Descriptor

func (SearchFilter_Type) Enum

func (SearchFilter_Type) EnumDescriptor deprecated

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

Deprecated: Use SearchFilter_Type.Descriptor instead.

func (SearchFilter_Type) Number

func (SearchFilter_Type) String

func (x SearchFilter_Type) String() string

func (SearchFilter_Type) Type

type SearchReply

type SearchReply struct {
	Posts      []*Post `protobuf:"bytes,1,rep,name=posts,proto3" json:"posts,omitempty"`
	TotalPosts int32   `protobuf:"varint,2,opt,name=total_posts,json=totalPosts,proto3" json:"total_posts,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchReply) Descriptor deprecated

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

Deprecated: Use SearchReply.ProtoReflect.Descriptor instead.

func (*SearchReply) GetPosts

func (x *SearchReply) GetPosts() []*Post

func (*SearchReply) GetTotalPosts

func (x *SearchReply) GetTotalPosts() int32

func (*SearchReply) ProtoMessage

func (*SearchReply) ProtoMessage()

func (*SearchReply) ProtoReflect

func (x *SearchReply) ProtoReflect() protoreflect.Message

func (*SearchReply) Reset

func (x *SearchReply) Reset()

func (*SearchReply) String

func (x *SearchReply) String() string

type SearchRequest

type SearchRequest struct {
	Ref    *BoardRef       `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	Filter []*SearchFilter `protobuf:"bytes,2,rep,name=filter,proto3" json:"filter,omitempty"`
	Offset int32           `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
	Length int32           `protobuf:"varint,4,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetFilter

func (x *SearchRequest) GetFilter() []*SearchFilter

func (*SearchRequest) GetLength

func (x *SearchRequest) GetLength() int32

func (*SearchRequest) GetOffset

func (x *SearchRequest) GetOffset() int32

func (*SearchRequest) GetRef

func (x *SearchRequest) GetRef() *BoardRef

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

func (x *SearchRequest) ProtoReflect() protoreflect.Message

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type UnimplementedBoardServiceServer

type UnimplementedBoardServiceServer struct{}

UnimplementedBoardServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBoardServiceServer) Board

func (UnimplementedBoardServiceServer) Content

func (UnimplementedBoardServiceServer) Hotboard

func (UnimplementedBoardServiceServer) List

func (UnimplementedBoardServiceServer) Search

type UnsafeBoardServiceServer

type UnsafeBoardServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeBoardServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BoardServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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