chat

package
v0.0.0-...-fafd440 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPService

type HTTPService interface {
	Register(*gin.Engine)
}

HTTPService ...

func NewHTTPTransport

func NewHTTPTransport(s Service) HTTPService

NewHTTPTransport ...

type Message

type Message struct {
	ID   int64
	Text string
}

Message ...

type Service

type Service interface {
	AddMessage(Message) error
	FindByID(int) *Message
	FindAll() []*Message
}

Service ...

func New

func New(db *sqlx.DB, c *config.Config) (Service, error)

New ...

Jump to

Keyboard shortcuts

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