bbs

package
v0.0.0-...-2d12dd2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const DriverName = "dqlite"

DriverName is the default driver name for dqlite.

Variables

This section is empty.

Functions

func GetCertificate

func GetCertificate() tls.Certificate

func Open

func Open(dsn string) gorm.Dialector

func TelnetRoutine

func TelnetRoutine(c *telnet.Connection)

Types

type Dialector

type Dialector struct {
	DriverName string
	DSN        string
	Conn       gorm.ConnPool
}

func (Dialector) BindVarTo

func (dialector Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{})

func (Dialector) ClauseBuilders

func (dialector Dialector) ClauseBuilders() map[string]clause.ClauseBuilder

func (Dialector) DataTypeOf

func (dialector Dialector) DataTypeOf(field *schema.Field) string

func (Dialector) DefaultValueOf

func (dialector Dialector) DefaultValueOf(field *schema.Field) clause.Expression

func (Dialector) Explain

func (dialector Dialector) Explain(sql string, vars ...interface{}) string

func (Dialector) Initialize

func (dialector Dialector) Initialize(db *gorm.DB) (err error)

func (Dialector) Migrator

func (dialector Dialector) Migrator(db *gorm.DB) gorm.Migrator

func (Dialector) Name

func (dialector Dialector) Name() string

func (Dialector) QuoteTo

func (dialector Dialector) QuoteTo(writer clause.Writer, str string)

func (Dialector) RollbackTo

func (dialectopr Dialector) RollbackTo(tx *gorm.DB, name string) error

func (Dialector) SavePoint

func (dialectopr Dialector) SavePoint(tx *gorm.DB, name string) error

type Reader

type Reader struct {
	C chan []byte
}

Reader reads messages via the telnet.Connection and passes them to a channel.

func NewReader

func NewReader() *Reader

NewReader constructs a new Reader with a new channel C.

func (*Reader) Read

func (r *Reader) Read(in *telnet.Connection) (err error)

Read() reads data into buf unread bytes will be discard if buf is full

type Server

type Server struct {
	ginmill.Server
	mastodon.IMastodon
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Cheers

func (s *Server) Cheers(c *gin.Context)

response to cheers

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) (err error)

func (*Server) OAuthAuthorize

func (s *Server) OAuthAuthorize(c *gin.Context)

func (*Server) OAuthObtainToken

func (s *Server) OAuthObtainToken(c *gin.Context)

func (*Server) OAuthRevokeToken

func (s *Server) OAuthRevokeToken(c *gin.Context)

Jump to

Keyboard shortcuts

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