Versions in this module Expand all Collapse all v0 v0.1.0 Feb 22, 2023 Changes in this version + var File_protos_openwrt_proto protoreflect.FileDescriptor + var OpenWRT_ServiceDesc = grpc.ServiceDesc + var State_name = map[int32]string + var State_value = map[string]int32 + func RegisterOpenWRTServer(s grpc.ServiceRegistrar, srv OpenWRTServer) + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (x *Empty) ProtoReflect() protoreflect.Message + func (x *Empty) Reset() + func (x *Empty) String() string + type Event struct + EventId string + Host *Host + Network *Network + PortForward *PortForward + PublicIp *PublicIP + func (*Event) Descriptor() ([]byte, []int) + func (*Event) ProtoMessage() + func (x *Event) GetEventId() string + func (x *Event) GetHost() *Host + func (x *Event) GetNetwork() *Network + func (x *Event) GetPortForward() *PortForward + func (x *Event) GetPublicIp() *PublicIP + func (x *Event) ProtoReflect() protoreflect.Message + func (x *Event) Reset() + func (x *Event) String() string + type Host struct + Instance string + Ip string + Mac string + NetworkId string + State State + UserData []byte + func (*Host) Descriptor() ([]byte, []int) + func (*Host) ProtoMessage() + func (x *Host) GetInstance() string + func (x *Host) GetIp() string + func (x *Host) GetMac() string + func (x *Host) GetNetworkId() string + func (x *Host) GetState() State + func (x *Host) GetUserData() []byte + func (x *Host) ProtoReflect() protoreflect.Message + func (x *Host) Reset() + func (x *Host) String() string + type Instance struct + Hostname string + func (*Instance) Descriptor() ([]byte, []int) + func (*Instance) ProtoMessage() + func (x *Instance) GetHostname() string + func (x *Instance) ProtoReflect() protoreflect.Message + func (x *Instance) Reset() + func (x *Instance) String() string + type Network struct + ResourceId string + State State + Subnet string + VlanId int32 + func (*Network) Descriptor() ([]byte, []int) + func (*Network) ProtoMessage() + func (x *Network) GetResourceId() string + func (x *Network) GetState() State + func (x *Network) GetSubnet() string + func (x *Network) GetVlanId() int32 + func (x *Network) ProtoReflect() protoreflect.Message + func (x *Network) Reset() + func (x *Network) String() string + type OpenWRTClient interface + EventStream func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (OpenWRT_EventStreamClient, error) + GetToken func(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Token, error) + func NewOpenWRTClient(cc grpc.ClientConnInterface) OpenWRTClient + type OpenWRTServer interface + EventStream func(*Empty, OpenWRT_EventStreamServer) error + GetToken func(context.Context, *Instance) (*Token, error) + type OpenWRT_EventStreamClient interface + Recv func() (*Event, error) + type OpenWRT_EventStreamServer interface + Send func(*Event) error + type PortForward struct + Id string + InternalHost string + InternalNetwork string + InternalPort int32 + PublicIP string + PublicNetwork string + PublicPort int32 + func (*PortForward) Descriptor() ([]byte, []int) + func (*PortForward) ProtoMessage() + func (x *PortForward) GetId() string + func (x *PortForward) GetInternalHost() string + func (x *PortForward) GetInternalNetwork() string + func (x *PortForward) GetInternalPort() int32 + func (x *PortForward) GetPublicIP() string + func (x *PortForward) GetPublicNetwork() string + func (x *PortForward) GetPublicPort() int32 + func (x *PortForward) ProtoReflect() protoreflect.Message + func (x *PortForward) Reset() + func (x *PortForward) String() string + type PublicIP struct + Address string + Id string + Netmask string + func (*PublicIP) Descriptor() ([]byte, []int) + func (*PublicIP) ProtoMessage() + func (x *PublicIP) GetAddress() string + func (x *PublicIP) GetId() string + func (x *PublicIP) GetNetmask() string + func (x *PublicIP) ProtoReflect() protoreflect.Message + func (x *PublicIP) Reset() + func (x *PublicIP) String() string + type State int32 + const State_ACTIVE + const State_DELETED + func (State) Descriptor() protoreflect.EnumDescriptor + func (State) EnumDescriptor() ([]byte, []int) + func (State) Type() protoreflect.EnumType + func (x State) Enum() *State + func (x State) Number() protoreflect.EnumNumber + func (x State) String() string + type Token struct + Token string + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (x *Token) GetToken() string + func (x *Token) ProtoReflect() protoreflect.Message + func (x *Token) Reset() + func (x *Token) String() string + type UnimplementedOpenWRTServer struct + func (UnimplementedOpenWRTServer) EventStream(*Empty, OpenWRT_EventStreamServer) error + func (UnimplementedOpenWRTServer) GetToken(context.Context, *Instance) (*Token, error) + type UnsafeOpenWRTServer interface