proto

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CSPType_name = map[int32]string{
	0: "NONE",
	1: "ALI",
	2: "QQ",
	3: "AWS",
}
View Source
var CSPType_value = map[string]int32{
	"NONE": 0,
	"ALI":  1,
	"QQ":   2,
	"AWS":  3,
}

Functions

func RegisterControllerServiceServer

func RegisterControllerServiceServer(s *grpc.Server, srv ControllerServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)

Types

type AddCSPReply

type AddCSPReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data                 *CSPInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddCSPReply) Descriptor

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

func (*AddCSPReply) GetCode

func (m *AddCSPReply) GetCode() int32

func (*AddCSPReply) GetData

func (m *AddCSPReply) GetData() *CSPInfo

func (*AddCSPReply) GetMessage

func (m *AddCSPReply) GetMessage() string

func (*AddCSPReply) ProtoMessage

func (*AddCSPReply) ProtoMessage()

func (*AddCSPReply) Reset

func (m *AddCSPReply) Reset()

func (*AddCSPReply) String

func (m *AddCSPReply) String() string

func (*AddCSPReply) XXX_DiscardUnknown

func (m *AddCSPReply) XXX_DiscardUnknown()

func (*AddCSPReply) XXX_Marshal

func (m *AddCSPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddCSPReply) XXX_Merge

func (m *AddCSPReply) XXX_Merge(src proto.Message)

func (*AddCSPReply) XXX_Size

func (m *AddCSPReply) XXX_Size() int

func (*AddCSPReply) XXX_Unmarshal

func (m *AddCSPReply) XXX_Unmarshal(b []byte) error

type AddCSPReq

type AddCSPReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	CspType              CSPType  `protobuf:"varint,2,opt,name=cspType,proto3,enum=controller.CSPType" json:"cspType,omitempty"`
	AccessKey            string   `protobuf:"bytes,3,opt,name=accessKey,proto3" json:"accessKey,omitempty"`
	AccessSecret         string   `protobuf:"bytes,4,opt,name=accessSecret,proto3" json:"accessSecret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddCSPReq) Descriptor

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

func (*AddCSPReq) GetAccessKey

func (m *AddCSPReq) GetAccessKey() string

func (*AddCSPReq) GetAccessSecret

func (m *AddCSPReq) GetAccessSecret() string

func (*AddCSPReq) GetCspType

func (m *AddCSPReq) GetCspType() CSPType

func (*AddCSPReq) GetUserId

func (m *AddCSPReq) GetUserId() string

func (*AddCSPReq) ProtoMessage

func (*AddCSPReq) ProtoMessage()

func (*AddCSPReq) Reset

func (m *AddCSPReq) Reset()

func (*AddCSPReq) String

func (m *AddCSPReq) String() string

func (*AddCSPReq) XXX_DiscardUnknown

func (m *AddCSPReq) XXX_DiscardUnknown()

func (*AddCSPReq) XXX_Marshal

func (m *AddCSPReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddCSPReq) XXX_Merge

func (m *AddCSPReq) XXX_Merge(src proto.Message)

func (*AddCSPReq) XXX_Size

func (m *AddCSPReq) XXX_Size() int

func (*AddCSPReq) XXX_Unmarshal

func (m *AddCSPReq) XXX_Unmarshal(b []byte) error

type AddEdgeReply

type AddEdgeReply struct {
	Code                 int32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data                 *EdgeInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*AddEdgeReply) Descriptor

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

func (*AddEdgeReply) GetCode

func (m *AddEdgeReply) GetCode() int32

func (*AddEdgeReply) GetData

func (m *AddEdgeReply) GetData() *EdgeInfo

func (*AddEdgeReply) GetMessage

func (m *AddEdgeReply) GetMessage() string

func (*AddEdgeReply) ProtoMessage

func (*AddEdgeReply) ProtoMessage()

func (*AddEdgeReply) Reset

func (m *AddEdgeReply) Reset()

func (*AddEdgeReply) String

func (m *AddEdgeReply) String() string

func (*AddEdgeReply) XXX_DiscardUnknown

func (m *AddEdgeReply) XXX_DiscardUnknown()

func (*AddEdgeReply) XXX_Marshal

func (m *AddEdgeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddEdgeReply) XXX_Merge

func (m *AddEdgeReply) XXX_Merge(src proto.Message)

func (*AddEdgeReply) XXX_Size

func (m *AddEdgeReply) XXX_Size() int

func (*AddEdgeReply) XXX_Unmarshal

func (m *AddEdgeReply) XXX_Unmarshal(b []byte) error

type AddEdgeReq

type AddEdgeReq struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	CspType              CSPType  `protobuf:"varint,3,opt,name=cspType,proto3,enum=controller.CSPType" json:"cspType,omitempty"`
	PublicIP             string   `protobuf:"bytes,4,opt,name=publicIP,proto3" json:"publicIP,omitempty"`
	PublicPort           int32    `protobuf:"varint,5,opt,name=publicPort,proto3" json:"publicPort,omitempty"`
	Cidr                 string   `protobuf:"bytes,6,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Comment              string   `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddEdgeReq) Descriptor

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

func (*AddEdgeReq) GetCidr

func (m *AddEdgeReq) GetCidr() string

func (*AddEdgeReq) GetComment

func (m *AddEdgeReq) GetComment() string

func (*AddEdgeReq) GetCspType

func (m *AddEdgeReq) GetCspType() CSPType

func (*AddEdgeReq) GetName

func (m *AddEdgeReq) GetName() string

func (*AddEdgeReq) GetPublicIP

func (m *AddEdgeReq) GetPublicIP() string

func (*AddEdgeReq) GetPublicPort

func (m *AddEdgeReq) GetPublicPort() int32

func (*AddEdgeReq) GetUserId

func (m *AddEdgeReq) GetUserId() string

func (*AddEdgeReq) ProtoMessage

func (*AddEdgeReq) ProtoMessage()

func (*AddEdgeReq) Reset

func (m *AddEdgeReq) Reset()

func (*AddEdgeReq) String

func (m *AddEdgeReq) String() string

func (*AddEdgeReq) XXX_DiscardUnknown

func (m *AddEdgeReq) XXX_DiscardUnknown()

func (*AddEdgeReq) XXX_Marshal

func (m *AddEdgeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddEdgeReq) XXX_Merge

func (m *AddEdgeReq) XXX_Merge(src proto.Message)

