Documentation ¶
Index ¶
- Variables
- type IPAddress
- type IPAddressVersion
- func (IPAddressVersion) Descriptor() protoreflect.EnumDescriptor
- func (x IPAddressVersion) Enum() *IPAddressVersion
- func (IPAddressVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x IPAddressVersion) Number() protoreflect.EnumNumber
- func (x IPAddressVersion) String() string
- func (IPAddressVersion) Type() protoreflect.EnumType
- type PastebinRecord
- func (*PastebinRecord) Descriptor() ([]byte, []int)deprecated
- func (x *PastebinRecord) GetBody() string
- func (x *PastebinRecord) GetCreator() *IPAddress
- func (x *PastebinRecord) GetExpiration() *timestamppb.Timestamp
- func (x *PastebinRecord) GetFilename() string
- func (x *PastebinRecord) GetMimeType() string
- func (x *PastebinRecord) GetSyntaxHighlighting() string
- func (x *PastebinRecord) GetTimeCreated() *timestamppb.Timestamp
- func (*PastebinRecord) ProtoMessage()
- func (x *PastebinRecord) ProtoReflect() protoreflect.Message
- func (x *PastebinRecord) Reset()
- func (x *PastebinRecord) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IPAddressVersion_name = map[int32]string{ 0: "V4", 1: "V6", } IPAddressVersion_value = map[string]int32{ "V4": 0, "V6": 1, } )
Enum value maps for IPAddressVersion.
View Source
var File_pastebin_record_pastebin_record_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IPAddress ¶
type IPAddress struct { Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Version IPAddressVersion `protobuf:"varint,2,opt,name=version,proto3,enum=pastebin.IPAddressVersion" json:"version,omitempty"` // contains filtered or unexported fields }
func (*IPAddress) Descriptor
deprecated
func (*IPAddress) GetVersion ¶
func (x *IPAddress) GetVersion() IPAddressVersion
func (*IPAddress) ProtoMessage ¶
func (*IPAddress) ProtoMessage()
func (*IPAddress) ProtoReflect ¶
func (x *IPAddress) ProtoReflect() protoreflect.Message
type IPAddressVersion ¶
type IPAddressVersion int32
const ( IPAddressVersion_V4 IPAddressVersion = 0 IPAddressVersion_V6 IPAddressVersion = 1 )
func (IPAddressVersion) Descriptor ¶
func (IPAddressVersion) Descriptor() protoreflect.EnumDescriptor
func (IPAddressVersion) Enum ¶
func (x IPAddressVersion) Enum() *IPAddressVersion
func (IPAddressVersion) EnumDescriptor
deprecated
func (IPAddressVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use IPAddressVersion.Descriptor instead.
func (IPAddressVersion) Number ¶
func (x IPAddressVersion) Number() protoreflect.EnumNumber
func (IPAddressVersion) String ¶
func (x IPAddressVersion) String() string
func (IPAddressVersion) Type ¶
func (IPAddressVersion) Type() protoreflect.EnumType
type PastebinRecord ¶
type PastebinRecord struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // literal text; body of utf-8 text file Creator *IPAddress `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // IP address (either v4 or v6) of client that created this paste TimeCreated *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time_created,json=timeCreated,proto3" json:"time_created,omitempty"` // when this record was inserted into database Expiration *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiration,proto3,oneof" json:"expiration,omitempty"` // when to purge Filename *string `protobuf:"bytes,5,opt,name=filename,proto3,oneof" json:"filename,omitempty"` MimeType *string `protobuf:"bytes,6,opt,name=mime_type,json=mimeType,proto3,oneof" json:"mime_type,omitempty"` // mime type string of the "file" SyntaxHighlighting *string `protobuf:"bytes,7,opt,name=syntax_highlighting,json=syntaxHighlighting,proto3,oneof" json:"syntax_highlighting,omitempty"` // language for syntax highlighting // contains filtered or unexported fields }
func (*PastebinRecord) Descriptor
deprecated
func (*PastebinRecord) Descriptor() ([]byte, []int)
Deprecated: Use PastebinRecord.ProtoReflect.Descriptor instead.
func (*PastebinRecord) GetBody ¶
func (x *PastebinRecord) GetBody() string
func (*PastebinRecord) GetCreator ¶
func (x *PastebinRecord) GetCreator() *IPAddress
func (*PastebinRecord) GetExpiration ¶
func (x *PastebinRecord) GetExpiration() *timestamppb.Timestamp
func (*PastebinRecord) GetFilename ¶
func (x *PastebinRecord) GetFilename() string
func (*PastebinRecord) GetMimeType ¶
func (x *PastebinRecord) GetMimeType() string
func (*PastebinRecord) GetSyntaxHighlighting ¶
func (x *PastebinRecord) GetSyntaxHighlighting() string
func (*PastebinRecord) GetTimeCreated ¶
func (x *PastebinRecord) GetTimeCreated() *timestamppb.Timestamp
func (*PastebinRecord) ProtoMessage ¶
func (*PastebinRecord) ProtoMessage()
func (*PastebinRecord) ProtoReflect ¶
func (x *PastebinRecord) ProtoReflect() protoreflect.Message
func (*PastebinRecord) Reset ¶
func (x *PastebinRecord) Reset()
func (*PastebinRecord) String ¶
func (x *PastebinRecord) String() string
Click to show internal directories.
Click to hide internal directories.