news

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Article_Status_name = map[int32]string{
		0: "DRAFT",
		1: "PUBLISHED",
		2: "REVOKED",
	}
	Article_Status_value = map[string]int32{
		"DRAFT":     0,
		"PUBLISHED": 1,
		"REVOKED":   2,
	}
)

Enum value maps for Article_Status.

View Source
var File_internal_testprotos_news_news_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Article

type Article struct {
	Author      string                 `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
	Date        *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	Title       string                 `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Content     string                 `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	Status      Article_Status         `protobuf:"varint,8,opt,name=status,proto3,enum=google.golang.org.Article_Status" json:"status,omitempty"`
	Tags        []string               `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	Attachments []*anypb.Any           `protobuf:"bytes,6,rep,name=attachments,proto3" json:"attachments,omitempty"`
	// contains filtered or unexported fields
}

func (*Article) Descriptor deprecated

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAttachments

func (x *Article) GetAttachments() []*anypb.Any

func (*Article) GetAuthor

func (x *Article) GetAuthor() string

func (*Article) GetContent

func (x *Article) GetContent() string

func (*Article) GetDate

func (x *Article) GetDate() *timestamppb.Timestamp

func (*Article) GetStatus

func (x *Article) GetStatus() Article_Status

func (*Article) GetTags

func (x *Article) GetTags() []string

func (*Article) GetTitle

func (x *Article) GetTitle() 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 Article_Status

type Article_Status int32
const (
	Article_DRAFT     Article_Status = 0
	Article_PUBLISHED Article_Status = 1
	Article_REVOKED   Article_Status = 2
)

func (Article_Status) Descriptor

func (Article_Status) Enum

func (x Article_Status) Enum() *Article_Status

func (Article_Status) EnumDescriptor deprecated

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

Deprecated: Use Article_Status.Descriptor instead.

func (Article_Status) Number

func (Article_Status) String

func (x Article_Status) String() string

func (Article_Status) Type

type BinaryAttachment

type BinaryAttachment struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BinaryAttachment) Descriptor deprecated

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

Deprecated: Use BinaryAttachment.ProtoReflect.Descriptor instead.

func (*BinaryAttachment) GetData

func (x *BinaryAttachment) GetData() []byte

func (*BinaryAttachment) GetName

func (x *BinaryAttachment) GetName() string

func (*BinaryAttachment) ProtoMessage

func (*BinaryAttachment) ProtoMessage()

func (*BinaryAttachment) ProtoReflect

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

func (*BinaryAttachment) Reset

func (x *BinaryAttachment) Reset()

func (*BinaryAttachment) String

func (x *BinaryAttachment) String() string

type KeyValueAttachment

type KeyValueAttachment struct {
	Name string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*KeyValueAttachment) Descriptor deprecated

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

Deprecated: Use KeyValueAttachment.ProtoReflect.Descriptor instead.

func (*KeyValueAttachment) GetData

func (x *KeyValueAttachment) GetData() map[string]string

func (*KeyValueAttachment) GetName

func (x *KeyValueAttachment) GetName() string

func (*KeyValueAttachment) ProtoMessage

func (*KeyValueAttachment) ProtoMessage()

func (*KeyValueAttachment) ProtoReflect

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

func (*KeyValueAttachment) Reset

func (x *KeyValueAttachment) Reset()

func (*KeyValueAttachment) String

func (x *KeyValueAttachment) String() string

Jump to

Keyboard shortcuts

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