func (*AddEdgeReq) XXX_Size

func (m *AddEdgeReq) XXX_Size() int

func (*AddEdgeReq) XXX_Unmarshal

func (m *AddEdgeReq) XXX_Unmarshal(b []byte) error

type AddRouteReply

type AddRouteReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddRouteReply) Descriptor

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

func (*AddRouteReply) GetCode

func (m *AddRouteReply) GetCode() int32

func (*AddRouteReply) GetMessage

func (m *AddRouteReply) GetMessage() string

func (*AddRouteReply) ProtoMessage

func (*AddRouteReply) ProtoMessage()

func (*AddRouteReply) Reset

func (m *AddRouteReply) Reset()

func (*AddRouteReply) String

func (m *AddRouteReply) String() string

func (*AddRouteReply) XXX_DiscardUnknown

func (m *AddRouteReply) XXX_DiscardUnknown()

func (*AddRouteReply) XXX_Marshal

func (m *AddRouteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddRouteReply) XXX_Merge

func (m *AddRouteReply) XXX_Merge(src proto.Message)

func (*AddRouteReply) XXX_Size

func (m *AddRouteReply) XXX_Size() int

func (*AddRouteReply) XXX_Unmarshal

func (m *AddRouteReply) XXX_Unmarshal(b []byte) error

type AddRouteReq

type AddRouteReq struct {
	Cidr                 string   `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Nexthop              string   `protobuf:"bytes,2,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	UserId               string   `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	EdgeId               string   `protobuf:"bytes,5,opt,name=edgeId,proto3" json:"edgeId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddRouteReq) Descriptor

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

func (*AddRouteReq) GetCidr

func (m *AddRouteReq) GetCidr() string

func (*AddRouteReq) GetEdgeId

func (m *AddRouteReq) GetEdgeId() string

func (*AddRouteReq) GetName

func (m *AddRouteReq) GetName() string

func (*AddRouteReq) GetNexthop

func (m *AddRouteReq) GetNexthop() string

func (*AddRouteReq) GetUserId

func (m *AddRouteReq) GetUserId() string

func (*AddRouteReq) ProtoMessage

func (*AddRouteReq) ProtoMessage()

func (*AddRouteReq) Reset

func (m *AddRouteReq) Reset()

func (*AddRouteReq) String

func (m *AddRouteReq) String() string

func (*AddRouteReq) XXX_DiscardUnknown

func (m *AddRouteReq) XXX_DiscardUnknown()

func (*AddRouteReq) XXX_Marshal

func (m *AddRouteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddRouteReq) XXX_Merge

func (m *AddRouteReq) XXX_Merge(src proto.Message)

func (*AddRouteReq) XXX_Size

func (m *AddRouteReq) XXX_Size() int

func (*AddRouteReq) XXX_Unmarshal

func (m *AddRouteReq) XXX_Unmarshal(b []byte) error

type AddUserReply

