lightspb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package lightspb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var LightType_name = map[int32]string{
	0: "UNDEFINED",
	1: "MOUTH",
	2: "HANDS",
	3: "EARS",
}
View Source
var LightType_value = map[string]int32{
	"UNDEFINED": 0,
	"MOUTH":     1,
	"HANDS":     2,
	"EARS":      3,
}
View Source
var PlayMode_name = map[int32]string{
	0: "PRESET",
	1: "ALWAYS",
	2: "MARQUEE",
	3: "FLASH",
	4: "TICKTOCK",
}
View Source
var PlayMode_value = map[string]int32{
	"PRESET":   0,
	"ALWAYS":   1,
	"MARQUEE":  2,
	"FLASH":    3,
	"TICKTOCK": 4,
}

Functions

func RegisterLightsServiceHandler

func RegisterLightsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLightsServiceHandler registers the http handlers for service LightsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLightsServiceHandlerClient

func RegisterLightsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LightsServiceClient) error

RegisterLightsServiceHandlerClient registers the http handlers for service LightsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LightsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LightsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LightsServiceClient" to call the correct interceptors.

func RegisterLightsServiceHandlerFromEndpoint

func RegisterLightsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLightsServiceHandlerFromEndpoint is same as RegisterLightsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLightsServiceHandlerServer

func RegisterLightsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LightsServiceServer) error

RegisterLightsServiceHandlerServer registers the http handlers for service LightsService to "mux". UnaryRPC :call LightsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterLightsServiceServer

func RegisterLightsServiceServer(s *grpc.Server, srv LightsServiceServer)

Types

type DeleteLightsRequest

