mock

package
v3.10.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock provides mock implementation of necessary NS interfaces for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NS

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

NS is a mock NS for GS tests.

func StartNS

func StartNS(ctx context.Context) (*NS, string)

StartNS starts the mock NS.

func (ns *NS) HandleUplink(ctx context.Context, msg *ttnpb.UplinkMessage) (*types.Empty, error)

HandleUplink implements ttnpb.GsNsServer

func (*NS) Up

func (ns *NS) Up() <-chan *ttnpb.UplinkMessage

Up returns the upstream channel.

Jump to

Keyboard shortcuts

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