type AddUserReply struct {
	Code                 int32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	UserInfo             *UserInfo `protobuf:"bytes,3,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*AddUserReply) Descriptor

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

func (*AddUserReply) GetCode

func (m *AddUserReply) GetCode() int32

func (*AddUserReply) GetMessage

func (m *AddUserReply) GetMessage() string

func (*AddUserReply) GetUserInfo

func (m *AddUserReply) GetUserInfo() *UserInfo

func (*AddUserReply) ProtoMessage

func (*AddUserReply) ProtoMessage()

func (*AddUserReply) Reset

func (m *AddUserReply) Reset()

func (*AddUserReply) String

func (m *AddUserReply) String() string

func (*AddUserReply) XXX_DiscardUnknown

func (m *AddUserReply) XXX_DiscardUnknown()

func (*AddUserReply) XXX_Marshal

func (m *AddUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddUserReply) XXX_Merge

func (m *AddUserReply) XXX_Merge(src proto.Message)

func (*AddUserReply) XXX_Size

func (m *AddUserReply) XXX_Size() int

func (*AddUserReply) XXX_Unmarshal

func (m *AddUserReply) XXX_Unmarshal(b []byte) error

type AddUserReq

type AddUserReq struct {
	UserName             string   `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Email                string   `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	About                string   `protobuf:"bytes,4,opt,name=about,proto3" json:"about,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddUserReq) Descriptor

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

func (*AddUserReq) GetAbout

func (m *AddUserReq) GetAbout() string

func (*AddUserReq) GetEmail

func (m *AddUserReq) GetEmail() string

func (*AddUserReq) GetPassword

func (m *AddUserReq) GetPassword() string

func (*AddUserReq) GetUserName

func (m *AddUserReq) GetUserName() string

func (*AddUserReq) ProtoMessage

func (*AddUserReq) ProtoMessage()

func (*AddUserReq) Reset

func (m *AddUserReq) Reset()

func (*AddUserReq) String

func (m *AddUserReq) String() string

func (*AddUserReq) XXX_DiscardUnknown

func (m *AddUserReq) XXX_DiscardUnknown()

func (*AddUserReq) XXX_Marshal

func (m *AddUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddUserReq) XXX_Merge

func (m *AddUserReq) XXX_Merge(src proto.Message)

func (*AddUserReq) XXX_Size

func (m *AddUserReq) XXX_Size() int

func (*AddUserReq) XXX_Unmarshal

func (m *AddUserReq) XXX_Unmarshal(b []byte) error

type AuthorizeReply

type AuthorizeReply struct {
	Code                 int32               `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string              `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data                 *AuthorizeReplyBody `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*AuthorizeReply) Descriptor

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

func (*AuthorizeReply) GetCode

func (m *AuthorizeReply) GetCode() int32

func (*AuthorizeReply) GetData

func (m *AuthorizeReply) GetData() *AuthorizeReplyBody

func (*AuthorizeReply) GetMessage

func (m *AuthorizeReply) GetMessage() string

func (*AuthorizeReply) ProtoMessage

func (*AuthorizeReply) ProtoMessage()

func (*AuthorizeReply) Reset

func (m *AuthorizeReply) Reset()

func (*AuthorizeReply) String

func (m *AuthorizeReply) String() string

func (*AuthorizeReply) XXX_DiscardUnknown

func (m *AuthorizeReply) XXX_DiscardUnknown()

func (*AuthorizeReply) XXX_Marshal

func (m *AuthorizeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeReply) XXX_Merge

func (m *AuthorizeReply) XXX_Merge(src proto.Message)

func (*AuthorizeReply) XXX_Size

func (m *AuthorizeReply) XXX_Size() int

func (*AuthorizeReply) XXX_Unmarshal

func (m *AuthorizeReply) XXX_Unmarshal(b []byte) error

type AuthorizeReplyBody

type AuthorizeReplyBody struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Token                string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	ExpiredIn            int64    `protobuf:"varint,3,opt,name=expiredIn,proto3" json:"expiredIn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthorizeReplyBody) Descriptor

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

func (*AuthorizeReplyBody) GetExpiredIn

func (m *AuthorizeReplyBody) GetExpiredIn() int64

func (*AuthorizeReplyBody) GetToken

func (m *AuthorizeReplyBody) GetToken() string

func (*AuthorizeReplyBody) GetUserId

func (m *AuthorizeReplyBody) GetUserId() string

func (*AuthorizeReplyBody) ProtoMessage

func (*AuthorizeReplyBody) ProtoMessage()

func (*AuthorizeReplyBody) Reset

func (m *AuthorizeReplyBody) Reset()

func (*AuthorizeReplyBody) String

func (m *AuthorizeReplyBody) String() string

func (*AuthorizeReplyBody) XXX_DiscardUnknown

func (m *AuthorizeReplyBody) XXX_DiscardUnknown()

func (*AuthorizeReplyBody) XXX_Marshal

func (m *AuthorizeReplyBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeReplyBody) XXX_Merge

func (m *AuthorizeReplyBody) XXX_Merge(src proto.Message)

func (*AuthorizeReplyBody) XXX_Size

func (m *AuthorizeReplyBody) XXX_Size() int

func (*AuthorizeReplyBody) XXX_Unmarshal

func (m *AuthorizeReplyBody) XXX_Unmarshal(b []byte) error

type AuthorizeReq

type AuthorizeReq struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthorizeReq) Descriptor

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

func (*AuthorizeReq) GetPassword

func (m *AuthorizeReq) GetPassword() string

func (*AuthorizeReq) GetUsername

func (m *AuthorizeReq) GetUsername() string

func (*AuthorizeReq) ProtoMessage

func (*AuthorizeReq) ProtoMessage()

func (*AuthorizeReq) Reset

func (m *AuthorizeReq) Reset()

func (*AuthorizeReq) String

func (m *AuthorizeReq) String() string

func (*AuthorizeReq) XXX_DiscardUnknown

func (m *AuthorizeReq) XXX_DiscardUnknown()

func (*AuthorizeReq) XXX_Marshal

func (m *AuthorizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizeReq) XXX_Merge

func (m *AuthorizeReq) XXX_Merge(src proto.Message)

func (*AuthorizeReq) XXX_Size

func (m *AuthorizeReq) XXX_Size() int

func (*AuthorizeReq) XXX_Unmarshal

func (m *AuthorizeReq) XXX_Unmarshal(b []byte) error

type CSPInfo

type CSPInfo struct {
	CspType              CSPType  `protobuf:"varint,1,opt,name=cspType,proto3,enum=controller.CSPType" json:"cspType,omitempty"`
	AccessKey            string   `protobuf:"bytes,2,opt,name=accessKey,proto3" json:"accessKey,omitempty"`
	AccessSecret         string   `protobuf:"bytes,3,opt,name=accessSecret,proto3" json:"accessSecret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CSPInfo) Descriptor

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

func (*CSPInfo) GetAccessKey

func (m *CSPInfo) GetAccessKey() string

func (*CSPInfo) GetAccessSecret

func (m *CSPInfo) GetAccessSecret() string

func (*CSPInfo) GetCspType

func (m *CSPInfo) GetCspType() CSPType

func (*CSPInfo) ProtoMessage

func (*CSPInfo) ProtoMessage()

func (*CSPInfo) Reset

func (m *CSPInfo) Reset()

func (*CSPInfo) String

func (m *CSPInfo) String() string

func (*CSPInfo) XXX_DiscardUnknown

func (m *CSPInfo) XXX_DiscardUnknown()

func (*CSPInfo) XXX_Marshal

func (m *CSPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CSPInfo) XXX_Merge

func (m *CSPInfo) XXX_Merge(src proto.Message)

func (*CSPInfo) XXX_Size

func (m *CSPInfo) XXX_Size() int

func (*CSPInfo) XXX_Unmarshal

func (m *CSPInfo) XXX_Unmarshal(b []byte) error

type CSPType

type CSPType int32
const (
	CSPType_NONE CSPType = 0
	CSPType_ALI  CSPType = 1
	CSPType_QQ   CSPType = 2
	CSPType_AWS  CSPType = 3
)

func (CSPType) EnumDescriptor

func (CSPType) EnumDescriptor() ([]byte, []int)

func (CSPType) String

func (x CSPType) String() string

type ControllerServiceClient

type ControllerServiceClient interface {
	GetEdgeList(ctx context.Context, in *GetEdgeListReq, opts ...grpc.CallOption) (*GetEdgeListReply, error)
	AddEdge(ctx context.Context, in *AddEdgeReq, opts ...grpc.CallOption) (*AddEdgeReply, error)
	DelEdge(ctx context.Context, in *DelEdgeReq, opts ...grpc.CallOption) (*DelEdgeReply, error)
	GetCSPList(ctx context.Context, in *GetCSPListReq, opts ...grpc.CallOption) (*GetCSPListReply, error)
	AddCSP(ctx context.Context, in *AddCSPReq, opts ...grpc.CallOption) (*AddCSPReply, error)
	DelCSP(ctx context.Context, in *DelCSPReq, opts ...grpc.CallOption) (*DelCSPReply, error)
	GetStat(ctx context.Context, in *GetStatReq, opts ...grpc.CallOption) (*GetStatReply, error)
	AddRoute(ctx context.Context, in *AddRouteReq, opts ...grpc.CallOption) (*AddRouteReply, error)
	DelRoute(ctx context.Context, in *DelRouteReq, opts ...grpc.CallOption) (*DelRouteReply, error)
	GetUserRoutes(ctx context.Context, in *GetUserRoutesReq, opts ...grpc.CallOption) (*GetUserRoutesReply, error)
}

ControllerServiceClient is the client API for ControllerService service.

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

func NewControllerServiceClient

func NewControllerServiceClient(cc *grpc.ClientConn) ControllerServiceClient

type ControllerServiceServer

ControllerServiceServer is the server API for ControllerService service.

type DelCSPReply

type DelCSPReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelCSPReply) Descriptor

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

func (*DelCSPReply) GetCode

func (m *DelCSPReply) GetCode() int32

func (*DelCSPReply) GetMessage

func (m *DelCSPReply) GetMessage() string

func (*DelCSPReply) ProtoMessage

func (*DelCSPReply) ProtoMessage()

func (*DelCSPReply) Reset

func (m *DelCSPReply) Reset()

func (*DelCSPReply) String

func (m *DelCSPReply) String() string

func (*DelCSPReply) XXX_DiscardUnknown

func (m *DelCSPReply) XXX_DiscardUnknown()

func (*DelCSPReply) XXX_Marshal

func (m *DelCSPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelCSPReply) XXX_Merge

func (m *DelCSPReply) XXX_Merge(src proto.Message)

func (*DelCSPReply) XXX_Size

func (m *DelCSPReply) XXX_Size() int

func (*DelCSPReply) XXX_Unmarshal

func (m *DelCSPReply) XXX_Unmarshal(b []byte) error

type DelCSPReq

type DelCSPReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	CspType              CSPType  `protobuf:"varint,2,opt,name=cspType,proto3,enum=controller.CSPType" json:"cspType,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelCSPReq) Descriptor

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

func (*DelCSPReq) GetCspType

func (m *DelCSPReq) GetCspType() CSPType

func (*DelCSPReq) GetUserId

func (m *DelCSPReq) GetUserId() string

func (*DelCSPReq) ProtoMessage

func (*DelCSPReq) ProtoMessage()

func (*DelCSPReq) Reset

func (m *DelCSPReq) Reset()

func (*DelCSPReq) String

func (m *DelCSPReq) String() string

func (*DelCSPReq) XXX_DiscardUnknown

func (m *DelCSPReq) XXX_DiscardUnknown()

func (*DelCSPReq) XXX_Marshal

func (m *DelCSPReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelCSPReq) XXX_Merge

func (m *DelCSPReq) XXX_Merge(src proto.Message)

func (*DelCSPReq) XXX_Size

func (m *DelCSPReq) XXX_Size() int

func (*DelCSPReq) XXX_Unmarshal

func (m *DelCSPReq) XXX_Unmarshal(b []byte) error

type DelEdgeReply

type DelEdgeReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelEdgeReply) Descriptor

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

func (*DelEdgeReply) GetCode

func (m *DelEdgeReply) GetCode() int32

func (*DelEdgeReply) GetMessage

func (m *DelEdgeReply) GetMessage() string

func (*DelEdgeReply) ProtoMessage

func (*DelEdgeReply) ProtoMessage()

func (*DelEdgeReply) Reset

func (m *DelEdgeReply) Reset()

func (*DelEdgeReply) String

func (m *DelEdgeReply) String() string

func (*DelEdgeReply) XXX_DiscardUnknown

func (m *DelEdgeReply) XXX_DiscardUnknown()

func (*DelEdgeReply) XXX_Marshal

func (m *DelEdgeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelEdgeReply) XXX_Merge

func (m *DelEdgeReply) XXX_Merge(src proto.Message)

func (*DelEdgeReply) XXX_Size

func (m *DelEdgeReply) XXX_Size() int

func (*DelEdgeReply) XXX_Unmarshal

func (m *DelEdgeReply) XXX_Unmarshal(b []byte) error

type DelEdgeReq

type DelEdgeReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	EdgeName             string   `protobuf:"bytes,2,opt,name=edgeName,proto3" json:"edgeName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelEdgeReq) Descriptor

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

func (*DelEdgeReq) GetEdgeName

func (m *DelEdgeReq) GetEdgeName() string

func (*DelEdgeReq) GetUserId

func (m *DelEdgeReq) GetUserId() string

func (*DelEdgeReq) ProtoMessage

func (*DelEdgeReq) ProtoMessage()

func (*DelEdgeReq) Reset

func (m *DelEdgeReq) Reset()

func (*DelEdgeReq) String

func (m *DelEdgeReq) String() string

func (*DelEdgeReq) XXX_DiscardUnknown

func (m *DelEdgeReq) XXX_DiscardUnknown()

func (*DelEdgeReq) XXX_Marshal

func (m *DelEdgeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelEdgeReq) XXX_Merge

func (m *DelEdgeReq) XXX_Merge(src proto.Message)

func (*DelEdgeReq) XXX_Size

func (m *DelEdgeReq) XXX_Size() int

func (*DelEdgeReq) XXX_Unmarshal

func (m *DelEdgeReq) XXX_Unmarshal(b []byte) error

type DelRouteReply

type DelRouteReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelRouteReply) Descriptor

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

func (*DelRouteReply) GetCode

func (m *DelRouteReply) GetCode() int32

func (*DelRouteReply) GetMessage

func (m *DelRouteReply) GetMessage() string

func (*DelRouteReply) ProtoMessage

func (*DelRouteReply) ProtoMessage()

func (*DelRouteReply) Reset

func (m *DelRouteReply) Reset()

func (*DelRouteReply) String

func (m *DelRouteReply) String() string

func (*DelRouteReply) XXX_DiscardUnknown

func (m *DelRouteReply) XXX_DiscardUnknown()

func (*DelRouteReply) XXX_Marshal

func (m *DelRouteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelRouteReply) XXX_Merge

func (m *DelRouteReply) XXX_Merge(src proto.Message)

func (*DelRouteReply) XXX_Size

func (m *DelRouteReply) XXX_Size() int

func (*DelRouteReply) XXX_Unmarshal

func (m *DelRouteReply) XXX_Unmarshal(b []byte) error

type DelRouteReq

type DelRouteReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Id                   string   `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DelRouteReq) Descriptor

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

