schema

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "schema.DebugService",
	HandlerType: (*DebugServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListSharedmem",
			Handler:    _DebugService_ListSharedmem_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/ws-proxy/schema/debug.proto",
}

DebugService_ServiceDesc is the grpc.ServiceDesc for DebugService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_pkg_ws_proxy_schema_debug_proto protoreflect.FileDescriptor
View Source
var File_pkg_ws_proxy_schema_scene_proto protoreflect.FileDescriptor
View Source
var File_pkg_ws_proxy_schema_track_proto protoreflect.FileDescriptor
View Source
var SceneService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "schema.SceneService",
	HandlerType: (*SceneServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListScene",
			Handler:    _SceneService_ListScene_Handler,
		},
		{
			MethodName: "MoveSceneToNext",
			Handler:    _SceneService_MoveSceneToNext_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/ws-proxy/schema/scene.proto",
}

SceneService_ServiceDesc is the grpc.ServiceDesc for SceneService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TrackService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "schema.TrackService",
	HandlerType: (*TrackServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTrack",
			Handler:    _TrackService_GetTrack_Handler,
		},
		{
			MethodName: "ListTrack",
			Handler:    _TrackService_ListTrack_Handler,
		},
		{
			MethodName: "EnableAutomation",
			Handler:    _TrackService_EnableAutomation_Handler,
		},
		{
			MethodName: "DisableAutomation",
			Handler:    _TrackService_DisableAutomation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/ws-proxy/schema/track.proto",
}

TrackService_ServiceDesc is the grpc.ServiceDesc for TrackService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterDebugServiceServer

func RegisterDebugServiceServer(s grpc.ServiceRegistrar, srv DebugServiceServer)

func RegisterSceneServiceServer

func RegisterSceneServiceServer(s grpc.ServiceRegistrar, srv SceneServiceServer)

func RegisterTrackServiceServer

func RegisterTrackServiceServer(s grpc.ServiceRegistrar, srv TrackServiceServer)

Types

type DebugServiceClient

type DebugServiceClient interface {
	ListSharedmem(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListSharedmemResponse, error)
}

DebugServiceClient is the client API for DebugService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DebugServiceServer

type DebugServiceServer interface {
	ListSharedmem(context.Context, *emptypb.Empty) (*ListSharedmemResponse, error)
	// contains filtered or unexported methods
}

DebugServiceServer is the server API for DebugService service. All implementations must embed UnimplementedDebugServiceServer for forward compatibility

type GetTrackRequest

