ricochet-go/rpc/network.pb.go

234 lines
10 KiB
Go

// Code generated by protoc-gen-go.
// source: network.proto
// DO NOT EDIT!
package ricochet
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type TorProcessStatus_Status int32
const (
TorProcessStatus_DISABLED TorProcessStatus_Status = 0
TorProcessStatus_STOPPED TorProcessStatus_Status = 1
TorProcessStatus_STARTING TorProcessStatus_Status = 2
TorProcessStatus_RUNNING TorProcessStatus_Status = 3
)
var TorProcessStatus_Status_name = map[int32]string{
0: "DISABLED",
1: "STOPPED",
2: "STARTING",
3: "RUNNING",
}
var TorProcessStatus_Status_value = map[string]int32{
"DISABLED": 0,
"STOPPED": 1,
"STARTING": 2,
"RUNNING": 3,
}
func (x TorProcessStatus_Status) String() string {
return proto.EnumName(TorProcessStatus_Status_name, int32(x))
}
func (TorProcessStatus_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{1, 0} }
type TorControlStatus_Status int32
const (
TorControlStatus_STOPPED TorControlStatus_Status = 0
TorControlStatus_ERROR TorControlStatus_Status = 1
TorControlStatus_CONNECTING TorControlStatus_Status = 2
TorControlStatus_CONNECTED TorControlStatus_Status = 3
)
var TorControlStatus_Status_name = map[int32]string{
0: "STOPPED",
1: "ERROR",
2: "CONNECTING",
3: "CONNECTED",
}
var TorControlStatus_Status_value = map[string]int32{
"STOPPED": 0,
"ERROR": 1,
"CONNECTING": 2,
"CONNECTED": 3,
}
func (x TorControlStatus_Status) String() string {
return proto.EnumName(TorControlStatus_Status_name, int32(x))
}
func (TorControlStatus_Status) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{2, 0} }
type TorConnectionStatus_Status int32
const (
TorConnectionStatus_UNKNOWN TorConnectionStatus_Status = 0
TorConnectionStatus_OFFLINE TorConnectionStatus_Status = 1
TorConnectionStatus_BOOTSTRAPPING TorConnectionStatus_Status = 2
TorConnectionStatus_READY TorConnectionStatus_Status = 3
)
var TorConnectionStatus_Status_name = map[int32]string{
0: "UNKNOWN",
1: "OFFLINE",
2: "BOOTSTRAPPING",
3: "READY",
}
var TorConnectionStatus_Status_value = map[string]int32{
"UNKNOWN": 0,
"OFFLINE": 1,
"BOOTSTRAPPING": 2,
"READY": 3,
}
func (x TorConnectionStatus_Status) String() string {
return proto.EnumName(TorConnectionStatus_Status_name, int32(x))
}
func (TorConnectionStatus_Status) EnumDescriptor() ([]byte, []int) {
return fileDescriptor5, []int{3, 0}
}
type MonitorNetworkRequest struct {
}
func (m *MonitorNetworkRequest) Reset() { *m = MonitorNetworkRequest{} }
func (m *MonitorNetworkRequest) String() string { return proto.CompactTextString(m) }
func (*MonitorNetworkRequest) ProtoMessage() {}
func (*MonitorNetworkRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
type TorProcessStatus struct {
Status TorProcessStatus_Status `protobuf:"varint,1,opt,name=status,enum=ricochet.TorProcessStatus_Status" json:"status,omitempty"`
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage" json:"errorMessage,omitempty"`
}
func (m *TorProcessStatus) Reset() { *m = TorProcessStatus{} }
func (m *TorProcessStatus) String() string { return proto.CompactTextString(m) }
func (*TorProcessStatus) ProtoMessage() {}
func (*TorProcessStatus) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
type TorControlStatus struct {
Status TorControlStatus_Status `protobuf:"varint,1,opt,name=status,enum=ricochet.TorControlStatus_Status" json:"status,omitempty"`
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage" json:"errorMessage,omitempty"`
TorVersion string `protobuf:"bytes,10,opt,name=torVersion" json:"torVersion,omitempty"`
}
func (m *TorControlStatus) Reset() { *m = TorControlStatus{} }
func (m *TorControlStatus) String() string { return proto.CompactTextString(m) }
func (*TorControlStatus) ProtoMessage() {}
func (*TorControlStatus) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
type TorConnectionStatus struct {
Status TorConnectionStatus_Status `protobuf:"varint,1,opt,name=status,enum=ricochet.TorConnectionStatus_Status" json:"status,omitempty"`
BootstrapProgress string `protobuf:"bytes,10,opt,name=bootstrapProgress" json:"bootstrapProgress,omitempty"`
SocksAddress []string `protobuf:"bytes,11,rep,name=socksAddress" json:"socksAddress,omitempty"`
}
func (m *TorConnectionStatus) Reset() { *m = TorConnectionStatus{} }
func (m *TorConnectionStatus) String() string { return proto.CompactTextString(m) }
func (*TorConnectionStatus) ProtoMessage() {}
func (*TorConnectionStatus) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
type NetworkStatus struct {
Process *TorProcessStatus `protobuf:"bytes,1,opt,name=process" json:"process,omitempty"`
Control *TorControlStatus `protobuf:"bytes,2,opt,name=control" json:"control,omitempty"`
Connection *TorConnectionStatus `protobuf:"bytes,3,opt,name=connection" json:"connection,omitempty"`
}
func (m *NetworkStatus) Reset() { *m = NetworkStatus{} }
func (m *NetworkStatus) String() string { return proto.CompactTextString(m) }
func (*NetworkStatus) ProtoMessage() {}
func (*NetworkStatus) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} }
func (m *NetworkStatus) GetProcess() *TorProcessStatus {
if m != nil {
return m.Process
}
return nil
}
func (m *NetworkStatus) GetControl() *TorControlStatus {
if m != nil {
return m.Control
}
return nil
}
func (m *NetworkStatus) GetConnection() *TorConnectionStatus {
if m != nil {
return m.Connection
}
return nil
}
type StartNetworkRequest struct {
}
func (m *StartNetworkRequest) Reset() { *m = StartNetworkRequest{} }
func (m *StartNetworkRequest) String() string { return proto.CompactTextString(m) }
func (*StartNetworkRequest) ProtoMessage() {}
func (*StartNetworkRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} }
type StopNetworkRequest struct {
}
func (m *StopNetworkRequest) Reset() { *m = StopNetworkRequest{} }
func (m *StopNetworkRequest) String() string { return proto.CompactTextString(m) }
func (*StopNetworkRequest) ProtoMessage() {}
func (*StopNetworkRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} }
func init() {
proto.RegisterType((*MonitorNetworkRequest)(nil), "ricochet.MonitorNetworkRequest")
proto.RegisterType((*TorProcessStatus)(nil), "ricochet.TorProcessStatus")
proto.RegisterType((*TorControlStatus)(nil), "ricochet.TorControlStatus")
proto.RegisterType((*TorConnectionStatus)(nil), "ricochet.TorConnectionStatus")
proto.RegisterType((*NetworkStatus)(nil), "ricochet.NetworkStatus")
proto.RegisterType((*StartNetworkRequest)(nil), "ricochet.StartNetworkRequest")
proto.RegisterType((*StopNetworkRequest)(nil), "ricochet.StopNetworkRequest")
proto.RegisterEnum("ricochet.TorProcessStatus_Status", TorProcessStatus_Status_name, TorProcessStatus_Status_value)
proto.RegisterEnum("ricochet.TorControlStatus_Status", TorControlStatus_Status_name, TorControlStatus_Status_value)
proto.RegisterEnum("ricochet.TorConnectionStatus_Status", TorConnectionStatus_Status_name, TorConnectionStatus_Status_value)
}
func init() { proto.RegisterFile("network.proto", fileDescriptor5) }
var fileDescriptor5 = []byte{
// 451 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6e, 0xd3, 0x40,
0x10, 0xc6, 0xeb, 0x46, 0xa4, 0xcd, 0xa4, 0xae, 0xd2, 0x2d, 0x15, 0x16, 0x12, 0xa8, 0xac, 0x38,
0x70, 0x40, 0x3e, 0x14, 0x2e, 0x48, 0xfc, 0x73, 0x13, 0x17, 0x45, 0xb4, 0x6b, 0x6b, 0xed, 0x82,
0x38, 0xa6, 0xee, 0xaa, 0x44, 0x45, 0x1e, 0xb3, 0xbb, 0x15, 0xcf, 0xc5, 0x95, 0xc7, 0xe0, 0x25,
0x78, 0x0d, 0xd6, 0xde, 0x4d, 0x64, 0x1b, 0x81, 0x50, 0x4f, 0xc9, 0xce, 0x7e, 0x33, 0x9e, 0xdf,
0x37, 0xb3, 0xe0, 0x97, 0x42, 0x7f, 0x43, 0x79,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