func (*DelRouteReq) GetId

func (m *DelRouteReq) GetId() string

func (*DelRouteReq) GetUserId

func (m *DelRouteReq) GetUserId() string

func (*DelRouteReq) ProtoMessage

func (*DelRouteReq) ProtoMessage()

func (*DelRouteReq) Reset

func (m *DelRouteReq) Reset()

func (*DelRouteReq) String

func (m *DelRouteReq) String() string

func (*DelRouteReq) XXX_DiscardUnknown

func (m *DelRouteReq) XXX_DiscardUnknown()

func (*DelRouteReq) XXX_Marshal

func (m *DelRouteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelRouteReq) XXX_Merge

func (m *DelRouteReq) XXX_Merge(src proto.Message)

func (*DelRouteReq) XXX_Size

func (m *DelRouteReq) XXX_Size() int

func (*DelRouteReq) XXX_Unmarshal

func (m *DelRouteReq) XXX_Unmarshal(b []byte) error

type EdgeInfo

type EdgeInfo struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	CspType              CSPType  `protobuf:"varint,3,opt,name=cspType,proto3,enum=controller.CSPType" json:"cspType,omitempty"`
	PublicIP             string   `protobuf:"bytes,4,opt,name=publicIP,proto3" json:"publicIP,omitempty"`
	PublicPort           int32    `protobuf:"varint,5,opt,name=publicPort,proto3" json:"publicPort,omitempty"`
	Cidr                 string   `protobuf:"bytes,6,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Comment              string   `protobuf:"bytes,7,opt,name=comment,proto3" json:"comment,omitempty"`
	ActiveAt             int64    `protobuf:"varint,8,opt,name=activeAt,proto3" json:"activeAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EdgeInfo) Descriptor

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

