tgmock

package
v0.0.2-301223-bfaf9a7 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoField = errors.New("missing required field")

Functions

This section is empty.

Types

type Config

type Config struct {
	Control string `yaml:"control" validate:"required,hostname_port"`
	Service string `yaml:"service" validate:"required,hostname_port"`
}

type TGMock

type TGMock struct {
	control.UnimplementedTGMockControlServer
	// contains filtered or unexported fields
}

func New

func New(cfg Config, logger *zap.Logger) *TGMock

func (*TGMock) CreateUpdate

func (*TGMock) ListMessages

func (*TGMock) Start

func (tm *TGMock) Start() error

func (*TGMock) Stop

func (tm *TGMock) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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