serial

package
v0.0.0-...-8231611 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Value uint64 `toml:"value"`
	Port  string `toml:"port"`
}

Config 配置

type ConfigService

type ConfigService struct{}

ConfigService 配置服務

func NewConfigService

func NewConfigService() *ConfigService

NewConfigService 創建服務

func (*ConfigService) Get

func (cs *ConfigService) Get() (*Config, error)

Get 取得

func (*ConfigService) Save

func (cs *ConfigService) Save(c *Config) error

Save 保存

type IDService

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

IDService 識別服務

func NewIDService

func NewIDService() *IDService

NewIDService 創建服務

func (*IDService) Get

func (is *IDService) Get() uint64

Get 取值

func (*IDService) Increase

func (is *IDService) Increase() uint64

Increase 遞增

func (*IDService) Set

func (is *IDService) Set(n uint64)

Set 設值

type WebService

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

WebService Web 服務

func NewWebService

func NewWebService() *WebService

NewWebService 創建

func (*WebService) Start

func (ws *WebService) Start()

Start 啟動

Directories

Path Synopsis
grpc
protos
Package serial is a generated protocol buffer package.
Package serial is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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