func (*EdgeInfo) GetActiveAt

func (m *EdgeInfo) GetActiveAt() int64

func (*EdgeInfo) GetCidr

func (m *EdgeInfo) GetCidr() string

func (*EdgeInfo) GetComment

func (m *EdgeInfo) GetComment() string

func (*EdgeInfo) GetCspType

func (m *EdgeInfo) GetCspType() CSPType

func (*EdgeInfo) GetName

func (m *EdgeInfo) GetName() string

func (*EdgeInfo) GetPublicIP

func (m *EdgeInfo) GetPublicIP() string

func (*EdgeInfo) GetPublicPort

func (m *EdgeInfo) GetPublicPort() int32

func (*EdgeInfo) GetUserId

func (m *EdgeInfo) GetUserId() string

func (*EdgeInfo) ProtoMessage

func (*EdgeInfo) ProtoMessage()

func (*EdgeInfo) Reset

func (m *EdgeInfo) Reset()

func (*EdgeInfo) String

func (m *EdgeInfo) String() string

func (*EdgeInfo) XXX_DiscardUnknown

func (m *EdgeInfo) XXX_DiscardUnknown()

func (*EdgeInfo) XXX_Marshal

func (m *EdgeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EdgeInfo) XXX_Merge

func (m *EdgeInfo) XXX_Merge(src proto.Message)

func (*EdgeInfo) XXX_Size

func (m *EdgeInfo) XXX_Size() int

func (*EdgeInfo) XXX_Unmarshal

func (m *EdgeInfo) XXX_Unmarshal(b []byte) error

type GetCSPListReply

type GetCSPListReply struct {
	Code                 int32      `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	CspInfo              []*CSPInfo `protobuf:"bytes,3,rep,name=cspInfo,proto3" json:"cspInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*GetCSPListReply) Descriptor

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

func (*GetCSPListReply) GetCode

func (m *GetCSPListReply) GetCode() int32

func (*GetCSPListReply) GetCspInfo

func (m *GetCSPListReply) GetCspInfo() []*CSPInfo

func (*GetCSPListReply) GetMessage

func (m *GetCSPListReply) GetMessage() string

func (*GetCSPListReply) ProtoMessage

func (*GetCSPListReply) ProtoMessage()

func (*GetCSPListReply) Reset

func (m *GetCSPListReply) Reset()

func (*GetCSPListReply) String

func (m *GetCSPListReply) String() string

func (*GetCSPListReply) XXX_DiscardUnknown

func (m *GetCSPListReply) XXX_DiscardUnknown()

func (*GetCSPListReply) XXX_Marshal

func (m *GetCSPListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCSPListReply) XXX_Merge

func (m *GetCSPListReply) XXX_Merge(src proto.Message)

func (*GetCSPListReply) XXX_Size

func (m *GetCSPListReply) XXX_Size() int

func (*GetCSPListReply) XXX_Unmarshal

func (m *GetCSPListReply) XXX_Unmarshal(b []byte) error

type GetCSPListReq

type GetCSPListReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetCSPListReq) Descriptor

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

func (*GetCSPListReq) GetUserId

func (m *GetCSPListReq) GetUserId() string

func (*GetCSPListReq) ProtoMessage

func (*GetCSPListReq) ProtoMessage()

func (*GetCSPListReq) Reset

func (m *GetCSPListReq) Reset()

func (*GetCSPListReq) String

func (m *GetCSPListReq) String() string

func (*GetCSPListReq) XXX_DiscardUnknown

func (m *GetCSPListReq) XXX_DiscardUnknown()

func (*GetCSPListReq) XXX_Marshal

func (m *GetCSPListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCSPListReq) XXX_Merge

func (m *GetCSPListReq) XXX_Merge(src proto.Message)

func (*GetCSPListReq) XXX_Size

func (m *GetCSPListReq) XXX_Size() int

func (*GetCSPListReq) XXX_Unmarshal

func (m *GetCSPListReq) XXX_Unmarshal(b []byte) error

type GetEdgeListReply