type DeleteLightsRequest struct {
	// 删除灯光id列表
	LightsId             []string `protobuf:"bytes,1,rep,name=lights_id,json=lightsId,proto3" json:"lights_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

删除灯光请求

func (*DeleteLightsRequest) Descriptor

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

func (*DeleteLightsRequest) GetLightsId

func (m *DeleteLightsRequest) GetLightsId() []string

func (*DeleteLightsRequest) ProtoMessage

func (*DeleteLightsRequest) ProtoMessage()

func (*DeleteLightsRequest) Reset

func (m *DeleteLightsRequest) Reset()

func (*DeleteLightsRequest) String

func (m *DeleteLightsRequest) String() string

func (*DeleteLightsRequest) XXX_DiscardUnknown

func (m *DeleteLightsRequest) XXX_DiscardUnknown()

func (*DeleteLightsRequest) XXX_Marshal

func (m *DeleteLightsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteLightsRequest) XXX_Merge

func (m *DeleteLightsRequest) XXX_Merge(src proto.Message)

func (*DeleteLightsRequest) XXX_Size

func (m *DeleteLightsRequest) XXX_Size() int

func (*DeleteLightsRequest) XXX_Unmarshal

func (m *DeleteLightsRequest) XXX_Unmarshal(b []byte) error

type DeleteLightsResponse

type DeleteLightsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

删除灯光结果

func (*DeleteLightsResponse) Descriptor

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

func (*DeleteLightsResponse) ProtoMessage

func (*DeleteLightsResponse) ProtoMessage()

func (*DeleteLightsResponse) Reset

func (m *DeleteLightsResponse) Reset()

func (*DeleteLightsResponse) String

func (m *DeleteLightsResponse) String() string

func (*DeleteLightsResponse) XXX_DiscardUnknown

func (m *DeleteLightsResponse) XXX_DiscardUnknown()

func (*DeleteLightsResponse) XXX_Marshal

func (m *DeleteLightsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteLightsResponse) XXX_Merge

func (m *DeleteLightsResponse) XXX_Merge(src proto.Message)

func (*DeleteLightsResponse) XXX_Size

func (m *DeleteLightsResponse) XXX_Size() int

func (*DeleteLightsResponse) XXX_Unmarshal

func (m *DeleteLightsResponse) XXX_Unmarshal(b []byte) error

type LightFrame

type LightFrame struct {
	// 灯光hex数据列表
	// e.g. #31ebd1
	Colors []string `protobuf:"bytes,1,rep,name=colors,proto3" json:"colors,omitempty"`
	// 播放速度
	Speed uint32 `protobuf:"varint,2,opt,name=speed,proto3" json:"speed,omitempty"`
	// 播放模式
	Mode                 PlayMode `protobuf:"varint,3,opt,name=mode,proto3,enum=lightsService.PlayMode" json:"mode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

灯光帧

func (*LightFrame) Descriptor

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

func (*LightFrame) GetColors

func (m *LightFrame) GetColors() []string

func (*LightFrame) GetMode

func (m *LightFrame) GetMode() PlayMode

func (*LightFrame) GetSpeed

func (m *LightFrame) GetSpeed() uint32

func (*LightFrame) ProtoMessage

func (*LightFrame) ProtoMessage()

func (*LightFrame) Reset

func (m *LightFrame) Reset()

func (*LightFrame) String

func (m *LightFrame) String() string

func (*LightFrame) XXX_DiscardUnknown

func (m *LightFrame) XXX_DiscardUnknown()

func (*LightFrame) XXX_Marshal

func (m *LightFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LightFrame) XXX_Merge

func (m *LightFrame) XXX_Merge(src proto.Message)

func (*LightFrame) XXX_Size

func (m *LightFrame) XXX_Size() int

func (*LightFrame) XXX_Unmarshal

func (m *LightFrame) XXX_Unmarshal(b []byte) error

type LightInfo

type LightInfo struct {
	// 灯光类型
	Ltype LightType `protobuf:"varint,1,opt,name=ltype,proto3,enum=lightsService.LightType" json:"ltype,omitempty"`
	// 灯光id
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// 灯光名
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// 灯光帧列表
	Frames               []*LightFrame `protobuf:"bytes,4,rep,name=frames,proto3" json:"frames,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

灯光数据明细

func (*LightInfo) Descriptor

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

func (*LightInfo) GetFrames

func (m *LightInfo) GetFrames() []*LightFrame

func (*LightInfo) GetId

func (m *LightInfo) GetId() string

func (*LightInfo) GetLtype

func (m *LightInfo) GetLtype() LightType

func (*LightInfo) GetName

func (m *LightInfo) GetName() string

func (*LightInfo) ProtoMessage

func (*LightInfo) ProtoMessage()

func (*LightInfo) Reset

func (m *LightInfo) Reset()

func (*LightInfo) String

func (m *LightInfo) String() string

func (*LightInfo) XXX_DiscardUnknown

func (m *LightInfo) XXX_DiscardUnknown()

func (*LightInfo) XXX_Marshal

func (m *LightInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LightInfo) XXX_Merge

func (m *LightInfo) XXX_Merge(src proto.Message)

func (*LightInfo) XXX_Size

func (m *LightInfo) XXX_Size() int

func (*LightInfo) XXX_Unmarshal

func (m *LightInfo) XXX_Unmarshal(b []byte) error

type LightType

type LightType int32

灯光类型

const (
	// 保留, 不使用
	LightType_UNDEFINED LightType = 0
	// 嘴部灯光
	LightType_MOUTH LightType = 1
	// 手臂灯光
	LightType_HANDS LightType = 2
	// 耳朵灯光
	LightType_EARS LightType = 3
)

func (LightType) EnumDescriptor

func (LightType) EnumDescriptor() ([]byte, []int)

func (LightType) String

func (x LightType) String() string

type LightsServiceClient

type LightsServiceClient interface {
	// PreviewLight 灯光预览
	//
	// 灯光预览方法将根据配置的灯光数据生成目标数据写入硬件,
	// 修改灯光数据后请使用此方法进行预览并更新,
	// 否则PlayLight方法将继续使用之前的旧数据进行播放
	PreviewLight(ctx context.Context, in *PreviewLightRequest, opts ...grpc.CallOption) (*PreviewLightResponse, error)
	// PlayLight 灯光播放
	//
	// 播放前请通过PreviewLight生成或更新数据实例
	PlayLight(ctx context.Context, in *PlayLightRequest, opts ...grpc.CallOption) (*PlayLightResponse, error)
	// StopLight 灯光停止
	StopLight(ctx context.Context, in *StopLightRequest, opts ...grpc.CallOption) (*StopLightResponse, error)
	// ListLights 获取灯光列表
	ListLights(ctx context.Context, in *ListLightsRequest, opts ...grpc.CallOption) (*ListLightsResponse, error)
	// NewLight 创建灯光
	NewLight(ctx context.Context, in *NewLightRequest, opts ...grpc.CallOption) (*NewLightResponse, error)
	// UpdateLight 更新灯光
	UpdateLight(ctx context.Context, in *UpdateLightRequest, opts ...grpc.CallOption) (*UpdateLightResponse, error)
	// DeleteLights 删除灯光列表
	DeleteLights(ctx context.Context, in *DeleteLightsRequest, opts ...grpc.CallOption) (*DeleteLightsResponse, error)
	// State 获取当前灯光模块状态
	State(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error)
	// Switch 控制灯光的开关
	Switch(ctx context.Context, in *SwitchRequest, opts ...grpc.CallOption) (*SwitchResponse, error)
}

LightsServiceClient is the client API for LightsService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type LightsServiceServer

type LightsServiceServer interface {
	// PreviewLight 灯光预览
	//
	// 灯光预览方法将根据配置的灯光数据生成目标数据写入硬件,
	// 修改灯光数据后请使用此方法进行预览并更新,
	// 否则PlayLight方法将继续使用之前的旧数据进行播放
	PreviewLight(context.Context, *PreviewLightRequest) (*PreviewLightResponse, error)
	// PlayLight 灯光播放
	//
	// 播放前请通过PreviewLight生成或更新数据实例
	PlayLight(context.Context, *PlayLightRequest) (*PlayLightResponse, error)
	// StopLight 灯光停止
	StopLight(context.Context, *StopLightRequest) (*StopLightResponse, error)
	// ListLights 获取灯光列表
	ListLights(context.Context, *ListLightsRequest) (*ListLightsResponse, error)
	// NewLight 创建灯光
	NewLight(context.Context, *NewLightRequest) (*NewLightResponse, error)
	// UpdateLight 更新灯光
	UpdateLight(context.Context, *UpdateLightRequest) (*UpdateLightResponse, error)
	// DeleteLights 删除灯光列表
	DeleteLights(context.Context, *DeleteLightsRequest) (*DeleteLightsResponse, error)
	// State 获取当前灯光模块状态
	State(context.Context, *StateRequest) (*StateResponse, error)
	// Switch 控制灯光的开关
	Switch(context.Context, *SwitchRequest) (*SwitchResponse, error)
}

LightsServiceServer is the server API for LightsService service.

type ListLightsRequest

type ListLightsRequest struct {
	// 灯光类型
	Ltype                LightType `protobuf:"varint,1,opt,name=ltype,proto3,enum=lightsService.LightType" json:"ltype,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

获取灯光数据请求

func (*ListLightsRequest) Descriptor

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

func (*ListLightsRequest) GetLtype

func (m *ListLightsRequest) GetLtype() LightType

func (*ListLightsRequest) ProtoMessage

func (*ListLightsRequest) ProtoMessage()

func (*ListLightsRequest) Reset

func (m *ListLightsRequest) Reset()

func (*ListLightsRequest) String

func (m *ListLightsRequest) String() string

func (*ListLightsRequest) XXX_DiscardUnknown

func (m *ListLightsRequest) XXX_DiscardUnknown()

func (*ListLightsRequest) XXX_Marshal

func (m *ListLightsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListLightsRequest) XXX_Merge

func (m *ListLightsRequest) XXX_Merge(src proto.Message)

func (*ListLightsRequest) XXX_Size

func (m *ListLightsRequest) XXX_Size() int

func (*ListLightsRequest) XXX_Unmarshal

func (m *ListLightsRequest) XXX_Unmarshal(b []byte) error

type ListLightsResponse

type ListLightsResponse struct {
	// 灯光数据明细列表
	LightsInfo           []*LightInfo `protobuf:"bytes,1,rep,name=lights_info,json=lightsInfo,proto3" json:"lights_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

获取灯光数据结果

func (*ListLightsResponse) Descriptor

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

func (*ListLightsResponse) GetLightsInfo

func (m *ListLightsResponse) GetLightsInfo() []*LightInfo

func (*ListLightsResponse) ProtoMessage

func (*ListLightsResponse) ProtoMessage()

func (*ListLightsResponse) Reset

func (m *ListLightsResponse) Reset()

func (*ListLightsResponse) String

func (m *ListLightsResponse) String() string

func (*ListLightsResponse) XXX_DiscardUnknown

func (m *ListLightsResponse) XXX_DiscardUnknown()

func (*ListLightsResponse) XXX_Marshal

func (m *ListLightsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListLightsResponse) XXX_Merge

func (m *ListLightsResponse) XXX_Merge(src proto.Message)

func (*ListLightsResponse) XXX_Size

func (m *ListLightsResponse) XXX_Size() int

func (*ListLightsResponse) XXX_Unmarshal

func (m *ListLightsResponse) XXX_Unmarshal(b []byte) error

type NewLightRequest

type NewLightRequest struct {
	// 灯光数据明细
	LightInfo            *LightInfo `protobuf:"bytes,1,opt,name=light_info,json=lightInfo,proto3" json:"light_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

创建灯光请求

func (*NewLightRequest) Descriptor

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

func (*NewLightRequest) GetLightInfo

func (m *NewLightRequest) GetLightInfo() *LightInfo

func (*NewLightRequest) ProtoMessage

func (*NewLightRequest) ProtoMessage()

func (*NewLightRequest) Reset

func (m *NewLightRequest) Reset()

func (*NewLightRequest) String

func (m *NewLightRequest) String() string

func (*NewLightRequest) XXX_DiscardUnknown

func (m *NewLightRequest) XXX_DiscardUnknown()

func (*NewLightRequest) XXX_Marshal

func (m *NewLightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewLightRequest) XXX_Merge

func (m *NewLightRequest) XXX_Merge(src proto.Message)

func (*NewLightRequest) XXX_Size

func (m *NewLightRequest) XXX_Size() int

func (*NewLightRequest) XXX_Unmarshal

func (m *NewLightRequest) XXX_Unmarshal(b []byte) error

type NewLightResponse

type NewLightResponse struct {
	// 灯光数据明细
	LightInfo            *LightInfo `protobuf:"bytes,1,opt,name=light_info,json=lightInfo,proto3" json:"light_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

创建灯光结果

func (*NewLightResponse) Descriptor

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

func (*NewLightResponse) GetLightInfo

func (m *NewLightResponse) GetLightInfo() *LightInfo

func (*NewLightResponse) ProtoMessage

func (*NewLightResponse) ProtoMessage()

func (*NewLightResponse) Reset

func (m *NewLightResponse) Reset()

func (*NewLightResponse) String

func (m *NewLightResponse) String() string

func (*NewLightResponse) XXX_DiscardUnknown

func (m *NewLightResponse) XXX_DiscardUnknown()

func (*NewLightResponse) XXX_Marshal

func (m *NewLightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewLightResponse) XXX_Merge

func (m *NewLightResponse) XXX_Merge(src proto.Message)

func (*NewLightResponse) XXX_Size

func (m *NewLightResponse) XXX_Size() int

func (*NewLightResponse) XXX_Unmarshal

func (m *NewLightResponse) XXX_Unmarshal(b []byte) error

type PlayLightRequest

type PlayLightRequest struct {
	// 灯光类型
	Ltype LightType `protobuf:"varint,1,opt,name=ltype,proto3,enum=lightsService.LightType" json:"ltype,omitempty"`
	// 灯光id
	// name参数非空时将优先匹配
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// 灯光名
	// 仅匹配
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

播放灯光请求

func (*PlayLightRequest) Descriptor

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

func (*PlayLightRequest) GetId

func (m *PlayLightRequest) GetId() string

func (*PlayLightRequest) GetLtype

func (m *PlayLightRequest) GetLtype() LightType

func (*PlayLightRequest) GetName

func (m *PlayLightRequest) GetName() string

func (*PlayLightRequest) ProtoMessage

func (*PlayLightRequest) ProtoMessage()

func (*PlayLightRequest) Reset

func (m *PlayLightRequest) Reset()

func (*PlayLightRequest) String

func (m *PlayLightRequest) String() string

func (*PlayLightRequest) XXX_DiscardUnknown

func (m *PlayLightRequest) XXX_DiscardUnknown()

func (*PlayLightRequest) XXX_Marshal

func (m *PlayLightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayLightRequest) XXX_Merge

func (m *PlayLightRequest) XXX_Merge(src proto.Message)

func (*PlayLightRequest) XXX_Size

func (m *PlayLightRequest) XXX_Size() int

func (*PlayLightRequest) XXX_Unmarshal

func (m *PlayLightRequest) XXX_Unmarshal(b []byte) error

type PlayLightResponse

type PlayLightResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

播放灯光请求结果

func (*PlayLightResponse) Descriptor

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

func (*PlayLightResponse) ProtoMessage

func (*PlayLightResponse) ProtoMessage()

func (*PlayLightResponse) Reset

func (m *PlayLightResponse) Reset()

func (*PlayLightResponse) String

func (m *PlayLightResponse) String() string

func (*PlayLightResponse) XXX_DiscardUnknown

func (m *PlayLightResponse) XXX_DiscardUnknown()

func (*PlayLightResponse) XXX_Marshal

func (m *PlayLightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayLightResponse) XXX_Merge

func (m *PlayLightResponse) XXX_Merge(src proto.Message)

func (*PlayLightResponse) XXX_Size

func (m *PlayLightResponse) XXX_Size() int

func (*PlayLightResponse) XXX_Unmarshal

func (m *PlayLightResponse) XXX_Unmarshal(b []byte) error

type PlayMode

type PlayMode int32

播放模式

const (
	// 预置模式 默认为ALWAYS
	PlayMode_PRESET PlayMode = 0
	// 常亮模式
	PlayMode_ALWAYS PlayMode = 1
	// 滚动模式
	// [1,2,3] => [2,3,1] => [3,1,2]
	PlayMode_MARQUEE PlayMode = 2
	// 闪烁模式
	// [true, true] => [false, false]
	PlayMode_FLASH PlayMode = 3
	// 跳动模式
	// [true, false, true, false] => [false, true, false, true]
	PlayMode_TICKTOCK PlayMode = 4
)

func (PlayMode) EnumDescriptor

func (PlayMode) EnumDescriptor() ([]byte, []int)

func (PlayMode) String

func (x PlayMode) String() string

type PreviewLightRequest

type PreviewLightRequest struct {
	// 灯光id
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

预览灯光请求

func (*PreviewLightRequest) Descriptor

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

func (*PreviewLightRequest) GetId

func (m *PreviewLightRequest) GetId() string

func (*PreviewLightRequest) ProtoMessage

func (*PreviewLightRequest) ProtoMessage()

func (*PreviewLightRequest) Reset

func (m *PreviewLightRequest) Reset()

func (*PreviewLightRequest) String

func (m *PreviewLightRequest) String() string

func (*PreviewLightRequest) XXX_DiscardUnknown

func (m *PreviewLightRequest) XXX_DiscardUnknown()

func (*PreviewLightRequest) XXX_Marshal

func (m *PreviewLightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PreviewLightRequest) XXX_Merge

func (m *PreviewLightRequest) XXX_Merge(src proto.Message)

func (*PreviewLightRequest) XXX_Size

func (m *PreviewLightRequest) XXX_Size() int

func (*PreviewLightRequest) XXX_Unmarshal

func (m *PreviewLightRequest) XXX_Unmarshal(b []byte) error

type PreviewLightResponse

type PreviewLightResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

预览灯光结果

func (*PreviewLightResponse) Descriptor

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

func (*PreviewLightResponse) ProtoMessage

func (*PreviewLightResponse) ProtoMessage()

func (*PreviewLightResponse) Reset

func (m *PreviewLightResponse) Reset()

func (*PreviewLightResponse) String

func (m *PreviewLightResponse) String() string

func (*PreviewLightResponse) XXX_DiscardUnknown

func (m *PreviewLightResponse) XXX_DiscardUnknown()

func (*PreviewLightResponse) XXX_Marshal

func (m *PreviewLightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PreviewLightResponse) XXX_Merge

func (m *PreviewLightResponse) XXX_Merge(src proto.Message)

func (*PreviewLightResponse) XXX_Size

func (m *PreviewLightResponse) XXX_Size() int

func (*PreviewLightResponse) XXX_Unmarshal

func (m *PreviewLightResponse) XXX_Unmarshal(b []byte) error

type StateRequest

type StateRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StateRequest) Descriptor

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

func (*StateRequest) ProtoMessage

func (*StateRequest) ProtoMessage()

func (*StateRequest) Reset

func (m *StateRequest) Reset()

func (*StateRequest) String

func (m *StateRequest) String() string

func (*StateRequest) XXX_DiscardUnknown

func (m *StateRequest) XXX_DiscardUnknown()

func (*StateRequest) XXX_Marshal

func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StateRequest) XXX_Merge

func (m *StateRequest) XXX_Merge(src proto.Message)

func (*StateRequest) XXX_Size

func (m *StateRequest) XXX_Size() int

func (*StateRequest) XXX_Unmarshal

func (m *StateRequest) XXX_Unmarshal(b []byte) error

type StateResponse

type StateResponse struct {
	// 当前是否启用
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// 当前是否在播放中
	IsPlaying            bool     `protobuf:"varint,2,opt,name=is_playing,json=isPlaying,proto3" json:"is_playing,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StateResponse) Descriptor

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

func (*StateResponse) GetIsActive

func (m *StateResponse) GetIsActive() bool

func (*StateResponse) GetIsPlaying

func (m *StateResponse) GetIsPlaying() bool

func (*StateResponse) ProtoMessage

func (*StateResponse) ProtoMessage()

func (*StateResponse) Reset

func (m *StateResponse) Reset()

func (*StateResponse) String

func (m *StateResponse) String() string

func (*StateResponse) XXX_DiscardUnknown

func (m *StateResponse) XXX_DiscardUnknown()

func (*StateResponse) XXX_Marshal

func (m *StateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StateResponse) XXX_Merge

func (m *StateResponse) XXX_Merge(src proto.Message)

func (*StateResponse) XXX_Size

func (m *StateResponse) XXX_Size() int

func (*StateResponse) XXX_Unmarshal

func (m *StateResponse) XXX_Unmarshal(b []byte) error

type StopLightRequest

type StopLightRequest struct {
	// 灯光类型列表
	Ltypes               []LightType `protobuf:"varint,1,rep,packed,name=ltypes,proto3,enum=lightsService.LightType" json:"ltypes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

停止灯光请求

func (*StopLightRequest) Descriptor

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

func (*StopLightRequest) GetLtypes

func (m *StopLightRequest) GetLtypes() []LightType

func (*StopLightRequest) ProtoMessage

func (*StopLightRequest) ProtoMessage()

func (*StopLightRequest) Reset

func (m *StopLightRequest) Reset()

func (*StopLightRequest) String

func (m *StopLightRequest) String() string

func (*StopLightRequest) XXX_DiscardUnknown

func (m *StopLightRequest) XXX_DiscardUnknown()

func (*StopLightRequest) XXX_Marshal

func (m *StopLightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopLightRequest) XXX_Merge

func (m *StopLightRequest) XXX_Merge(src proto.Message)

func (*StopLightRequest) XXX_Size

func (m *StopLightRequest) XXX_Size() int

func (*StopLightRequest) XXX_Unmarshal

func (m *StopLightRequest) XXX_Unmarshal(b []byte) error

type StopLightResponse

type StopLightResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

停止灯光结果

func (*StopLightResponse) Descriptor

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

func (*StopLightResponse) ProtoMessage

func (*StopLightResponse) ProtoMessage()

func (*StopLightResponse) Reset

func (m *StopLightResponse) Reset()

func (*StopLightResponse) String

func (m *StopLightResponse) String() string

func (*StopLightResponse) XXX_DiscardUnknown

func (m *StopLightResponse) XXX_DiscardUnknown()

func (*StopLightResponse) XXX_Marshal

func (m *StopLightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopLightResponse) XXX_Merge

func (m *StopLightResponse) XXX_Merge(src proto.Message)

func (*StopLightResponse) XXX_Size

func (m *StopLightResponse) XXX_Size() int

func (*StopLightResponse) XXX_Unmarshal

func (m *StopLightResponse) XXX_Unmarshal(b []byte) error

type SwitchRequest

type SwitchRequest struct {
	// 启用与关闭
	Active               bool     `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwitchRequest) Descriptor

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

func (*SwitchRequest) GetActive

func (m *SwitchRequest) GetActive() bool

func (*SwitchRequest) ProtoMessage

func (*SwitchRequest) ProtoMessage()

func (*SwitchRequest) Reset

func (m *SwitchRequest) Reset()

func (*SwitchRequest) String

func (m *SwitchRequest) String() string

func (*SwitchRequest) XXX_DiscardUnknown

func (m *SwitchRequest) XXX_DiscardUnknown()

func (*SwitchRequest) XXX_Marshal

func (m *SwitchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwitchRequest) XXX_Merge

func (m *SwitchRequest) XXX_Merge(src proto.Message)

func (*SwitchRequest) XXX_Size

func (m *SwitchRequest) XXX_Size() int

func (*SwitchRequest) XXX_Unmarshal

func (m *SwitchRequest) XXX_Unmarshal(b []byte) error

type SwitchResponse

type SwitchResponse struct {
	// 当前是否启用
	IsActive             bool     `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SwitchResponse) Descriptor

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

func (*SwitchResponse) GetIsActive

func (m *SwitchResponse) GetIsActive() bool

func (*SwitchResponse) ProtoMessage

func (*SwitchResponse) ProtoMessage()

func (*SwitchResponse) Reset

func (m *SwitchResponse) Reset()

func (*SwitchResponse) String

func (m *SwitchResponse) String() string

func (*SwitchResponse) XXX_DiscardUnknown

func (m *SwitchResponse) XXX_DiscardUnknown()

func (*SwitchResponse) XXX_Marshal

func (m *SwitchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SwitchResponse) XXX_Merge

func (m *SwitchResponse) XXX_Merge(src proto.Message)

func (*SwitchResponse) XXX_Size

func (m *SwitchResponse) XXX_Size() int

func (*SwitchResponse) XXX_Unmarshal

func (m *SwitchResponse) XXX_Unmarshal(b []byte) error

type UnimplementedLightsServiceServer

type UnimplementedLightsServiceServer struct {
}

UnimplementedLightsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLightsServiceServer) DeleteLights

func (*UnimplementedLightsServiceServer) ListLights

func (*UnimplementedLightsServiceServer) NewLight

func (*UnimplementedLightsServiceServer) PlayLight

func (*UnimplementedLightsServiceServer) PreviewLight

func (*UnimplementedLightsServiceServer) State

func (*UnimplementedLightsServiceServer) StopLight

func (*UnimplementedLightsServiceServer) Switch

func (*UnimplementedLightsServiceServer) UpdateLight

type UpdateLightRequest

type UpdateLightRequest struct {
	// 灯光数据明细
	LightInfo            *LightInfo `protobuf:"bytes,1,opt,name=light_info,json=lightInfo,proto3" json:"light_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

更新灯光数据请求

func (*UpdateLightRequest) Descriptor

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

func (*UpdateLightRequest) GetLightInfo

func (m *UpdateLightRequest) GetLightInfo() *LightInfo

func (*UpdateLightRequest) ProtoMessage

func (*UpdateLightRequest) ProtoMessage()

func (*UpdateLightRequest) Reset

func (m *UpdateLightRequest) Reset()

func (*UpdateLightRequest) String

func (m *UpdateLightRequest) String() string

func (*UpdateLightRequest) XXX_DiscardUnknown

func (m *UpdateLightRequest) XXX_DiscardUnknown()

func (*UpdateLightRequest) XXX_Marshal

func (m *UpdateLightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateLightRequest) XXX_Merge

func (m *UpdateLightRequest) XXX_Merge(src proto.Message)

func (*UpdateLightRequest) XXX_Size

func (m *UpdateLightRequest) XXX_Size() int

func (*UpdateLightRequest) XXX_Unmarshal

func (m *UpdateLightRequest) XXX_Unmarshal(b []byte) error

type UpdateLightResponse

type UpdateLightResponse struct {
	// 灯光数据明细
	LightInfo            *LightInfo `protobuf:"bytes,1,opt,name=light_info,json=lightInfo,proto3" json:"light_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

更新灯光数据结果

func (*UpdateLightResponse) Descriptor

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

func (*UpdateLightResponse) GetLightInfo

func (m *UpdateLightResponse) GetLightInfo() *LightInfo

func (*UpdateLightResponse) ProtoMessage

func (*UpdateLightResponse) ProtoMessage()

func (*UpdateLightResponse) Reset

func (m *UpdateLightResponse) Reset()

func (*UpdateLightResponse) String

func (m *UpdateLightResponse) String() string

func (*UpdateLightResponse) XXX_DiscardUnknown

func (m *UpdateLightResponse) XXX_DiscardUnknown()

func (*UpdateLightResponse) XXX_Marshal

func (m *UpdateLightResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateLightResponse) XXX_Merge

func (m *UpdateLightResponse) XXX_Merge(src proto.Message)

func (*UpdateLightResponse) XXX_Size

func (m *UpdateLightResponse) XXX_Size() int

func (*UpdateLightResponse) XXX_Unmarshal

func (m *UpdateLightResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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