proto

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Devices_AddDevice_FullMethodName      = "/proto.Devices/AddDevice"
	Devices_ListDevices_FullMethodName    = "/proto.Devices/ListDevices"
	Devices_DeleteDevice_FullMethodName   = "/proto.Devices/DeleteDevice"
	Devices_ListAllDevices_FullMethodName = "/proto.Devices/ListAllDevices"
)
View Source
const (
	Users_ListUsers_FullMethodName  = "/proto.Users/ListUsers"
	Users_DeleteUser_FullMethodName = "/proto.Users/DeleteUser"
)
View Source
const (
	Server_Info_FullMethodName = "/proto.Server/Info"
)

Variables

View Source
var Devices_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Devices",
	HandlerType: (*DevicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddDevice",
			Handler:    _Devices_AddDevice_Handler,
		},
		{
			MethodName: "ListDevices",
			Handler:    _Devices_ListDevices_Handler,
		},
		{
			MethodName: "DeleteDevice",
			Handler:    _Devices_DeleteDevice_Handler,
		},
		{
			MethodName: "ListAllDevices",
			Handler:    _Devices_ListAllDevices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "devices.proto",
}

Devices_ServiceDesc is the grpc.ServiceDesc for Devices 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_buildinfo_proto protoreflect.FileDescriptor
View Source
var File_devices_proto protoreflect.FileDescriptor
View Source
var File_server_proto protoreflect.FileDescriptor
View Source
var File_users_proto protoreflect.FileDescriptor
View Source
var Server_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Server",
	HandlerType: (*ServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _Server_Info_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "server.proto",
}

Server_ServiceDesc is the grpc.ServiceDesc for Server 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 Users_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Users",
	HandlerType: (*UsersServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListUsers",
			Handler:    _Users_ListUsers_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _Users_DeleteUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "users.proto",
}

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

Functions

func RegisterDevicesServer

func RegisterDevicesServer(s grpc.ServiceRegistrar, srv DevicesServer)

func RegisterServerServer

func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)

func RegisterUsersServer added in v0.9.0

func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)

Types

type AddDeviceReq