type GetEdgeListReply struct {
	Code                 int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Edges                []*EdgeInfo `protobuf:"bytes,3,rep,name=edges,proto3" json:"edges,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetEdgeListReply) Descriptor

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

func (*GetEdgeListReply) GetCode

func (m *GetEdgeListReply) GetCode() int32

func (*GetEdgeListReply) GetEdges

func (m *GetEdgeListReply) GetEdges() []*EdgeInfo

func (*GetEdgeListReply) GetMessage

func (m *GetEdgeListReply) GetMessage() string

func (*GetEdgeListReply) ProtoMessage

func (*GetEdgeListReply) ProtoMessage()

func (*GetEdgeListReply) Reset

func (m *GetEdgeListReply) Reset()

func (*GetEdgeListReply) String

func (m *GetEdgeListReply) String() string

func (*GetEdgeListReply) XXX_DiscardUnknown

func (m *GetEdgeListReply) XXX_DiscardUnknown()

func (*GetEdgeListReply) XXX_Marshal

func (m *GetEdgeListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEdgeListReply) XXX_Merge

func (m *GetEdgeListReply) XXX_Merge(src proto.Message)

func (*GetEdgeListReply) XXX_Size

func (m *GetEdgeListReply) XXX_Size() int

func (*GetEdgeListReply) XXX_Unmarshal

func (m *GetEdgeListReply) XXX_Unmarshal(b []byte) error

type GetEdgeListReq

type GetEdgeListReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetEdgeListReq) Descriptor

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

func (*GetEdgeListReq) GetUserId

func (m *GetEdgeListReq) GetUserId() string

func (*GetEdgeListReq) ProtoMessage

func (*GetEdgeListReq) ProtoMessage()

func (*GetEdgeListReq) Reset

func (m *GetEdgeListReq) Reset()

func (*GetEdgeListReq) String

func (m *GetEdgeListReq) String() string

func (*GetEdgeListReq) XXX_DiscardUnknown

func (m *GetEdgeListReq) XXX_DiscardUnknown()

func (*GetEdgeListReq) XXX_Marshal

func (m *GetEdgeListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEdgeListReq) XXX_Merge

func (m *GetEdgeListReq) XXX_Merge(src proto.Message)

func (*GetEdgeListReq) XXX_Size

func (m *GetEdgeListReq) XXX_Size() int

func (*GetEdgeListReq) XXX_Unmarshal

func (m *GetEdgeListReq) XXX_Unmarshal(b []byte) error

type GetStatReply

type GetStatReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Stats                []*Stat  `protobuf:"bytes,3,rep,name=stats,proto3" json:"stats,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStatReply) Descriptor

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

func (*GetStatReply) GetCode

func (m *GetStatReply) GetCode() int32

func (*GetStatReply) GetMessage

func (m *GetStatReply) GetMessage() string

func (*GetStatReply) GetStats

func (m *GetStatReply) GetStats() []*Stat

func (*GetStatReply) ProtoMessage

func (*GetStatReply) ProtoMessage()

func (*GetStatReply) Reset

func (m *GetStatReply) Reset()

func (*GetStatReply) String

func (m *GetStatReply) String() string

func (*GetStatReply) XXX_DiscardUnknown

func (m *GetStatReply) XXX_DiscardUnknown()

func (*GetStatReply) XXX_Marshal

func (m *GetStatReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStatReply) XXX_Merge

func (m *GetStatReply) XXX_Merge(src proto.Message)

func (*GetStatReply) XXX_Size

func (m *GetStatReply) XXX_Size() int

func (*GetStatReply) XXX_Unmarshal

func (m *GetStatReply) XXX_Unmarshal(b []byte) error

type GetStatReq

type GetStatReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	EdgeName             string   `protobuf:"bytes,2,opt,name=edgeName,proto3" json:"edgeName,omitempty"`
	From                 int64    `protobuf:"varint,3,opt,name=from,proto3" json:"from,omitempty"`
	Count                int32    `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetStatReq) Descriptor

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

func (*GetStatReq) GetCount

func (m *GetStatReq) GetCount() int32

func (*GetStatReq) GetDirection

func (m *GetStatReq) GetDirection() int32

func (*GetStatReq) GetEdgeName

func (m *GetStatReq) GetEdgeName() string

func (*GetStatReq) GetFrom

func (m *GetStatReq) GetFrom() int64

func (*GetStatReq) GetUserId

func (m *GetStatReq) GetUserId() string

func (*GetStatReq) ProtoMessage

func (*GetStatReq) ProtoMessage()

func (*GetStatReq) Reset

func (m *GetStatReq) Reset()

func (*GetStatReq) String

func (m *GetStatReq) String() string

func (*GetStatReq) XXX_DiscardUnknown

func (m *GetStatReq) XXX_DiscardUnknown()

func (*GetStatReq) XXX_Marshal

func (m *GetStatReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStatReq) XXX_Merge

func (m *GetStatReq) XXX_Merge(src proto.Message)

func (*GetStatReq) XXX_Size

func (m *GetStatReq) XXX_Size() int

func (*GetStatReq) XXX_Unmarshal

func (m *GetStatReq) XXX_Unmarshal(b []byte) error

type GetUserBySecretReply

type GetUserBySecretReply struct {
	Code                 int32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	UserInfo             *UserInfo `protobuf:"bytes,3,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetUserBySecretReply) Descriptor

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

func (*GetUserBySecretReply) GetCode

func (m *GetUserBySecretReply) GetCode() int32

func (*GetUserBySecretReply) GetMessage

func (m *GetUserBySecretReply) GetMessage() string

func (*GetUserBySecretReply) GetUserInfo

func (m *GetUserBySecretReply) GetUserInfo() *UserInfo

func (*GetUserBySecretReply) ProtoMessage

func (*GetUserBySecretReply) ProtoMessage()

func (*GetUserBySecretReply) Reset

func (m *GetUserBySecretReply) Reset()

func (*GetUserBySecretReply) String

func (m *GetUserBySecretReply) String() string

func (*GetUserBySecretReply) XXX_DiscardUnknown

func (m *GetUserBySecretReply) XXX_DiscardUnknown()

func (*GetUserBySecretReply) XXX_Marshal

func (m *GetUserBySecretReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserBySecretReply) XXX_Merge

func (m *GetUserBySecretReply) XXX_Merge(src proto.Message)

func (*GetUserBySecretReply) XXX_Size

func (m *GetUserBySecretReply) XXX_Size() int

func (*GetUserBySecretReply) XXX_Unmarshal

func (m *GetUserBySecretReply) XXX_Unmarshal(b []byte) error

type GetUserBySecretReq

type GetUserBySecretReq struct {
	Secret               string   `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserBySecretReq) Descriptor

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

func (*GetUserBySecretReq) GetSecret

func (m *GetUserBySecretReq) GetSecret() string

func (*GetUserBySecretReq) ProtoMessage

func (*GetUserBySecretReq) ProtoMessage()

func (*GetUserBySecretReq) Reset

func (m *GetUserBySecretReq) Reset()

func (*GetUserBySecretReq) String

func (m *GetUserBySecretReq) String() string

func (*GetUserBySecretReq) XXX_DiscardUnknown

func (m *GetUserBySecretReq) XXX_DiscardUnknown()

func (*GetUserBySecretReq) XXX_Marshal

func (m *GetUserBySecretReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserBySecretReq) XXX_Merge

func (m *GetUserBySecretReq) XXX_Merge(src proto.Message)

func (*GetUserBySecretReq) XXX_Size

func (m *GetUserBySecretReq) XXX_Size() int

func (*GetUserBySecretReq) XXX_Unmarshal

func (m *GetUserBySecretReq) XXX_Unmarshal(b []byte) error

type GetUserByTokenReply

type GetUserByTokenReply struct {
	Code                 int32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data                 *UserInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetUserByTokenReply) Descriptor

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

func (*GetUserByTokenReply) GetCode

func (m *GetUserByTokenReply) GetCode() int32

func (*GetUserByTokenReply) GetData

func (m *GetUserByTokenReply) GetData() *UserInfo

func (*GetUserByTokenReply) GetMessage

func (m *GetUserByTokenReply) GetMessage() string

func (*GetUserByTokenReply) ProtoMessage

func (*GetUserByTokenReply) ProtoMessage()

func (*GetUserByTokenReply) Reset

func (m *GetUserByTokenReply) Reset()

func (*GetUserByTokenReply) String

func (m *GetUserByTokenReply) String() string

func (*GetUserByTokenReply) XXX_DiscardUnknown

func (m *GetUserByTokenReply) XXX_DiscardUnknown()

func (*GetUserByTokenReply) XXX_Marshal

func (m *GetUserByTokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserByTokenReply) XXX_Merge

func (m *GetUserByTokenReply) XXX_Merge(src proto.Message)

func (*GetUserByTokenReply) XXX_Size

func (m *GetUserByTokenReply) XXX_Size() int

func (*GetUserByTokenReply) XXX_Unmarshal

func (m *GetUserByTokenReply) XXX_Unmarshal(b []byte) error

type GetUserByTokenReq

type GetUserByTokenReq struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserByTokenReq) Descriptor

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

func (*GetUserByTokenReq) GetToken

func (m *GetUserByTokenReq) GetToken() string

func (*GetUserByTokenReq) ProtoMessage

func (*GetUserByTokenReq) ProtoMessage()

func (*GetUserByTokenReq) Reset

func (m *GetUserByTokenReq) Reset()

func (*GetUserByTokenReq) String

func (m *GetUserByTokenReq) String() string

func (*GetUserByTokenReq) XXX_DiscardUnknown

func (m *GetUserByTokenReq) XXX_DiscardUnknown()

func (*GetUserByTokenReq) XXX_Marshal

func (m *GetUserByTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserByTokenReq) XXX_Merge

func (m *GetUserByTokenReq) XXX_Merge(src proto.Message)

func (*GetUserByTokenReq) XXX_Size

func (m *GetUserByTokenReq) XXX_Size() int

func (*GetUserByTokenReq) XXX_Unmarshal

func (m *GetUserByTokenReq) XXX_Unmarshal(b []byte) error

type GetUserInfoReply

type GetUserInfoReply struct {
	Code                 int32     `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	UserInfo             *UserInfo `protobuf:"bytes,3,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*GetUserInfoReply) Descriptor

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

func (*GetUserInfoReply) GetCode

func (m *GetUserInfoReply) GetCode() int32

func (*GetUserInfoReply) GetMessage

func (m *GetUserInfoReply) GetMessage() string

func (*GetUserInfoReply) GetUserInfo

func (m *GetUserInfoReply) GetUserInfo() *UserInfo

func (*GetUserInfoReply) ProtoMessage

func (*GetUserInfoReply) ProtoMessage()

func (*GetUserInfoReply) Reset

func (m *GetUserInfoReply) Reset()

func (*GetUserInfoReply) String

func (m *GetUserInfoReply) String() string

func (*GetUserInfoReply) XXX_DiscardUnknown

func (m *GetUserInfoReply) XXX_DiscardUnknown()

func (*GetUserInfoReply) XXX_Marshal

func (m *GetUserInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserInfoReply) XXX_Merge

func (m *GetUserInfoReply) XXX_Merge(src proto.Message)

func (*GetUserInfoReply) XXX_Size

func (m *GetUserInfoReply) XXX_Size() int

func (*GetUserInfoReply) XXX_Unmarshal

func (m *GetUserInfoReply) XXX_Unmarshal(b []byte) error

type GetUserInfoReq

type GetUserInfoReq struct {
	UserName             string   `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserInfoReq) Descriptor

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

func (*GetUserInfoReq) GetPassword

func (m *GetUserInfoReq) GetPassword() string

func (*GetUserInfoReq) GetUserName

func (m *GetUserInfoReq) GetUserName() string

func (*GetUserInfoReq) ProtoMessage

func (*GetUserInfoReq) ProtoMessage()

func (*GetUserInfoReq) Reset

func (m *GetUserInfoReq) Reset()

func (*GetUserInfoReq) String

func (m *GetUserInfoReq) String() string

func (*GetUserInfoReq) XXX_DiscardUnknown

func (m *GetUserInfoReq) XXX_DiscardUnknown()

func (*GetUserInfoReq) XXX_Marshal

func (m *GetUserInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserInfoReq) XXX_Merge

func (m *GetUserInfoReq) XXX_Merge(src proto.Message)

func (*GetUserInfoReq) XXX_Size

func (m *GetUserInfoReq) XXX_Size() int

func (*GetUserInfoReq) XXX_Unmarshal

func (m *GetUserInfoReq) XXX_Unmarshal(b []byte) error

type GetUserRoutesReply

type GetUserRoutesReply struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Routes               []*Route `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserRoutesReply) Descriptor

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

func (*GetUserRoutesReply) GetCode

func (m *GetUserRoutesReply) GetCode() int32

func (*GetUserRoutesReply) GetMessage

func (m *GetUserRoutesReply) GetMessage() string

func (*GetUserRoutesReply) GetRoutes

func (m *GetUserRoutesReply) GetRoutes() []*Route

func (*GetUserRoutesReply) ProtoMessage

func (*GetUserRoutesReply) ProtoMessage()

func (*GetUserRoutesReply) Reset

func (m *GetUserRoutesReply) Reset()

func (*GetUserRoutesReply) String

func (m *GetUserRoutesReply) String() string

func (*GetUserRoutesReply) XXX_DiscardUnknown

func (m *GetUserRoutesReply) XXX_DiscardUnknown()

func (*GetUserRoutesReply) XXX_Marshal

func (m *GetUserRoutesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserRoutesReply) XXX_Merge

func (m *GetUserRoutesReply) XXX_Merge(src proto.Message)

func (*GetUserRoutesReply) XXX_Size

func (m *GetUserRoutesReply) XXX_Size() int

func (*GetUserRoutesReply) XXX_Unmarshal

func (m *GetUserRoutesReply) XXX_Unmarshal(b []byte) error

type GetUserRoutesReq

type GetUserRoutesReq struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserRoutesReq) Descriptor

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

func (*GetUserRoutesReq) GetUserId

func (m *GetUserRoutesReq) GetUserId() string

func (*GetUserRoutesReq) ProtoMessage

func (*GetUserRoutesReq) ProtoMessage()

func (*GetUserRoutesReq) Reset

func (m *GetUserRoutesReq) Reset()

func (*GetUserRoutesReq) String

func (m *GetUserRoutesReq) String() string

func (*GetUserRoutesReq) XXX_DiscardUnknown

func (m *GetUserRoutesReq) XXX_DiscardUnknown()

func (*GetUserRoutesReq) XXX_Marshal

func (m *GetUserRoutesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetUserRoutesReq) XXX_Merge

func (m *GetUserRoutesReq) XXX_Merge(src proto.Message)

func (*GetUserRoutesReq) XXX_Size

func (m *GetUserRoutesReq) XXX_Size() int

func (*GetUserRoutesReq) XXX_Unmarshal

func (m *GetUserRoutesReq) XXX_Unmarshal(b []byte) error

type Route

type Route struct {
	Cidr                 string   `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Nexthop              string   `protobuf:"bytes,2,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Route) Descriptor

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

func (*Route) GetCidr

func (m *Route) GetCidr() string

func (*Route) GetNexthop

func (m *Route) GetNexthop() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Route) XXX_Merge

func (m *Route) XXX_Merge(src proto.Message)

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

func (m *Route) XXX_Unmarshal(b []byte) error

type Stat

type Stat struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	EdgeName             string   `protobuf:"bytes,2,opt,name=edgeName,proto3" json:"edgeName,omitempty"`
	Cpu                  int64    `protobuf:"varint,3,opt,name=cpu,proto3" json:"cpu,omitempty"`
	Mem                  int64    `protobuf:"varint,4,opt,name=mem,proto3" json:"mem,omitempty"`
	TrafficIn            int64    `protobuf:"varint,5,opt,name=trafficIn,proto3" json:"trafficIn,omitempty"`
	TrafficOut           int64    `protobuf:"varint,6,opt,name=trafficOut,proto3" json:"trafficOut,omitempty"`
	Timestamp            int64    `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Stat) Descriptor

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