type GetTrackRequest struct {
	TrackId int32 `protobuf:"varint,1,opt,name=trackId,proto3" json:"trackId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTrackRequest) Descriptor deprecated

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

Deprecated: Use GetTrackRequest.ProtoReflect.Descriptor instead.

func (*GetTrackRequest) GetTrackId

func (x *GetTrackRequest) GetTrackId() int32

func (*GetTrackRequest) ProtoMessage

func (*GetTrackRequest) ProtoMessage()

func (*GetTrackRequest) ProtoReflect

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

func (*GetTrackRequest) Reset

func (x *GetTrackRequest) Reset()

func (*GetTrackRequest) String

func (x *GetTrackRequest) String() string

type ListSceneRequest

type ListSceneRequest struct {
	TrackId int32 `protobuf:"varint,1,opt,name=trackId,proto3" json:"trackId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSceneRequest) Descriptor deprecated

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

Deprecated: Use ListSceneRequest.ProtoReflect.Descriptor instead.

func (*ListSceneRequest) GetTrackId

func (x *ListSceneRequest) GetTrackId() int32

func (*ListSceneRequest) ProtoMessage

func (*ListSceneRequest) ProtoMessage()

func (*ListSceneRequest) ProtoReflect

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

func (*ListSceneRequest) Reset

func (x *ListSceneRequest) Reset()

func (*ListSceneRequest) String

func (x *ListSceneRequest) String() string

type ListSceneResponse

type ListSceneResponse struct {
	Scene []*Scene `protobuf:"bytes,1,rep,name=scene,proto3" json:"scene,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSceneResponse) Descriptor deprecated

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

Deprecated: Use ListSceneResponse.ProtoReflect.Descriptor instead.

func (*ListSceneResponse) GetScene

func (x *ListSceneResponse) GetScene() []*Scene

func (*ListSceneResponse) ProtoMessage

func (*ListSceneResponse) ProtoMessage()

func (*ListSceneResponse) ProtoReflect

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

func (*ListSceneResponse) Reset

func (x *ListSceneResponse) Reset()

func (*ListSceneResponse) String

func (x *ListSceneResponse) String() string

type ListSharedmemResponse

type ListSharedmemResponse struct {
	TalksMap    map[int32]*TalksModel `` /* 158-byte string literal not displayed */
	DisabledMap map[int32]bool        `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListSharedmemResponse) Descriptor deprecated

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

Deprecated: Use ListSharedmemResponse.ProtoReflect.Descriptor instead.

func (*ListSharedmemResponse) GetDisabledMap

func (x *ListSharedmemResponse) GetDisabledMap() map[int32]bool

func (*ListSharedmemResponse) GetTalksMap

func (x *ListSharedmemResponse) GetTalksMap() map[int32]*TalksModel

func (*ListSharedmemResponse) ProtoMessage

func (*ListSharedmemResponse) ProtoMessage()

func (*ListSharedmemResponse) ProtoReflect

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

func (*ListSharedmemResponse) Reset

func (x *ListSharedmemResponse) Reset()

func (*ListSharedmemResponse) String

func (x *ListSharedmemResponse) String() string

type ListTrackResponse

type ListTrackResponse struct {
	Tracks []*Track `protobuf:"bytes,1,rep,name=tracks,proto3" json:"tracks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTrackResponse) Descriptor deprecated

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

Deprecated: Use ListTrackResponse.ProtoReflect.Descriptor instead.

func (*ListTrackResponse) GetTracks

func (x *ListTrackResponse) GetTracks() []*Track

func (*ListTrackResponse) ProtoMessage

func (*ListTrackResponse) ProtoMessage()

func (*ListTrackResponse) ProtoReflect

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

func (*ListTrackResponse) Reset

func (x *ListTrackResponse) Reset()

func (*ListTrackResponse) String

func (x *ListTrackResponse) String() string

type MoveSceneToNextRequest

type MoveSceneToNextRequest struct {
	TrackId int32 `protobuf:"varint,1,opt,name=trackId,proto3" json:"trackId,omitempty"`
	// contains filtered or unexported fields
}

func (*MoveSceneToNextRequest) Descriptor deprecated

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

Deprecated: Use MoveSceneToNextRequest.ProtoReflect.Descriptor instead.

func (*MoveSceneToNextRequest) GetTrackId

func (x *MoveSceneToNextRequest) GetTrackId() int32

func (*MoveSceneToNextRequest) ProtoMessage

func (*MoveSceneToNextRequest) ProtoMessage()

func (*MoveSceneToNextRequest) ProtoReflect

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

func (*MoveSceneToNextRequest) Reset

func (x *MoveSceneToNextRequest) Reset()

func (*MoveSceneToNextRequest) String

func (x *MoveSceneToNextRequest) String() string

type Scene

type Scene struct {
	Name             string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SceneIndex       int32  `protobuf:"varint,2,opt,name=sceneIndex,proto3" json:"sceneIndex,omitempty"`
	IsCurrentProgram bool   `protobuf:"varint,3,opt,name=is_current_program,json=isCurrentProgram,proto3" json:"is_current_program,omitempty"`
	// contains filtered or unexported fields
}

func (*Scene) Descriptor deprecated

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

Deprecated: Use Scene.ProtoReflect.Descriptor instead.

func (*Scene) GetIsCurrentProgram

func (x *Scene) GetIsCurrentProgram() bool

func (*Scene) GetName

func (x *Scene) GetName() string

func (*Scene) GetSceneIndex

func (x *Scene) GetSceneIndex() int32

func (*Scene) ProtoMessage

func (*Scene) ProtoMessage()

func (*Scene) ProtoReflect

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

func (*Scene) Reset

func (x *Scene) Reset()

func (*Scene) String

func (x *Scene) String() string

type SceneServiceClient

type SceneServiceClient interface {
	ListScene(ctx context.Context, in *ListSceneRequest, opts ...grpc.CallOption) (*ListSceneResponse, error)
	MoveSceneToNext(ctx context.Context, in *MoveSceneToNextRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

SceneServiceClient is the client API for SceneService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type SceneServiceServer

type SceneServiceServer interface {
	ListScene(context.Context, *ListSceneRequest) (*ListSceneResponse, error)
	MoveSceneToNext(context.Context, *MoveSceneToNextRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

SceneServiceServer is the server API for SceneService service. All implementations must embed UnimplementedSceneServiceServer for forward compatibility

type SwitchAutomationRequest

type SwitchAutomationRequest struct {
	TrackId int32 `protobuf:"varint,1,opt,name=trackId,proto3" json:"trackId,omitempty"`
	// contains filtered or unexported fields
}

func (*SwitchAutomationRequest) Descriptor deprecated

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

Deprecated: Use SwitchAutomationRequest.ProtoReflect.Descriptor instead.

func (*SwitchAutomationRequest) GetTrackId

func (x *SwitchAutomationRequest) GetTrackId() int32

func (*SwitchAutomationRequest) ProtoMessage

func (*SwitchAutomationRequest) ProtoMessage()

func (*SwitchAutomationRequest) ProtoReflect

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

func (*SwitchAutomationRequest) Reset

func (x *SwitchAutomationRequest) Reset()

func (*SwitchAutomationRequest) String

func (x *SwitchAutomationRequest) String() string

type TalkModel

type TalkModel struct {
	Id           int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TalkName     string                 `protobuf:"bytes,2,opt,name=talk_name,json=talkName,proto3" json:"talk_name,omitempty"`
	TrackId      int32                  `protobuf:"varint,3,opt,name=track_id,json=trackId,proto3" json:"track_id,omitempty"`
	TrackName    string                 `protobuf:"bytes,4,opt,name=track_name,json=trackName,proto3" json:"track_name,omitempty"`
	EventAbbr    string                 `protobuf:"bytes,5,opt,name=event_abbr,json=eventAbbr,proto3" json:"event_abbr,omitempty"`
	SpeakerNames []string               `protobuf:"bytes,6,rep,name=speaker_names,json=speakerNames,proto3" json:"speaker_names,omitempty"`
	Type         int32                  `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"`
	StartAt      *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"`
	EndAt        *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=end_at,json=endAt,proto3" json:"end_at,omitempty"`
	// contains filtered or unexported fields
}

func (*TalkModel) Descriptor deprecated

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

Deprecated: Use TalkModel.ProtoReflect.Descriptor instead.

func (*TalkModel) GetEndAt

func (x *TalkModel) GetEndAt() *timestamppb.Timestamp

func (*TalkModel) GetEventAbbr

func (x *TalkModel) GetEventAbbr() string

func (*TalkModel) GetId

func (x *TalkModel) GetId() int32

func (*TalkModel) GetSpeakerNames

func (x *TalkModel) GetSpeakerNames() []string

func (*TalkModel) GetStartAt

func (x *TalkModel) GetStartAt() *timestamppb.Timestamp

func (*TalkModel) GetTalkName

func (x *TalkModel) GetTalkName() string

func (*TalkModel) GetTrackId

func (x *TalkModel) GetTrackId() int32

func (*TalkModel) GetTrackName

func (x *TalkModel) GetTrackName() string

func (*TalkModel) GetType

func (x *TalkModel) GetType() int32

func (*TalkModel) ProtoMessage

func (*TalkModel) ProtoMessage()

func (*TalkModel) ProtoReflect

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

func (*TalkModel) Reset

func (x *TalkModel) Reset()

func (*TalkModel) String

func (x *TalkModel) String() string

type TalksModel

type TalksModel struct {
	Talks []*TalkModel `protobuf:"bytes,1,rep,name=talks,proto3" json:"talks,omitempty"`
	// contains filtered or unexported fields
}

from pkg/model/talk.go

func (*TalksModel) Descriptor deprecated

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

Deprecated: Use TalksModel.ProtoReflect.Descriptor instead.

func (*TalksModel) GetTalks

func (x *TalksModel) GetTalks() []*TalkModel

func (*TalksModel) ProtoMessage

func (*TalksModel) ProtoMessage()

func (*TalksModel) ProtoReflect

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

func (*TalksModel) Reset

func (x *TalksModel) Reset()

func (*TalksModel) String

func (x *TalksModel) String() string

type Track

type Track struct {
	TrackId   int32  `protobuf:"varint,1,opt,name=trackId,proto3" json:"trackId,omitempty"`
	TrackName string `protobuf:"bytes,2,opt,name=trackName,proto3" json:"trackName,omitempty"`
	ObsHost   string `protobuf:"bytes,3,opt,name=obsHost,proto3" json:"obsHost,omitempty"`
	Enabled   bool   `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Track) Descriptor deprecated

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

Deprecated: Use Track.ProtoReflect.Descriptor instead.

func (*Track) GetEnabled

func (x *Track) GetEnabled() bool

func (*Track) GetObsHost

func (x *Track) GetObsHost() string

func (*Track) GetTrackId

func (x *Track) GetTrackId() int32

func (*Track) GetTrackName

func (x *Track) GetTrackName() string

func (*Track) ProtoMessage

func (*Track) ProtoMessage()

func (*Track) ProtoReflect

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

func (*Track) Reset

func (x *Track) Reset()

func (*Track) String

func (x *Track) String() string

type TrackServiceClient

type TrackServiceClient interface {
	GetTrack(ctx context.Context, in *GetTrackRequest, opts ...grpc.CallOption) (*Track, error)
	ListTrack(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListTrackResponse, error)
	EnableAutomation(ctx context.Context, in *SwitchAutomationRequest, opts ...grpc.CallOption) (*Track, error)
	DisableAutomation(ctx context.Context, in *SwitchAutomationRequest, opts ...grpc.CallOption) (*Track, error)
}

TrackServiceClient is the client API for TrackService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TrackServiceServer

type TrackServiceServer interface {
	GetTrack(context.Context, *GetTrackRequest) (*Track, error)
	ListTrack(context.Context, *emptypb.Empty) (*ListTrackResponse, error)
	EnableAutomation(context.Context, *SwitchAutomationRequest) (*Track, error)
	DisableAutomation(context.Context, *SwitchAutomationRequest) (*Track, error)
	// contains filtered or unexported methods
}

TrackServiceServer is the server API for TrackService service. All implementations must embed UnimplementedTrackServiceServer for forward compatibility

type UnimplementedDebugServiceServer

type UnimplementedDebugServiceServer struct {
}

UnimplementedDebugServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDebugServiceServer) ListSharedmem

type UnimplementedSceneServiceServer

type UnimplementedSceneServiceServer struct {
}

UnimplementedSceneServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSceneServiceServer) ListScene

func (UnimplementedSceneServiceServer) MoveSceneToNext

type UnimplementedTrackServiceServer

type UnimplementedTrackServiceServer struct {
}

UnimplementedTrackServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTrackServiceServer) DisableAutomation

func (UnimplementedTrackServiceServer) EnableAutomation

func (UnimplementedTrackServiceServer) GetTrack

func (UnimplementedTrackServiceServer) ListTrack

type UnsafeDebugServiceServer

type UnsafeDebugServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDebugServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DebugServiceServer will result in compilation errors.

type UnsafeSceneServiceServer

type UnsafeSceneServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSceneServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SceneServiceServer will result in compilation errors.

type UnsafeTrackServiceServer

type UnsafeTrackServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTrackServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TrackServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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