go_micro_srv_ledscreen

package
v2.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_ledscreen_ledscreen_proto protoreflect.FileDescriptor

Functions

func NewLedscreenEndpoints

func NewLedscreenEndpoints() []*api.Endpoint

func RegisterLedscreenHandler

func RegisterLedscreenHandler(s server.Server, hdlr LedscreenHandler, opts ...server.HandlerOption) error

Types

type Area

type Area struct {

	// 区域编号
	AreaIndex uint32 `protobuf:"varint,1,opt,name=areaIndex,proto3" json:"areaIndex,omitempty"`
	// 区域显示的内容
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Area) Descriptor deprecated

func (*Area) Descriptor() ([]byte, []int)

Deprecated: Use Area.ProtoReflect.Descriptor instead.

func (*Area) GetAreaIndex

func (x *Area) GetAreaIndex() uint32

func (*Area) GetContent

func (x *Area) GetContent() string

func (*Area) ProtoMessage

func (*Area) ProtoMessage()

func (*Area) ProtoReflect

func (x *Area) ProtoReflect() protoreflect.Message

func (*Area) Reset

func (x *Area) Reset()

func (*Area) String

func (x *Area) String() string

type ContentReq

type ContentReq struct {

	// 导引屏编号
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 显示区域编号
	AreaIndex uint32 `protobuf:"varint,2,opt,name=areaIndex,proto3" json:"areaIndex,omitempty"`
	// 待显示的内容
	Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// 是否持久化保存到LED屏
	Persistence bool          `protobuf:"varint,4,opt,name=persistence,proto3" json:"persistence,omitempty"`
	Style       *ContentStyle `protobuf:"bytes,5,opt,name=style,proto3" json:"style,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentReq) Descriptor deprecated

func (*ContentReq) Descriptor() ([]byte, []int)

Deprecated: Use ContentReq.ProtoReflect.Descriptor instead.

func (*ContentReq) GetAreaIndex

func (x *ContentReq) GetAreaIndex() uint32

func (*ContentReq) GetContent

func (x *ContentReq) GetContent() string

func (*ContentReq) GetId

func (x *ContentReq) GetId() uint32

func (*ContentReq) GetPersistence

func (x *ContentReq) GetPersistence() bool

func (*ContentReq) GetStyle

func (x *ContentReq) GetStyle() *ContentStyle

func (*ContentReq) ProtoMessage

func (*ContentReq) ProtoMessage()

func (*ContentReq) ProtoReflect

func (x *ContentReq) ProtoReflect() protoreflect.Message

func (*ContentReq) Reset

func (x *ContentReq) Reset()

func (*ContentReq) String

func (x *ContentReq) String() string

type ContentStyle

type ContentStyle struct {
	FontColor       *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=fontColor,proto3" json:"fontColor,omitempty"`
	FontId          *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=fontId,proto3" json:"fontId,omitempty"`
	Entry           *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=entry,proto3" json:"entry,omitempty"`
	SpEntry         *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=spEntry,proto3" json:"spEntry,omitempty"`
	DuEntry         *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=duEntry,proto3" json:"duEntry,omitempty"`
	HorizontalAlign *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=horizontalAlign,proto3" json:"horizontalAlign,omitempty"`
	VerticalAlign   *wrappers.UInt32Value `protobuf:"bytes,7,opt,name=verticalAlign,proto3" json:"verticalAlign,omitempty"`
	SingleText      *wrappers.UInt32Value `protobuf:"bytes,8,opt,name=singleText,proto3" json:"singleText,omitempty"`
	Wordwarp        *wrappers.UInt32Value `protobuf:"bytes,9,opt,name=wordwarp,proto3" json:"wordwarp,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentStyle) Descriptor deprecated

func (*ContentStyle) Descriptor() ([]byte, []int)

Deprecated: Use ContentStyle.ProtoReflect.Descriptor instead.

func (*ContentStyle) GetDuEntry

func (x *ContentStyle) GetDuEntry() *wrappers.UInt32Value

func (*ContentStyle) GetEntry

func (x *ContentStyle) GetEntry() *wrappers.UInt32Value

func (*ContentStyle) GetFontColor

func (x *ContentStyle) GetFontColor() *wrappers.UInt32Value

func (*ContentStyle) GetFontId

func (x *ContentStyle) GetFontId() *wrappers.UInt32Value

func (*ContentStyle) GetHorizontalAlign

func (x *ContentStyle) GetHorizontalAlign() *wrappers.UInt32Value

func (*ContentStyle) GetSingleText

func (x *ContentStyle) GetSingleText() *wrappers.UInt32Value

func (*ContentStyle) GetSpEntry

func (x *ContentStyle) GetSpEntry() *wrappers.UInt32Value

func (*ContentStyle) GetVerticalAlign

func (x *ContentStyle) GetVerticalAlign() *wrappers.UInt32Value

func (*ContentStyle) GetWordwarp

func (x *ContentStyle) GetWordwarp() *wrappers.UInt32Value

func (*ContentStyle) ProtoMessage

func (*ContentStyle) ProtoMessage()

func (*ContentStyle) ProtoReflect

func (x *ContentStyle) ProtoReflect() protoreflect.Message

func (*ContentStyle) Reset

func (x *ContentStyle) Reset()

func (*ContentStyle) String

func (x *ContentStyle) String() string

type IDReq

type IDReq struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*IDReq) Descriptor deprecated

func (*IDReq) Descriptor() ([]byte, []int)

Deprecated: Use IDReq.ProtoReflect.Descriptor instead.

func (*IDReq) GetId

func (x *IDReq) GetId() uint32

func (*IDReq) ProtoMessage

func (*IDReq) ProtoMessage()

func (*IDReq) ProtoReflect

func (x *IDReq) ProtoReflect() protoreflect.Message

func (*IDReq) Reset

func (x *IDReq) Reset()

func (*IDReq) String

func (x *IDReq) String() string

type LedScreen

type LedScreen struct {
	Id   uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Ip   string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Port int32  `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	// 导引屏区域,当前只包含区域内容
	Areas       []*Area `protobuf:"bytes,5,rep,name=areas,proto3" json:"areas,omitempty"`
	Reserve     string  `protobuf:"bytes,8,opt,name=reserve,proto3" json:"reserve,omitempty"`
	Description string  `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*LedScreen) Descriptor deprecated

func (*LedScreen) Descriptor() ([]byte, []int)

Deprecated: Use LedScreen.ProtoReflect.Descriptor instead.

func (*LedScreen) GetAreas

func (x *LedScreen) GetAreas() []*Area

func (*LedScreen) GetDescription

func (x *LedScreen) GetDescription() string

func (*LedScreen) GetId

func (x *LedScreen) GetId() uint32

func (*LedScreen) GetIp

func (x *LedScreen) GetIp() string

func (*LedScreen) GetName

func (x *LedScreen) GetName() string

func (*LedScreen) GetPort

func (x *LedScreen) GetPort() int32

func (*LedScreen) GetReserve

func (x *LedScreen) GetReserve() string

func (*LedScreen) ProtoMessage

func (*LedScreen) ProtoMessage()

func (*LedScreen) ProtoReflect

func (x *LedScreen) ProtoReflect() protoreflect.Message

func (*LedScreen) Reset

func (x *LedScreen) Reset()

func (*LedScreen) String

func (x *LedScreen) String() string

type LedScreenFilter

type LedScreenFilter struct {
	And    []*LedScreenFilter `protobuf:"bytes,1,rep,name=and,proto3" json:"and,omitempty"`
	Or     []*LedScreenFilter `protobuf:"bytes,2,rep,name=or,proto3" json:"or,omitempty"`
	IdIn   []uint32           `protobuf:"varint,3,rep,packed,name=idIn,proto3" json:"idIn,omitempty"`
	NameIn []string           `protobuf:"bytes,4,rep,name=nameIn,proto3" json:"nameIn,omitempty"`
	// contains filtered or unexported fields
}

func (*LedScreenFilter) Descriptor deprecated

func (*LedScreenFilter) Descriptor() ([]byte, []int)

Deprecated: Use LedScreenFilter.ProtoReflect.Descriptor instead.

func (*LedScreenFilter) GetAnd

func (x *LedScreenFilter) GetAnd() []*LedScreenFilter

func (*LedScreenFilter) GetIdIn

func (x *LedScreenFilter) GetIdIn() []uint32

func (*LedScreenFilter) GetNameIn

func (x *LedScreenFilter) GetNameIn() []string

func (*LedScreenFilter) GetOr

func (x *LedScreenFilter) GetOr() []*LedScreenFilter

func (*LedScreenFilter) ProtoMessage

func (*LedScreenFilter) ProtoMessage()

func (*LedScreenFilter) ProtoReflect

func (x *LedScreenFilter) ProtoReflect() protoreflect.Message

func (*LedScreenFilter) Reset

func (x *LedScreenFilter) Reset()

func (*LedScreenFilter) String

func (x *LedScreenFilter) String() string

type LedScreens

type LedScreens struct {
	LedScreens []*LedScreen `protobuf:"bytes,1,rep,name=ledScreens,proto3" json:"ledScreens,omitempty"`
	Totalpages uint32       `protobuf:"varint,2,opt,name=totalpages,proto3" json:"totalpages,omitempty"`
	Currpages  uint32       `protobuf:"varint,3,opt,name=currpages,proto3" json:"currpages,omitempty"`
	Totals     uint32       `protobuf:"varint,4,opt,name=totals,proto3" json:"totals,omitempty"`
	// contains filtered or unexported fields
}

func (*LedScreens) Descriptor deprecated

func (*LedScreens) Descriptor() ([]byte, []int)

Deprecated: Use LedScreens.ProtoReflect.Descriptor instead.

func (*LedScreens) GetCurrpages

func (x *LedScreens) GetCurrpages() uint32

func (*LedScreens) GetLedScreens

func (x *LedScreens) GetLedScreens() []*LedScreen

func (*LedScreens) GetTotalpages

func (x *LedScreens) GetTotalpages() uint32

func (*LedScreens) GetTotals

func (x *LedScreens) GetTotals() uint32

func (*LedScreens) ProtoMessage

func (*LedScreens) ProtoMessage()

func (*LedScreens) ProtoReflect

func (x *LedScreens) ProtoReflect() protoreflect.Message

func (*LedScreens) Reset

func (x *LedScreens) Reset()

func (*LedScreens) String

func (x *LedScreens) String() string

type LedscreenHandler

type LedscreenHandler interface {
	//显示相应区域的内容
	Show(context.Context, *ContentReq, *Response) error
	//根据设备id,复位显示屏
	Reset(context.Context, *IDReq, *Response) error
	//根据设备id,校准时间
	TimeCalibration(context.Context, *IDReq, *Response) error
	// 添加设备
	AddLedScreen(context.Context, *LedScreen, *Response) error
	// 删除设备
	DeleteLedScreen(context.Context, *IDReq, *Response) error
	// 修改相应设备参数
	UpdateLedScreen(context.Context, *UpdateLedScreenReq, *Response) error
	//根据设备id,获取设备
	GetLedScreen(context.Context, *IDReq, *LedScreen) error
	//返回所有设备
	GetLedScreens(context.Context, *Query, *LedScreens) error
	//获取服务日志等级
	GetLogLevel(context.Context, *LogLevelRequest, *Loglevel) error
	//设置服务日志等级
	SetLogLevel(context.Context, *Loglevel, *LogResponse) error
}

type LedscreenService

type LedscreenService interface {
	//显示相应区域的内容
	Show(ctx context.Context, in *ContentReq, opts ...client.CallOption) (*Response, error)
	//根据设备id,复位显示屏
	Reset(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error)
	//根据设备id,校准时间
	TimeCalibration(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error)
	// 添加设备
	AddLedScreen(ctx context.Context, in *LedScreen, opts ...client.CallOption) (*Response, error)
	// 删除设备
	DeleteLedScreen(ctx context.Context, in *IDReq, opts ...client.CallOption) (*Response, error)
	// 修改相应设备参数
	UpdateLedScreen(ctx context.Context, in *UpdateLedScreenReq, opts ...client.CallOption) (*Response, error)
	//根据设备id,获取设备
	GetLedScreen(ctx context.Context, in *IDReq, opts ...client.CallOption) (*LedScreen, error)
	//返回所有设备
	GetLedScreens(ctx context.Context, in *Query, opts ...client.CallOption) (*LedScreens, error)
	//获取服务日志等级
	GetLogLevel(ctx context.Context, in *LogLevelRequest, opts ...client.CallOption) (*Loglevel, error)
	//设置服务日志等级
	SetLogLevel(ctx context.Context, in *Loglevel, opts ...client.CallOption) (*LogResponse, error)
}

func NewLedscreenService

func NewLedscreenService(name string, c client.Client) LedscreenService

type LogLevelRequest

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

func (*LogLevelRequest) Descriptor deprecated

func (*LogLevelRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogLevelRequest.ProtoReflect.Descriptor instead.

func (*LogLevelRequest) ProtoMessage

func (*LogLevelRequest) ProtoMessage()

func (*LogLevelRequest) ProtoReflect

func (x *LogLevelRequest) ProtoReflect() protoreflect.Message

func (*LogLevelRequest) Reset

func (x *LogLevelRequest) Reset()

func (*LogLevelRequest) String

func (x *LogLevelRequest) String() string

type LogResponse

type LogResponse struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*LogResponse) Descriptor deprecated

func (*LogResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.

func (*LogResponse) GetName

func (x *LogResponse) GetName() string

func (*LogResponse) ProtoMessage

func (*LogResponse) ProtoMessage()

func (*LogResponse) ProtoReflect

func (x *LogResponse) ProtoReflect() protoreflect.Message

func (*LogResponse) Reset

func (x *LogResponse) Reset()

func (*LogResponse) String

func (x *LogResponse) String() string

type Loglevel

type Loglevel struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*Loglevel) Descriptor deprecated

func (*Loglevel) Descriptor() ([]byte, []int)

Deprecated: Use Loglevel.ProtoReflect.Descriptor instead.

func (*Loglevel) GetLevel

func (x *Loglevel) GetLevel() uint32

func (*Loglevel) GetName

func (x *Loglevel) GetName() string

func (*Loglevel) ProtoMessage

func (*Loglevel) ProtoMessage()

func (*Loglevel) ProtoReflect

func (x *Loglevel) ProtoReflect() protoreflect.Message

func (*Loglevel) Reset

func (x *Loglevel) Reset()

func (*Loglevel) String

func (x *Loglevel) String() string

type Query

type Query struct {
	Limit   uint32           `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset  uint32           `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Page    uint32           `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	PerPage uint32           `protobuf:"varint,4,opt,name=perPage,proto3" json:"perPage,omitempty"`
	Filter  *LedScreenFilter `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*Query) Descriptor deprecated

func (*Query) Descriptor() ([]byte, []int)

Deprecated: Use Query.ProtoReflect.Descriptor instead.

func (*Query) GetFilter

func (x *Query) GetFilter() *LedScreenFilter

func (*Query) GetLimit

func (x *Query) GetLimit() uint32

func (*Query) GetOffset

func (x *Query) GetOffset() uint32

func (*Query) GetPage

func (x *Query) GetPage() uint32

func (*Query) GetPerPage

func (x *Query) GetPerPage() uint32

func (*Query) ProtoMessage

func (*Query) ProtoMessage()

func (*Query) ProtoReflect

func (x *Query) ProtoReflect() protoreflect.Message

func (*Query) Reset

func (x *Query) Reset()

func (*Query) String

func (x *Query) String() string

type Response

type Response struct {
	IsOk    bool   `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetIsOk

func (x *Response) GetIsOk() bool

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UpdateLedScreen

type UpdateLedScreen struct {
	Id          *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Ip          *wrappers.StringValue `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Port        *wrappers.Int32Value  `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	Description *wrappers.StringValue `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLedScreen) Descriptor deprecated

func (*UpdateLedScreen) Descriptor() ([]byte, []int)

Deprecated: Use UpdateLedScreen.ProtoReflect.Descriptor instead.

func (*UpdateLedScreen) GetDescription

func (x *UpdateLedScreen) GetDescription() *wrappers.StringValue

func (*UpdateLedScreen) GetId

func (x *UpdateLedScreen) GetId() *wrappers.UInt32Value

func (*UpdateLedScreen) GetIp

func (x *UpdateLedScreen) GetIp() *wrappers.StringValue

func (*UpdateLedScreen) GetName

func (x *UpdateLedScreen) GetName() *wrappers.StringValue

func (*UpdateLedScreen) GetPort

func (x *UpdateLedScreen) GetPort() *wrappers.Int32Value

func (*UpdateLedScreen) ProtoMessage

func (*UpdateLedScreen) ProtoMessage()

func (*UpdateLedScreen) ProtoReflect

func (x *UpdateLedScreen) ProtoReflect() protoreflect.Message

func (*UpdateLedScreen) Reset

func (x *UpdateLedScreen) Reset()

func (*UpdateLedScreen) String

func (x *UpdateLedScreen) String() string

type UpdateLedScreenReq

type UpdateLedScreenReq struct {
	Id        uint32           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Ledscreen *UpdateLedScreen `protobuf:"bytes,2,opt,name=ledscreen,proto3" json:"ledscreen,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLedScreenReq) Descriptor deprecated

func (*UpdateLedScreenReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateLedScreenReq.ProtoReflect.Descriptor instead.

func (*UpdateLedScreenReq) GetId

func (x *UpdateLedScreenReq) GetId() uint32

func (*UpdateLedScreenReq) GetLedscreen

func (x *UpdateLedScreenReq) GetLedscreen() *UpdateLedScreen

func (*UpdateLedScreenReq) ProtoMessage

func (*UpdateLedScreenReq) ProtoMessage()

func (*UpdateLedScreenReq) ProtoReflect

func (x *UpdateLedScreenReq) ProtoReflect() protoreflect.Message

func (*UpdateLedScreenReq) Reset

func (x *UpdateLedScreenReq) Reset()

func (*UpdateLedScreenReq) String

func (x *UpdateLedScreenReq) String() string

Jump to

Keyboard shortcuts

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