func (*Stat) GetCpu

func (m *Stat) GetCpu() int64

func (*Stat) GetEdgeName

func (m *Stat) GetEdgeName() string

func (*Stat) GetMem

func (m *Stat) GetMem() int64

func (*Stat) GetTimestamp

func (m *Stat) GetTimestamp() int64

func (*Stat) GetTrafficIn

func (m *Stat) GetTrafficIn() int64

func (*Stat) GetTrafficOut

func (m *Stat) GetTrafficOut() int64

func (*Stat) GetUserId

func (m *Stat) GetUserId() string

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) Reset

func (m *Stat) Reset()

func (*Stat) String

func (m *Stat) String() string

func (*Stat) XXX_DiscardUnknown

func (m *Stat) XXX_DiscardUnknown()

func (*Stat) XXX_Marshal

func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stat) XXX_Merge

func (m *Stat) XXX_Merge(src proto.Message)

func (*Stat) XXX_Size

func (m *Stat) XXX_Size() int

func (*Stat) XXX_Unmarshal

func (m *Stat) XXX_Unmarshal(b []byte) error

type UnimplementedControllerServiceServer

type UnimplementedControllerServiceServer struct {
}

UnimplementedControllerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedControllerServiceServer) AddCSP

func (*UnimplementedControllerServiceServer) AddEdge

