apigrpc

package
v0.0.0-...-b743a0b Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDevicesServiceServer

func RegisterDevicesServiceServer(s *grpc.Server, srv DevicesServiceServer)

Types

type DevicesServiceClient

type DevicesServiceClient interface {
	// GET /v1/devices
	ListDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*api.ListDevicesResponse, error)
	// POST /v1/devices
	CreateDevice(ctx context.Context, in *api.CreateDeviceRequest, opts ...grpc.CallOption) (*api.CreateDeviceResponse, error)
	// GET /v1/devices/{id}
	GetDevice(ctx context.Context, in *api.GetDeviceRequest, opts ...grpc.CallOption) (*api.GetDeviceResponse, error)
	// PUT /v1/devices/{id}
	UpdateDevice(ctx context.Context, in *api.UpdateDeviceRequest, opts ...grpc.CallOption) (*api.UpdateDeviceResponse, error)
	// DELETE /v1/devices/{id}
	DeleteDevice(ctx context.Context, in *api.DeleteDeviceRequest, opts ...grpc.CallOption) (*api.DeleteDeviceResponse, error)
	// GET /v1/devices/{id}/playlist
	GetPlaylist(ctx context.Context, in *api.GetPlaylistRequest, opts ...grpc.CallOption) (*api.GetPlaylistResponse, error)
	// PUT /v1/devices/{id}/playlist
	UpdatePlaylist(ctx context.Context, in *api.UpdatePlaylistRequest, opts ...grpc.CallOption) (*api.UpdatePlaylistResponse, error)
	// GET /v1/devices/groups
	ListGroups(ctx context.Context, in *api.ListGroupsRequest, opts ...grpc.CallOption) (*api.ListGroupsResponse, error)
	// GET /v1/devices/groups/{group_id}
	ListDevicesByGroup(ctx context.Context, in *api.ListDevicesByGroupRequest, opts ...grpc.CallOption) (*api.ListDevicesByGroupResponse, error)
	// PUT /v1/devices/groups/{group_id}
	UpdateDevicesByGroup(ctx context.Context, in *api.UpdateDevicesByGroupRequest, opts ...grpc.CallOption) (*api.UpdateDevicesByGroupResponse, error)
	// GET /v1/devices/groups/{group_id}/playlist
	GetPlaylistByGroup(ctx context.Context, in *api.GetPlaylistByGroupRequest, opts ...grpc.CallOption) (*api.GetPlaylistByGroupResponse, error)
	// PUT /v1/devices/groups/{group_id}/playlist
	UpdatePlaylistByGroup(ctx context.Context, in *api.UpdatePlaylistByGroupRequest, opts ...grpc.CallOption) (*api.UpdatePlaylistByGroupResponse, error)
	// POST /v1/devices/groups/{group_id}/sync
	ActionSyncByGroup(ctx context.Context, in *api.ActionSyncByGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// POST /v1/devices/groups/{group_id}/test
	ActionTestByGroup(ctx context.Context, in *api.ActionTestByGroupRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// POST /v1/devices/sync
	ActionSyncAll(ctx context.Context, in *api.ActionSyncAllRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// POST /v1/devices/{id}/sync
	ActionSync(ctx context.Context, in *api.ActionSyncRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// POST /v1/devices/test
	ActionTestAll(ctx context.Context, in *api.ActionTestAllRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// POST /v1/devices/{id}/test
	ActionTest(ctx context.Context, in *api.ActionTestRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

DevicesServiceClient is the client API for DevicesService service.

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

func NewDevicesServiceClient

func NewDevicesServiceClient(cc *grpc.ClientConn) DevicesServiceClient

type DevicesServiceServer

type DevicesServiceServer interface {
	// GET /v1/devices
	ListDevices(context.Context, *empty.Empty) (*api.ListDevicesResponse, error)
	// POST /v1/devices
	CreateDevice(context.Context, *api.CreateDeviceRequest) (*api.CreateDeviceResponse, error)
	// GET /v1/devices/{id}
	GetDevice(context.Context, *api.GetDeviceRequest) (*api.GetDeviceResponse, error)
	// PUT /v1/devices/{id}
	UpdateDevice(context.Context, *api.UpdateDeviceRequest) (*api.UpdateDeviceResponse, error)
	// DELETE /v1/devices/{id}
	DeleteDevice(context.Context, *api.DeleteDeviceRequest) (*api.DeleteDeviceResponse, error)
	// GET /v1/devices/{id}/playlist
	GetPlaylist(context.Context, *api.GetPlaylistRequest) (*api.GetPlaylistResponse, error)
	// PUT /v1/devices/{id}/playlist
	UpdatePlaylist(context.Context, *api.UpdatePlaylistRequest) (*api.UpdatePlaylistResponse, error)
	// GET /v1/devices/groups
	ListGroups(context.Context, *api.ListGroupsRequest) (*api.ListGroupsResponse, error)
	// GET /v1/devices/groups/{group_id}
	ListDevicesByGroup(context.Context, *api.ListDevicesByGroupRequest) (*api.ListDevicesByGroupResponse, error)
	// PUT /v1/devices/groups/{group_id}
	UpdateDevicesByGroup(context.Context, *api.UpdateDevicesByGroupRequest) (*api.UpdateDevicesByGroupResponse, error)
	// GET /v1/devices/groups/{group_id}/playlist
	GetPlaylistByGroup(context.Context, *api.GetPlaylistByGroupRequest) (*api.GetPlaylistByGroupResponse, error)
	// PUT /v1/devices/groups/{group_id}/playlist
	UpdatePlaylistByGroup(context.Context, *api.UpdatePlaylistByGroupRequest) (*api.UpdatePlaylistByGroupResponse, error)
	// POST /v1/devices/groups/{group_id}/sync
	ActionSyncByGroup(context.Context, *api.ActionSyncByGroupRequest) (*empty.Empty, error)
	// POST /v1/devices/groups/{group_id}/test
	ActionTestByGroup(context.Context, *api.ActionTestByGroupRequest) (*empty.Empty, error)
	// POST /v1/devices/sync
	ActionSyncAll(context.Context, *api.ActionSyncAllRequest) (*empty.Empty, error)
	// POST /v1/devices/{id}/sync
	ActionSync(context.Context, *api.ActionSyncRequest) (*empty.Empty, error)
	// POST /v1/devices/test
	ActionTestAll(context.Context, *api.ActionTestAllRequest) (*empty.Empty, error)
	// POST /v1/devices/{id}/test
	ActionTest(context.Context, *api.ActionTestRequest) (*empty.Empty, error)
}

DevicesServiceServer is the server API for DevicesService service.

type UnimplementedDevicesServiceServer

type UnimplementedDevicesServiceServer struct {
}

UnimplementedDevicesServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDevicesServiceServer) ActionSync

func (*UnimplementedDevicesServiceServer) ActionSyncAll

func (*UnimplementedDevicesServiceServer) ActionSyncByGroup

func (*UnimplementedDevicesServiceServer) ActionTest

func (*UnimplementedDevicesServiceServer) ActionTestAll

func (*UnimplementedDevicesServiceServer) ActionTestByGroup

func (*UnimplementedDevicesServiceServer) CreateDevice

func (*UnimplementedDevicesServiceServer) DeleteDevice

func (*UnimplementedDevicesServiceServer) GetDevice

func (*UnimplementedDevicesServiceServer) GetPlaylist

func (*UnimplementedDevicesServiceServer) GetPlaylistByGroup

func (*UnimplementedDevicesServiceServer) ListDevices

func (*UnimplementedDevicesServiceServer) ListDevicesByGroup

func (*UnimplementedDevicesServiceServer) ListGroups

func (*UnimplementedDevicesServiceServer) UpdateDevice

func (*UnimplementedDevicesServiceServer) UpdateDevicesByGroup

func (*UnimplementedDevicesServiceServer) UpdatePlaylist

func (*UnimplementedDevicesServiceServer) UpdatePlaylistByGroup

Jump to

Keyboard shortcuts

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