type AddDeviceReq struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	PublicKey    string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PresharedKey string `protobuf:"bytes,3,opt,name=preshared_key,json=presharedKey,proto3" json:"preshared_key,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDeviceReq) Descriptor deprecated

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

Deprecated: Use AddDeviceReq.ProtoReflect.Descriptor instead.

func (*AddDeviceReq) GetName

func (x *AddDeviceReq) GetName() string

func (*AddDeviceReq) GetPresharedKey added in v0.9.0

func (x *AddDeviceReq) GetPresharedKey() string

func (*AddDeviceReq) GetPublicKey

func (x *AddDeviceReq) GetPublicKey() string

func (*AddDeviceReq) ProtoMessage

func (*AddDeviceReq) ProtoMessage()

func (*AddDeviceReq) ProtoReflect

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

func (*AddDeviceReq) Reset

func (x *AddDeviceReq) Reset()

func (*AddDeviceReq) String

func (x *AddDeviceReq) String() string

type BuildInfo added in v0.10.0

type BuildInfo struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Commit  string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildInfo) Descriptor deprecated added in v0.10.0

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

Deprecated: Use BuildInfo.ProtoReflect.Descriptor instead.

func (*BuildInfo) GetCommit added in v0.10.0

func (x *BuildInfo) GetCommit() string

func (*BuildInfo) GetVersion added in v0.10.0

func (x *BuildInfo) GetVersion() string

func (*BuildInfo) ProtoMessage added in v0.10.0

func (*BuildInfo) ProtoMessage()

func (*BuildInfo) ProtoReflect added in v0.10.0

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

func (*BuildInfo) Reset added in v0.10.0

func (x *BuildInfo) Reset()

func (*BuildInfo) String added in v0.10.0

func (x *BuildInfo) String() string

type DeleteDeviceReq

type DeleteDeviceReq struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// admin's may delete a device owned
	// by someone other than the current user
	// if empty, defaults to the current user
	Owner *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDeviceReq) Descriptor deprecated

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

Deprecated: Use DeleteDeviceReq.ProtoReflect.Descriptor instead.

func (*DeleteDeviceReq) GetName

func (x *DeleteDeviceReq) GetName() string

func (*DeleteDeviceReq) GetOwner

func (x *DeleteDeviceReq) GetOwner() *wrapperspb.StringValue

func (*DeleteDeviceReq) ProtoMessage

func (*DeleteDeviceReq) ProtoMessage()

func (*DeleteDeviceReq) ProtoReflect

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

func (*DeleteDeviceReq) Reset

func (x *DeleteDeviceReq) Reset()

func (*DeleteDeviceReq) String

func (x *DeleteDeviceReq) String() string

type DeleteUserReq added in v0.9.0

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

func (*DeleteUserReq) Descriptor deprecated added in v0.9.0

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

Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead.

func (*DeleteUserReq) GetName added in v0.9.0

func (x *DeleteUserReq) GetName() string

func (*DeleteUserReq) ProtoMessage added in v0.9.0

func (*DeleteUserReq) ProtoMessage()

func (*DeleteUserReq) ProtoReflect added in v0.9.0

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

func (*DeleteUserReq) Reset added in v0.9.0

func (x *DeleteUserReq) Reset()

func (*DeleteUserReq) String added in v0.9.0

func (x *DeleteUserReq) String() string

type Device

type Device struct {
	Name              string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Owner             string                 `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	PublicKey         string                 `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Address           string                 `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	CreatedAt         *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Connected         bool                   `protobuf:"varint,6,opt,name=connected,proto3" json:"connected,omitempty"`
	LastHandshakeTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_handshake_time,json=lastHandshakeTime,proto3" json:"last_handshake_time,omitempty"`
	ReceiveBytes      int64                  `protobuf:"varint,8,opt,name=receive_bytes,json=receiveBytes,proto3" json:"receive_bytes,omitempty"`
	TransmitBytes     int64                  `protobuf:"varint,9,opt,name=transmit_bytes,json=transmitBytes,proto3" json:"transmit_bytes,omitempty"`
	Endpoint          string                 `protobuf:"bytes,10,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	OwnerName         string                 `protobuf:"bytes,11,opt,name=owner_name,json=ownerName,proto3" json:"owner_name,omitempty"`
	OwnerEmail        string                 `protobuf:"bytes,12,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"`
	OwnerProvider     string                 `protobuf:"bytes,13,opt,name=owner_provider,json=ownerProvider,proto3" json:"owner_provider,omitempty"`
	PresharedKey      string                 `protobuf:"bytes,14,opt,name=preshared_key,json=presharedKey,proto3" json:"preshared_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetAddress

func (x *Device) GetAddress() string

func (*Device) GetConnected

func (x *Device) GetConnected() bool

func (*Device) GetCreatedAt

func (x *Device) GetCreatedAt() *timestamppb.Timestamp

func (*Device) GetEndpoint

func (x *Device) GetEndpoint() string

func (*Device) GetLastHandshakeTime

func (x *Device) GetLastHandshakeTime() *timestamppb.Timestamp

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetOwner

func (x *Device) GetOwner() string

func (*Device) GetOwnerEmail

func (x *Device) GetOwnerEmail() string

func (*Device) GetOwnerName

func (x *Device) GetOwnerName() string

func (*Device) GetOwnerProvider

func (x *Device) GetOwnerProvider() string

func (*Device) GetPresharedKey added in v0.9.0

func (x *Device) GetPresharedKey() string

func (*Device) GetPublicKey

func (x *Device) GetPublicKey() string

func (*Device) GetReceiveBytes

func (x *Device) GetReceiveBytes() int64

func (*Device) GetTransmitBytes

func (x *Device) GetTransmitBytes() int64

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DevicesClient

