comment

package module
v0.0.0-...-fda234a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	UUID              string     `json:"uuid"`
	Message           string     `json:"message"`
	UserUUID          string     `json:"user_uuid"`
	ParentCommentUUID string     `json:"parent_comment_uuid"`
	CreatedAt         time.Time  `json:"created_at"`
	UpdatedAt         time.Time  `json:"updated_at"`
	DeletedAt         *time.Time `json:"deleted_at"`
}

func (*Comment) String

func (c *Comment) String() string

type CommentRepository

type CommentRepository interface {
	FindByUUID(string) (*Comment, error)
	Store(*Comment) (string, error)
	Update(*Comment) error
	DeleteByUUID(string) error
}

type CommentRepositoryMongoConfig

type CommentRepositoryMongoConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	DBName   string
}

func (*CommentRepositoryMongoConfig) Connect

Directories

Path Synopsis
protobuf module

Jump to

Keyboard shortcuts

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