server

package
v0.0.0-...-b7b4bc5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, config *Config) (*Broker, error)

func (*Broker) Config

func (b *Broker) Config() *Config

func (*Broker) Repo

func (b *Broker) Repo() repository.DBRepository

func (*Broker) Start

func (b *Broker) Start(binder func(s Server, r *gin.Engine))

type Config

type Config struct {
	Port        string
	DataBaseUrl string
}

type Server

type Server interface {
	Config() *Config
	Repo() repository.DBRepository
}

Jump to

Keyboard shortcuts

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