type DevicesClient interface {
	AddDevice(ctx context.Context, in *AddDeviceReq, opts ...grpc.CallOption) (*Device, error)
	ListDevices(ctx context.Context, in *ListDevicesReq, opts ...grpc.CallOption) (*ListDevicesRes, error)
	DeleteDevice(ctx context.Context, in *DeleteDeviceReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// admin only
	ListAllDevices(ctx context.Context, in *ListAllDevicesReq, opts ...grpc.CallOption) (*ListAllDevicesRes, error)
}

DevicesClient is the client API for Devices 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.

func NewDevicesClient

func NewDevicesClient(cc grpc.ClientConnInterface) DevicesClient

type DevicesServer

type DevicesServer interface {
	AddDevice(context.Context, *AddDeviceReq) (*Device, error)
	ListDevices(context.Context, *ListDevicesReq) (*ListDevicesRes, error)
	DeleteDevice(context.Context, *DeleteDeviceReq) (*emptypb.Empty, error)
	// admin only
	ListAllDevices(context.Context, *ListAllDevicesReq) (*ListAllDevicesRes, error)
	// contains filtered or unexported methods
}

DevicesServer is the server API for Devices service. All implementations must embed UnimplementedDevicesServer for forward compatibility

type InfoReq

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

func (*InfoReq) Descriptor deprecated

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

Deprecated: Use InfoReq.ProtoReflect.Descriptor instead.

func (*InfoReq) ProtoMessage

func (*InfoReq) ProtoMessage()

func (*InfoReq) ProtoReflect

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

func (*InfoReq) Reset

func (x *InfoReq) Reset()

func (*InfoReq) String

func (x *InfoReq) String() string

type InfoRes

type InfoRes struct {
	PublicKey                     string                  `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Host                          *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Port                          int32                   `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	HostVpnIp                     string                  `protobuf:"bytes,4,opt,name=host_vpn_ip,json=hostVpnIp,proto3" json:"host_vpn_ip,omitempty"`
	MetadataEnabled               bool                    `protobuf:"varint,5,opt,name=metadata_enabled,json=metadataEnabled,proto3" json:"metadata_enabled,omitempty"`
	IsAdmin                       bool                    `protobuf:"varint,6,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	AllowedIps                    string                  `protobuf:"bytes,7,opt,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"`
	DnsEnabled                    bool                    `protobuf:"varint,8,opt,name=dns_enabled,json=dnsEnabled,proto3" json:"dns_enabled,omitempty"`
	DnsAddress                    string                  `protobuf:"bytes,9,opt,name=dns_address,json=dnsAddress,proto3" json:"dns_address,omitempty"`
	Filename                      string                  `protobuf:"bytes,10,opt,name=filename,proto3" json:"filename,omitempty"`
	InactiveDeviceDeletionEnabled bool                    `` /* 154-byte string literal not displayed */
	InactiveDeviceGracePeriod     *durationpb.Duration    `` /* 141-byte string literal not displayed */
	ClientConfigDnsServers        string                  `` /* 132-byte string literal not displayed */
	ClientConfigDnsSearchDomain   string                  `` /* 149-byte string literal not displayed */
	ClientConfigMtu               int32                   `protobuf:"varint,15,opt,name=client_config_mtu,json=clientConfigMtu,proto3" json:"client_config_mtu,omitempty"`
	BuildInfo                     *BuildInfo              `protobuf:"bytes,16,opt,name=build_info,json=buildInfo,proto3" json:"build_info,omitempty"`
	Mtu                           int32                   `protobuf:"varint,17,opt,name=mtu,proto3" json:"mtu,omitempty"`
	// contains filtered or unexported fields
}

func (*InfoRes) Descriptor deprecated

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

Deprecated: Use InfoRes.ProtoReflect.Descriptor instead.

func (*InfoRes) GetAllowedIps

func (x *InfoRes) GetAllowedIps() string

func (*InfoRes) GetBuildInfo added in v0.10.0

func (x *InfoRes) GetBuildInfo() *BuildInfo

func (*InfoRes) GetClientConfigDnsSearchDomain added in v0.9.0

func (x *InfoRes) GetClientConfigDnsSearchDomain() string

func (*InfoRes) GetClientConfigDnsServers added in v0.9.0

func (x *InfoRes) GetClientConfigDnsServers() string

func (*InfoRes) GetClientConfigMtu added in v0.10.0

func (x *InfoRes) GetClientConfigMtu() int32

func (*InfoRes) GetDnsAddress

func (x *InfoRes) GetDnsAddress() string

func (*InfoRes) GetDnsEnabled

func (x *InfoRes) GetDnsEnabled() bool

func (*InfoRes) GetFilename added in v0.8.0

func (x *InfoRes) GetFilename() string

func (*InfoRes) GetHost

func (x *InfoRes) GetHost() *wrapperspb.StringValue

func (*InfoRes) GetHostVpnIp

func (x *InfoRes) GetHostVpnIp() string

func (*InfoRes) GetInactiveDeviceDeletionEnabled added in v0.10.0

func (x *InfoRes) GetInactiveDeviceDeletionEnabled() bool

func (*InfoRes) GetInactiveDeviceGracePeriod added in v0.10.0

func (x *InfoRes) GetInactiveDeviceGracePeriod() *durationpb.Duration

func (*InfoRes) GetIsAdmin

func (x *InfoRes) GetIsAdmin() bool

func (*InfoRes) GetMetadataEnabled

func (x *InfoRes) GetMetadataEnabled() bool

func (*InfoRes) GetMtu added in v0.10.0

func (x *InfoRes) GetMtu() int32

func (*InfoRes) GetPort

func (x *InfoRes) GetPort() int32

func (*InfoRes) GetPublicKey

func (x *InfoRes) GetPublicKey() string

func (*InfoRes) ProtoMessage

func (*InfoRes) ProtoMessage()

func (*InfoRes) ProtoReflect

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

func (*InfoRes) Reset

func (x *InfoRes) Reset()

func (*InfoRes) String

func (x *InfoRes) String() string

type ListAllDevicesReq

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

func (*ListAllDevicesReq) Descriptor deprecated

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

Deprecated: Use ListAllDevicesReq.ProtoReflect.Descriptor instead.

func (*ListAllDevicesReq) ProtoMessage

func (*ListAllDevicesReq) ProtoMessage()

func (*ListAllDevicesReq) ProtoReflect

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

func (*ListAllDevicesReq) Reset

func (x *ListAllDevicesReq) Reset()

func (*ListAllDevicesReq) String

func (x *ListAllDevicesReq) String() string

type ListAllDevicesRes

type ListAllDevicesRes struct {
	Items []*Device `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAllDevicesRes) Descriptor deprecated

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

Deprecated: Use ListAllDevicesRes.ProtoReflect.Descriptor instead.

func (*ListAllDevicesRes) GetItems

func (x *ListAllDevicesRes) GetItems() []*Device

func (*ListAllDevicesRes) ProtoMessage

func (*ListAllDevicesRes) ProtoMessage()

func (*ListAllDevicesRes) ProtoReflect

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

func (*ListAllDevicesRes) Reset

func (x *ListAllDevicesRes) Reset()

func (*ListAllDevicesRes) String

func (x *ListAllDevicesRes) String() string

type ListDevicesReq

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

func (*ListDevicesReq) Descriptor deprecated

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

Deprecated: Use ListDevicesReq.ProtoReflect.Descriptor instead.

func (*ListDevicesReq) ProtoMessage

func (*ListDevicesReq) ProtoMessage()

func (*ListDevicesReq) ProtoReflect

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

func (*ListDevicesReq) Reset

func (x *ListDevicesReq) Reset()

func (*ListDevicesReq) String

func (x *ListDevicesReq) String() string

type ListDevicesRes

type ListDevicesRes struct {
	Items []*Device `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDevicesRes) Descriptor deprecated

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

Deprecated: Use ListDevicesRes.ProtoReflect.Descriptor instead.

func (*ListDevicesRes) GetItems

func (x *ListDevicesRes) GetItems() []*Device

func (*ListDevicesRes) ProtoMessage

func (*ListDevicesRes) ProtoMessage()

func (*ListDevicesRes) ProtoReflect

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

func (*ListDevicesRes) Reset

func (x *ListDevicesRes) Reset()

func (*ListDevicesRes) String

func (x *ListDevicesRes) String() string

type ListUsersReq added in v0.9.0

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

func (*ListUsersReq) Descriptor deprecated added in v0.9.0

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

Deprecated: Use ListUsersReq.ProtoReflect.Descriptor instead.

func (*ListUsersReq) ProtoMessage added in v0.9.0

func (*ListUsersReq) ProtoMessage()

func (*ListUsersReq) ProtoReflect added in v0.9.0

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

func (*ListUsersReq) Reset added in v0.9.0

func (x *ListUsersReq) Reset()

func (*ListUsersReq) String added in v0.9.0

func (x *ListUsersReq) String() string

type ListUsersRes added in v0.9.0

type ListUsersRes struct {
	Items []*User `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRes) Descriptor deprecated added in v0.9.0

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

Deprecated: Use ListUsersRes.ProtoReflect.Descriptor instead.

func (*ListUsersRes) GetItems added in v0.9.0

func (x *ListUsersRes) GetItems() []*User

func (*ListUsersRes) ProtoMessage added in v0.9.0

func (*ListUsersRes) ProtoMessage()

func (*ListUsersRes) ProtoReflect added in v0.9.0

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

func (*ListUsersRes) Reset added in v0.9.0

func (x *ListUsersRes) Reset()

func (*ListUsersRes) String added in v0.9.0

func (x *ListUsersRes) String() string

type ServerClient

type ServerClient interface {
	Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*InfoRes, error)
}