func (*UnimplementedControllerServiceServer) AddRoute

func (*UnimplementedControllerServiceServer) DelCSP

func (*UnimplementedControllerServiceServer) DelEdge

func (*UnimplementedControllerServiceServer) DelRoute

func (*UnimplementedControllerServiceServer) GetCSPList

func (*UnimplementedControllerServiceServer) GetEdgeList

func (*UnimplementedControllerServiceServer) GetStat

func (*UnimplementedControllerServiceServer) GetUserRoutes

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServiceServer) AddUser

func (*UnimplementedUserServiceServer) Authorize

func (*UnimplementedUserServiceServer) GetUserBySecret

func (*UnimplementedUserServiceServer) GetUserByToken

func (*UnimplementedUserServiceServer) GetUserInfo

type UserInfo

type UserInfo struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	UserName             string   `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
	UserEmail            string   `protobuf:"bytes,3,opt,name=userEmail,proto3" json:"userEmail,omitempty"`
	UserSecret           string   `protobuf:"bytes,4,opt,name=userSecret,proto3" json:"userSecret,omitempty"`
	CreatedAt            int64    `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	About                string   `protobuf:"bytes,6,opt,name=about,proto3" json:"about,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserInfo) Descriptor

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

func (*UserInfo) GetAbout

func (m *UserInfo) GetAbout() string

func (*UserInfo) GetCreatedAt

func (m *UserInfo) GetCreatedAt() int64

func (*UserInfo) GetUserEmail

func (m *UserInfo) GetUserEmail() string

func (*UserInfo) GetUserId

func (m *UserInfo) GetUserId() string

func (*UserInfo) GetUserName

func (m *UserInfo) GetUserName() string

func (*UserInfo) GetUserSecret

func (m *UserInfo) GetUserSecret() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

func (*UserInfo) XXX_DiscardUnknown

func (m *UserInfo) XXX_DiscardUnknown()

func (*UserInfo) XXX_Marshal

func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserInfo) XXX_Merge

func (m *UserInfo) XXX_Merge(src proto.Message)

func (*UserInfo) XXX_Size

func (m *UserInfo) XXX_Size() int

func (*UserInfo) XXX_Unmarshal

func (m *UserInfo) XXX_Unmarshal(b []byte) error

type UserServiceClient

type UserServiceClient interface {
	GetUserBySecret(ctx context.Context, in *GetUserBySecretReq, opts ...grpc.CallOption) (*GetUserBySecretReply, error)
	AddUser(ctx context.Context, in *AddUserReq, opts ...grpc.CallOption) (*AddUserReply, error)
	GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoReply, error)
	Authorize(ctx context.Context, in *AuthorizeReq, opts ...grpc.CallOption) (*AuthorizeReply, error)
	GetUserByToken(ctx context.Context, in *GetUserByTokenReq, opts ...grpc.CallOption) (*GetUserByTokenReply, error)
}

UserServiceClient is the client API for UserService service.

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

func NewUserServiceClient

func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient

type UserServiceServer

UserServiceServer is the server API for UserService service.

Jump to

Keyboard shortcuts

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