attachments

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PhotoType = AttachmentType("photo")
	PostType  = AttachmentType("post")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment interface {
	GetType() AttachmentType
	GetId() uint
	GetOwnerId() int
	GetAccessKey() string
	BuildString() string
}

type AttachmentType

type AttachmentType string

type Image

type Image struct {
	OwnerId   int
	Id        uint
	AccessKey string
}

func (*Image) BuildString

func (image *Image) BuildString() string

func (*Image) GetAccessKey

func (image *Image) GetAccessKey() string

func (*Image) GetId

func (image *Image) GetId() uint

func (*Image) GetOwnerId

func (image *Image) GetOwnerId() int

func (*Image) GetType

func (image *Image) GetType() AttachmentType

type Post added in v1.3.0

type Post struct {
	OwnerId   int
	Id        uint
	AccessKey string
	Text      string
	Date      int64
}

func (*Post) BuildString added in v1.3.0

func (post *Post) BuildString() string

func (*Post) GetAccessKey added in v1.3.0

func (post *Post) GetAccessKey() string

func (*Post) GetId added in v1.3.0

func (post *Post) GetId() uint

func (*Post) GetOwnerId added in v1.3.0

func (post *Post) GetOwnerId() int

func (*Post) GetType added in v1.3.0

func (post *Post) GetType() AttachmentType

func (*Post) Init added in v1.3.1

func (post *Post) Init()

Jump to

Keyboard shortcuts

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