ServerClient is the client API for Server 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.

func NewServerClient

func NewServerClient(cc grpc.ClientConnInterface) ServerClient

type ServerServer

type ServerServer interface {
	Info(context.Context, *InfoReq) (*InfoRes, error)
	// contains filtered or unexported methods
}

ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility

type UnimplementedDevicesServer

type UnimplementedDevicesServer struct {
}

UnimplementedDevicesServer must be embedded to have forward compatible implementations.

func (UnimplementedDevicesServer) AddDevice

func (UnimplementedDevicesServer) DeleteDevice

func (UnimplementedDevicesServer) ListAllDevices

func (UnimplementedDevicesServer) ListDevices

type UnimplementedServerServer

type UnimplementedServerServer struct {
}

UnimplementedServerServer must be embedded to have forward compatible implementations.

func (UnimplementedServerServer) Info

type UnimplementedUsersServer added in v0.9.0

type UnimplementedUsersServer struct {
}

UnimplementedUsersServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServer) DeleteUser added in v0.9.0

func (UnimplementedUsersServer) ListUsers added in v0.9.0

type UnsafeDevicesServer added in v0.7.0

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

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

type UnsafeServerServer added in v0.7.0

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

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

type UnsafeUsersServer added in v0.9.0

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

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

type User added in v0.9.0

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

func (*User) Descriptor deprecated added in v0.9.0

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDisplayName added in v0.9.0

func (x *User) GetDisplayName() string

func (*User) GetName added in v0.9.0

func (x *User) GetName() string

func (*User) ProtoMessage added in v0.9.0

func (*User) ProtoMessage()

func (*User) ProtoReflect added in v0.9.0

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

func (*User) Reset added in v0.9.0

func (x *User) Reset()

func (*User) String added in v0.9.0

func (x *User) String() string

type UsersClient added in v0.9.0

type UsersClient interface {
	// admin only
	ListUsers(ctx context.Context, in *ListUsersReq, opts ...grpc.CallOption) (*ListUsersRes, error)
	DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

UsersClient is the client API for Users 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.

func NewUsersClient added in v0.9.0

func NewUsersClient(cc grpc.ClientConnInterface) UsersClient

type UsersServer added in v0.9.0

type UsersServer interface {
	// admin only
	ListUsers(context.Context, *ListUsersReq) (*ListUsersRes, error)
	DeleteUser(context.Context, *DeleteUserReq) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

UsersServer is the server API for Users service. All implementations must embed UnimplementedUsersServer for forward compatibility

Jump to

Keyboard shortcuts

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