pb

package module
v0.0.0-...-845d9a5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_articles_proto protoreflect.FileDescriptor

Functions

func RegisterArticleServiceServer

func RegisterArticleServiceServer(s grpc.ServiceRegistrar, srv ArticleServiceServer)

Types

type Article

type Article struct {
	ID          int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Timestamp   int64  `protobuf:"varint,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	AID         string `protobuf:"bytes,3,opt,name=AID,proto3" json:"AID,omitempty"`
	Title       string `protobuf:"bytes,4,opt,name=Title,proto3" json:"Title,omitempty"`
	Category    string `protobuf:"bytes,5,opt,name=Category,proto3" json:"Category,omitempty"`
	Abstract    string `protobuf:"bytes,6,opt,name=Abstract,proto3" json:"Abstract,omitempty"`
	ArticleTags string `protobuf:"bytes,7,opt,name=ArticleTags,proto3" json:"ArticleTags,omitempty"`
	Authors     string `protobuf:"bytes,8,opt,name=Authors,proto3" json:"Authors,omitempty"`
	Language    string `protobuf:"bytes,9,opt,name=Language,proto3" json:"Language,omitempty"`
	Text        string `protobuf:"bytes,10,opt,name=Text,proto3" json:"Text,omitempty"`
	Image       string `protobuf:"bytes,11,opt,name=Image,proto3" json:"Image,omitempty"`
	Video       string `protobuf:"bytes,12,opt,name=Video,proto3" json:"Video,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAID

func (x *Article) GetAID() string

func (*Article) GetAbstract

func (x *Article) GetAbstract() string

func (*Article) GetArticleTags

func (x *Article) GetArticleTags() string

func (*Article) GetAuthors

func (x *Article) GetAuthors() string

func (*Article) GetCategory

func (x *Article) GetCategory() string

func (*Article) GetID

func (x *Article) GetID() int64

func (*Article) GetImage

func (x *Article) GetImage() string

func (*Article) GetLanguage

func (x *Article) GetLanguage() string

func (*Article) GetText

func (x *Article) GetText() string

func (*Article) GetTimestamp

func (x *Article) GetTimestamp() int64

func (*Article) GetTitle

func (x *Article) GetTitle() string

func (*Article) GetVideo

func (x *Article) GetVideo() string

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

type ArticleServiceClient

type ArticleServiceClient interface {
	ServiceInformation(ctx context.Context, in *InformationRequest, opts ...grpc.CallOption) (*InformationResponse, error)
	GetSingleArticle(ctx context.Context, in *ID, opts ...grpc.CallOption) (*Article, error)
	GetCategoryArticles(ctx context.Context, in *Category, opts ...grpc.CallOption) (*Articles, error)
	GetArticlesByRegion(ctx context.Context, in *ID, opts ...grpc.CallOption) (*Articles, error)
	NewArticle(ctx context.Context, in *Article, opts ...grpc.CallOption) (*ID, error)
	NewArticles(ctx context.Context, in *Articles, opts ...grpc.CallOption) (*IDs, error)
}

ArticleServiceClient is the client API for ArticleService 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.

type ArticleServiceServer

type ArticleServiceServer interface {
	ServiceInformation(context.Context, *InformationRequest) (*InformationResponse, error)
	GetSingleArticle(context.Context, *ID) (*Article, error)
	GetCategoryArticles(context.Context, *Category) (*Articles, error)
	GetArticlesByRegion(context.Context, *ID) (*Articles, error)
	NewArticle(context.Context, *Article) (*ID, error)
	NewArticles(context.Context, *Articles) (*IDs, error)
	// contains filtered or unexported methods
}

ArticleServiceServer is the server API for ArticleService service. All implementations must embed UnimplementedArticleServiceServer for forward compatibility

type Articles

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

func (*Articles) Descriptor deprecated

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

Deprecated: Use Articles.ProtoReflect.Descriptor instead.

func (*Articles) GetArticles

func (x *Articles) GetArticles() []*Article

func (*Articles) ProtoMessage

func (*Articles) ProtoMessage()

func (*Articles) ProtoReflect

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

func (*Articles) Reset

func (x *Articles) Reset()

func (*Articles) String

func (x *Articles) String() string

type Category

type Category struct {
	Category string `protobuf:"bytes,1,opt,name=Category,proto3" json:"Category,omitempty"`
	// contains filtered or unexported fields
}

func (*Category) Descriptor deprecated

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

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCategory

func (x *Category) GetCategory() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

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

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

type Count

type Count struct {
	Count int64 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"`
	// contains filtered or unexported fields
}

func (*Count) Descriptor deprecated

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

Deprecated: Use Count.ProtoReflect.Descriptor instead.

func (*Count) GetCount

func (x *Count) GetCount() int64

func (*Count) ProtoMessage

func (*Count) ProtoMessage()

func (*Count) ProtoReflect

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

func (*Count) Reset

func (x *Count) Reset()

func (*Count) String

func (x *Count) String() string

type ID

type ID struct {
	ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*ID) Descriptor deprecated

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

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetID

func (x *ID) GetID() int64

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

type IDs

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

func (*IDs) Descriptor deprecated

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

Deprecated: Use IDs.ProtoReflect.Descriptor instead.

func (*IDs) GetIDs

func (x *IDs) GetIDs() []*ID

func (*IDs) ProtoMessage

func (*IDs) ProtoMessage()

func (*IDs) ProtoReflect

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

func (*IDs) Reset

func (x *IDs) Reset()

func (*IDs) String

func (x *IDs) String() string

type InformationRequest

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

func (*InformationRequest) Descriptor deprecated

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

Deprecated: Use InformationRequest.ProtoReflect.Descriptor instead.

func (*InformationRequest) ProtoMessage

func (*InformationRequest) ProtoMessage()

func (*InformationRequest) ProtoReflect

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

func (*InformationRequest) Reset

func (x *InformationRequest) Reset()

func (*InformationRequest) String

func (x *InformationRequest) String() string

type InformationResponse

type InformationResponse struct {
	IP   string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"`
	Host string `protobuf:"bytes,2,opt,name=Host,proto3" json:"Host,omitempty"`
	// contains filtered or unexported fields
}

func (*InformationResponse) Descriptor deprecated

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

Deprecated: Use InformationResponse.ProtoReflect.Descriptor instead.

func (*InformationResponse) GetHost

func (x *InformationResponse) GetHost() string

func (*InformationResponse) GetIP

func (x *InformationResponse) GetIP() string

func (*InformationResponse) ProtoMessage

func (*InformationResponse) ProtoMessage()

func (*InformationResponse) ProtoReflect

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

func (*InformationResponse) Reset

func (x *InformationResponse) Reset()

func (*InformationResponse) String

func (x *InformationResponse) String() string

type UnimplementedArticleServiceServer

type UnimplementedArticleServiceServer struct {
}

UnimplementedArticleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedArticleServiceServer) GetArticlesByRegion

func (UnimplementedArticleServiceServer) GetCategoryArticles

func (UnimplementedArticleServiceServer) GetSingleArticle

func (UnimplementedArticleServiceServer) NewArticle

func (UnimplementedArticleServiceServer) NewArticles

func (UnimplementedArticleServiceServer) ServiceInformation

type UnsafeArticleServiceServer

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

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

Jump to

Keyboard shortcuts

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