Documentation ¶
Index ¶
- Variables
- func RegisterControllerServiceServer(s *grpc.Server, srv ControllerServiceServer)
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type AddCSPReply
- func (*AddCSPReply) Descriptor() ([]byte, []int)
- func (m *AddCSPReply) GetCode() int32
- func (m *AddCSPReply) GetData() *CSPInfo
- func (m *AddCSPReply) GetMessage() string
- func (*AddCSPReply) ProtoMessage()
- func (m *AddCSPReply) Reset()
- func (m *AddCSPReply) String() string
- func (m *AddCSPReply) XXX_DiscardUnknown()
- func (m *AddCSPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddCSPReply) XXX_Merge(src proto.Message)
- func (m *AddCSPReply) XXX_Size() int
- func (m *AddCSPReply) XXX_Unmarshal(b []byte) error
- type AddCSPReq
- func (*AddCSPReq) Descriptor() ([]byte, []int)
- func (m *AddCSPReq) GetAccessKey() string
- func (m *AddCSPReq) GetAccessSecret() string
- func (m *AddCSPReq) GetCspType() CSPType
- func (m *AddCSPReq) GetUserId() string
- func (*AddCSPReq) ProtoMessage()
- func (m *AddCSPReq) Reset()
- func (m *AddCSPReq) String() string
- func (m *AddCSPReq) XXX_DiscardUnknown()
- func (m *AddCSPReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddCSPReq) XXX_Merge(src proto.Message)
- func (m *AddCSPReq) XXX_Size() int
- func (m *AddCSPReq) XXX_Unmarshal(b []byte) error
- type AddEdgeReply
- func (*AddEdgeReply) Descriptor() ([]byte, []int)
- func (m *AddEdgeReply) GetCode() int32
- func (m *AddEdgeReply) GetData() *EdgeInfo
- func (m *AddEdgeReply) GetMessage() string
- func (*AddEdgeReply) ProtoMessage()
- func (m *AddEdgeReply) Reset()
- func (m *AddEdgeReply) String() string
- func (m *AddEdgeReply) XXX_DiscardUnknown()
- func (m *AddEdgeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddEdgeReply) XXX_Merge(src proto.Message)
- func (m *AddEdgeReply) XXX_Size() int
- func (m *AddEdgeReply) XXX_Unmarshal(b []byte) error
- type AddEdgeReq
- func (*AddEdgeReq) Descriptor() ([]byte, []int)
- func (m *AddEdgeReq) GetCidr() string
- func (m *AddEdgeReq) GetComment() string
- func (m *AddEdgeReq) GetCspType() CSPType
- func (m *AddEdgeReq) GetName() string
- func (m *AddEdgeReq) GetPublicIP() string
- func (m *AddEdgeReq) GetPublicPort() int32
- func (m *AddEdgeReq) GetUserId() string
- func (*AddEdgeReq) ProtoMessage()
- func (m *AddEdgeReq) Reset()
- func (m *AddEdgeReq) String() string
- func (m *AddEdgeReq) XXX_DiscardUnknown()
- func (m *AddEdgeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddEdgeReq) XXX_Merge(src proto.Message)
- func (m *AddEdgeReq) XXX_Size() int
- func (m *AddEdgeReq) XXX_Unmarshal(b []byte) error
- type AddRouteReply
- func (*AddRouteReply) Descriptor() ([]byte, []int)
- func (m *AddRouteReply) GetCode() int32
- func (m *AddRouteReply) GetMessage() string
- func (*AddRouteReply) ProtoMessage()
- func (m *AddRouteReply) Reset()
- func (m *AddRouteReply) String() string
- func (m *AddRouteReply) XXX_DiscardUnknown()
- func (m *AddRouteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRouteReply) XXX_Merge(src proto.Message)
- func (m *AddRouteReply) XXX_Size() int
- func (m *AddRouteReply) XXX_Unmarshal(b []byte) error
- type AddRouteReq
- func (*AddRouteReq) Descriptor() ([]byte, []int)
- func (m *AddRouteReq) GetCidr() string
- func (m *AddRouteReq) GetEdgeId() string
- func (m *AddRouteReq) GetName() string
- func (m *AddRouteReq) GetNexthop() string
- func (m *AddRouteReq) GetUserId() string
- func (*AddRouteReq) ProtoMessage()
- func (m *AddRouteReq) Reset()
- func (m *AddRouteReq) String() string
- func (m *AddRouteReq) XXX_DiscardUnknown()
- func (m *AddRouteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRouteReq) XXX_Merge(src proto.Message)
- func (m *AddRouteReq) XXX_Size() int
- func (m *AddRouteReq) XXX_Unmarshal(b []byte) error
- type AddUserReply
- func (*AddUserReply) Descriptor() ([]byte, []int)
- func (m *AddUserReply) GetCode() int32
- func (m *AddUserReply) GetMessage() string
- func (m *AddUserReply) GetUserInfo() *UserInfo
- func (*AddUserReply) ProtoMessage()
- func (m *AddUserReply) Reset()
- func (m *AddUserReply) String() string
- func (m *AddUserReply) XXX_DiscardUnknown()
- func (m *AddUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddUserReply) XXX_Merge(src proto.Message)
- func (m *AddUserReply) XXX_Size() int
- func (m *AddUserReply) XXX_Unmarshal(b []byte) error
- type AddUserReq
- func (*AddUserReq) Descriptor() ([]byte, []int)
- func (m *AddUserReq) GetAbout() string
- func (m *AddUserReq) GetEmail() string
- func (m *AddUserReq) GetPassword() string
- func (m *AddUserReq) GetUserName() string
- func (*AddUserReq) ProtoMessage()
- func (m *AddUserReq) Reset()
- func (m *AddUserReq) String() string
- func (m *AddUserReq) XXX_DiscardUnknown()
- func (m *AddUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddUserReq) XXX_Merge(src proto.Message)
- func (m *AddUserReq) XXX_Size() int
- func (m *AddUserReq) XXX_Unmarshal(b []byte) error
- type AuthorizeReply
- func (*AuthorizeReply) Descriptor() ([]byte, []int)
- func (m *AuthorizeReply) GetCode() int32
- func (m *AuthorizeReply) GetData() *AuthorizeReplyBody
- func (m *AuthorizeReply) GetMessage() string
- func (*AuthorizeReply) ProtoMessage()
- func (m *AuthorizeReply) Reset()
- func (m *AuthorizeReply) String() string
- func (m *AuthorizeReply) XXX_DiscardUnknown()
- func (m *AuthorizeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeReply) XXX_Merge(src proto.Message)
- func (m *AuthorizeReply) XXX_Size() int
- func (m *AuthorizeReply) XXX_Unmarshal(b []byte) error
- type AuthorizeReplyBody
- func (*AuthorizeReplyBody) Descriptor() ([]byte, []int)
- func (m *AuthorizeReplyBody) GetExpiredIn() int64
- func (m *AuthorizeReplyBody) GetToken() string
- func (m *AuthorizeReplyBody) GetUserId() string
- func (*AuthorizeReplyBody) ProtoMessage()
- func (m *AuthorizeReplyBody) Reset()
- func (m *AuthorizeReplyBody) String() string
- func (m *AuthorizeReplyBody) XXX_DiscardUnknown()
- func (m *AuthorizeReplyBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeReplyBody) XXX_Merge(src proto.Message)
- func (m *AuthorizeReplyBody) XXX_Size() int
- func (m *AuthorizeReplyBody) XXX_Unmarshal(b []byte) error
- type AuthorizeReq
- func (*AuthorizeReq) Descriptor() ([]byte, []int)
- func (m *AuthorizeReq) GetPassword() string
- func (m *AuthorizeReq) GetUsername() string
- func (*AuthorizeReq) ProtoMessage()
- func (m *AuthorizeReq) Reset()
- func (m *AuthorizeReq) String() string
- func (m *AuthorizeReq) XXX_DiscardUnknown()
- func (m *AuthorizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeReq) XXX_Merge(src proto.Message)
- func (m *AuthorizeReq) XXX_Size() int
- func (m *AuthorizeReq) XXX_Unmarshal(b []byte) error
- type CSPInfo
- func (*CSPInfo) Descriptor() ([]byte, []int)
- func (m *CSPInfo) GetAccessKey() string
- func (m *CSPInfo) GetAccessSecret() string
- func (m *CSPInfo) GetCspType() CSPType
- func (*CSPInfo) ProtoMessage()
- func (m *CSPInfo) Reset()
- func (m *CSPInfo) String() string
- func (m *CSPInfo) XXX_DiscardUnknown()
- func (m *CSPInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CSPInfo) XXX_Merge(src proto.Message)
- func (m *CSPInfo) XXX_Size() int
- func (m *CSPInfo) XXX_Unmarshal(b []byte) error
- type CSPType
- type ControllerServiceClient
- type ControllerServiceServer
- type DelCSPReply
- func (*DelCSPReply) Descriptor() ([]byte, []int)
- func (m *DelCSPReply) GetCode() int32
- func (m *DelCSPReply) GetMessage() string
- func (*DelCSPReply) ProtoMessage()
- func (m *DelCSPReply) Reset()
- func (m *DelCSPReply) String() string
- func (m *DelCSPReply) XXX_DiscardUnknown()
- func (m *DelCSPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelCSPReply) XXX_Merge(src proto.Message)
- func (m *DelCSPReply) XXX_Size() int
- func (m *DelCSPReply) XXX_Unmarshal(b []byte) error
- type DelCSPReq
- func (*DelCSPReq) Descriptor() ([]byte, []int)
- func (m *DelCSPReq) GetCspType() CSPType
- func (m *DelCSPReq) GetUserId() string
- func (*DelCSPReq) ProtoMessage()
- func (m *DelCSPReq) Reset()
- func (m *DelCSPReq) String() string
- func (m *DelCSPReq) XXX_DiscardUnknown()
- func (m *DelCSPReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelCSPReq) XXX_Merge(src proto.Message)
- func (m *DelCSPReq) XXX_Size() int
- func (m *DelCSPReq) XXX_Unmarshal(b []byte) error
- type DelEdgeReply
- func (*DelEdgeReply) Descriptor() ([]byte, []int)
- func (m *DelEdgeReply) GetCode() int32
- func (m *DelEdgeReply) GetMessage() string
- func (*DelEdgeReply) ProtoMessage()
- func (m *DelEdgeReply) Reset()
- func (m *DelEdgeReply) String() string
- func (m *DelEdgeReply) XXX_DiscardUnknown()
- func (m *DelEdgeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelEdgeReply) XXX_Merge(src proto.Message)
- func (m *DelEdgeReply) XXX_Size() int
- func (m *DelEdgeReply) XXX_Unmarshal(b []byte) error
- type DelEdgeReq
- func (*DelEdgeReq) Descriptor() ([]byte, []int)
- func (m *DelEdgeReq) GetEdgeName() string
- func (m *DelEdgeReq) GetUserId() string
- func (*DelEdgeReq) ProtoMessage()
- func (m *DelEdgeReq) Reset()
- func (m *DelEdgeReq) String() string
- func (m *DelEdgeReq) XXX_DiscardUnknown()
- func (m *DelEdgeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelEdgeReq) XXX_Merge(src proto.Message)
- func (m *DelEdgeReq) XXX_Size() int
- func (m *DelEdgeReq) XXX_Unmarshal(b []byte) error
- type DelRouteReply
- func (*DelRouteReply) Descriptor() ([]byte, []int)
- func (m *DelRouteReply) GetCode() int32
- func (m *DelRouteReply) GetMessage() string
- func (*DelRouteReply) ProtoMessage()
- func (m *DelRouteReply) Reset()
- func (m *DelRouteReply) String() string
- func (m *DelRouteReply) XXX_DiscardUnknown()
- func (m *DelRouteReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelRouteReply) XXX_Merge(src proto.Message)
- func (m *DelRouteReply) XXX_Size() int
- func (m *DelRouteReply) XXX_Unmarshal(b []byte) error
- type DelRouteReq
- func (*DelRouteReq) Descriptor() ([]byte, []int)
- func (m *DelRouteReq) GetId() string
- func (m *DelRouteReq) GetUserId() string
- func (*DelRouteReq) ProtoMessage()
- func (m *DelRouteReq) Reset()
- func (m *DelRouteReq) String() string
- func (m *DelRouteReq) XXX_DiscardUnknown()
- func (m *DelRouteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelRouteReq) XXX_Merge(src proto.Message)
- func (m *DelRouteReq) XXX_Size() int
- func (m *DelRouteReq) XXX_Unmarshal(b []byte) error
- type EdgeInfo
- func (*EdgeInfo) Descriptor() ([]byte, []int)
- func (m *EdgeInfo) GetActiveAt() int64
- func (m *EdgeInfo) GetCidr() string
- func (m *EdgeInfo) GetComment() string
- func (m *EdgeInfo) GetCspType() CSPType
- func (m *EdgeInfo) GetName() string
- func (m *EdgeInfo) GetPublicIP() string
- func (m *EdgeInfo) GetPublicPort() int32
- func (m *EdgeInfo) GetUserId() string
- func (*EdgeInfo) ProtoMessage()
- func (m *EdgeInfo) Reset()
- func (m *EdgeInfo) String() string
- func (m *EdgeInfo) XXX_DiscardUnknown()
- func (m *EdgeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EdgeInfo) XXX_Merge(src proto.Message)
- func (m *EdgeInfo) XXX_Size() int
- func (m *EdgeInfo) XXX_Unmarshal(b []byte) error
- type GetCSPListReply
- func (*GetCSPListReply) Descriptor() ([]byte, []int)
- func (m *GetCSPListReply) GetCode() int32
- func (m *GetCSPListReply) GetCspInfo() []*CSPInfo
- func (m *GetCSPListReply) GetMessage() string
- func (*GetCSPListReply) ProtoMessage()
- func (m *GetCSPListReply) Reset()
- func (m *GetCSPListReply) String() string
- func (m *GetCSPListReply) XXX_DiscardUnknown()
- func (m *GetCSPListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCSPListReply) XXX_Merge(src proto.Message)
- func (m *GetCSPListReply) XXX_Size() int
- func (m *GetCSPListReply) XXX_Unmarshal(b []byte) error
- type GetCSPListReq
- func (*GetCSPListReq) Descriptor() ([]byte, []int)
- func (m *GetCSPListReq) GetUserId() string
- func (*GetCSPListReq) ProtoMessage()
- func (m *GetCSPListReq) Reset()
- func (m *GetCSPListReq) String() string
- func (m *GetCSPListReq) XXX_DiscardUnknown()
- func (m *GetCSPListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCSPListReq) XXX_Merge(src proto.Message)
- func (m *GetCSPListReq) XXX_Size() int
- func (m *GetCSPListReq) XXX_Unmarshal(b []byte) error
- type GetEdgeListReply
- func (*GetEdgeListReply) Descriptor() ([]byte, []int)
- func (m *GetEdgeListReply) GetCode() int32
- func (m *GetEdgeListReply) GetEdges() []*EdgeInfo
- func (m *GetEdgeListReply) GetMessage() string
- func (*GetEdgeListReply) ProtoMessage()
- func (m *GetEdgeListReply) Reset()
- func (m *GetEdgeListReply) String() string
- func (m *GetEdgeListReply) XXX_DiscardUnknown()
- func (m *GetEdgeListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEdgeListReply) XXX_Merge(src proto.Message)
- func (m *GetEdgeListReply) XXX_Size() int
- func (m *GetEdgeListReply) XXX_Unmarshal(b []byte) error
- type GetEdgeListReq
- func (*GetEdgeListReq) Descriptor() ([]byte, []int)
- func (m *GetEdgeListReq) GetUserId() string
- func (*GetEdgeListReq) ProtoMessage()
- func (m *GetEdgeListReq) Reset()
- func (m *GetEdgeListReq) String() string
- func (m *GetEdgeListReq) XXX_DiscardUnknown()
- func (m *GetEdgeListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEdgeListReq) XXX_Merge(src proto.Message)
- func (m *GetEdgeListReq) XXX_Size() int
- func (m *GetEdgeListReq) XXX_Unmarshal(b []byte) error
- type GetStatReply
- func (*GetStatReply) Descriptor() ([]byte, []int)
- func (m *GetStatReply) GetCode() int32
- func (m *GetStatReply) GetMessage() string
- func (m *GetStatReply) GetStats() []*Stat
- func (*GetStatReply) ProtoMessage()
- func (m *GetStatReply) Reset()
- func (m *GetStatReply) String() string
- func (m *GetStatReply) XXX_DiscardUnknown()
- func (m *GetStatReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStatReply) XXX_Merge(src proto.Message)
- func (m *GetStatReply) XXX_Size() int
- func (m *GetStatReply) XXX_Unmarshal(b []byte) error
- type GetStatReq
- func (*GetStatReq) Descriptor() ([]byte, []int)
- func (m *GetStatReq) GetCount() int32
- func (m *GetStatReq) GetDirection() int32
- func (m *GetStatReq) GetEdgeName() string
- func (m *GetStatReq) GetFrom() int64
- func (m *GetStatReq) GetUserId() string
- func (*GetStatReq) ProtoMessage()
- func (m *GetStatReq) Reset()
- func (m *GetStatReq) String() string
- func (m *GetStatReq) XXX_DiscardUnknown()
- func (m *GetStatReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetStatReq) XXX_Merge(src proto.Message)
- func (m *GetStatReq) XXX_Size() int
- func (m *GetStatReq) XXX_Unmarshal(b []byte) error
- type GetUserBySecretReply
- func (*GetUserBySecretReply) Descriptor() ([]byte, []int)
- func (m *GetUserBySecretReply) GetCode() int32
- func (m *GetUserBySecretReply) GetMessage() string
- func (m *GetUserBySecretReply) GetUserInfo() *UserInfo
- func (*GetUserBySecretReply) ProtoMessage()
- func (m *GetUserBySecretReply) Reset()
- func (m *GetUserBySecretReply) String() string
- func (m *GetUserBySecretReply) XXX_DiscardUnknown()
- func (m *GetUserBySecretReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserBySecretReply) XXX_Merge(src proto.Message)
- func (m *GetUserBySecretReply) XXX_Size() int
- func (m *GetUserBySecretReply) XXX_Unmarshal(b []byte) error
- type GetUserBySecretReq
- func (*GetUserBySecretReq) Descriptor() ([]byte, []int)
- func (m *GetUserBySecretReq) GetSecret() string
- func (*GetUserBySecretReq) ProtoMessage()
- func (m *GetUserBySecretReq) Reset()
- func (m *GetUserBySecretReq) String() string
- func (m *GetUserBySecretReq) XXX_DiscardUnknown()
- func (m *GetUserBySecretReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserBySecretReq) XXX_Merge(src proto.Message)
- func (m *GetUserBySecretReq) XXX_Size() int
- func (m *GetUserBySecretReq) XXX_Unmarshal(b []byte) error
- type GetUserByTokenReply
- func (*GetUserByTokenReply) Descriptor() ([]byte, []int)
- func (m *GetUserByTokenReply) GetCode() int32
- func (m *GetUserByTokenReply) GetData() *UserInfo
- func (m *GetUserByTokenReply) GetMessage() string
- func (*GetUserByTokenReply) ProtoMessage()
- func (m *GetUserByTokenReply) Reset()
- func (m *GetUserByTokenReply) String() string
- func (m *GetUserByTokenReply) XXX_DiscardUnknown()
- func (m *GetUserByTokenReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserByTokenReply) XXX_Merge(src proto.Message)
- func (m *GetUserByTokenReply) XXX_Size() int
- func (m *GetUserByTokenReply) XXX_Unmarshal(b []byte) error
- type GetUserByTokenReq
- func (*GetUserByTokenReq) Descriptor() ([]byte, []int)
- func (m *GetUserByTokenReq) GetToken() string
- func (*GetUserByTokenReq) ProtoMessage()
- func (m *GetUserByTokenReq) Reset()
- func (m *GetUserByTokenReq) String() string
- func (m *GetUserByTokenReq) XXX_DiscardUnknown()
- func (m *GetUserByTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserByTokenReq) XXX_Merge(src proto.Message)
- func (m *GetUserByTokenReq) XXX_Size() int
- func (m *GetUserByTokenReq) XXX_Unmarshal(b []byte) error
- type GetUserInfoReply
- func (*GetUserInfoReply) Descriptor() ([]byte, []int)
- func (m *GetUserInfoReply) GetCode() int32
- func (m *GetUserInfoReply) GetMessage() string
- func (m *GetUserInfoReply) GetUserInfo() *UserInfo
- func (*GetUserInfoReply) ProtoMessage()
- func (m *GetUserInfoReply) Reset()
- func (m *GetUserInfoReply) String() string
- func (m *GetUserInfoReply) XXX_DiscardUnknown()
- func (m *GetUserInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserInfoReply) XXX_Merge(src proto.Message)
- func (m *GetUserInfoReply) XXX_Size() int
- func (m *GetUserInfoReply) XXX_Unmarshal(b []byte) error
- type GetUserInfoReq
- func (*GetUserInfoReq) Descriptor() ([]byte, []int)
- func (m *GetUserInfoReq) GetPassword() string
- func (m *GetUserInfoReq) GetUserName() string
- func (*GetUserInfoReq) ProtoMessage()
- func (m *GetUserInfoReq) Reset()
- func (m *GetUserInfoReq) String() string
- func (m *GetUserInfoReq) XXX_DiscardUnknown()
- func (m *GetUserInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserInfoReq) XXX_Merge(src proto.Message)
- func (m *GetUserInfoReq) XXX_Size() int
- func (m *GetUserInfoReq) XXX_Unmarshal(b []byte) error
- type GetUserRoutesReply
- func (*GetUserRoutesReply) Descriptor() ([]byte, []int)
- func (m *GetUserRoutesReply) GetCode() int32
- func (m *GetUserRoutesReply) GetMessage() string
- func (m *GetUserRoutesReply) GetRoutes() []*Route
- func (*GetUserRoutesReply) ProtoMessage()
- func (m *GetUserRoutesReply) Reset()
- func (m *GetUserRoutesReply) String() string
- func (m *GetUserRoutesReply) XXX_DiscardUnknown()
- func (m *GetUserRoutesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRoutesReply) XXX_Merge(src proto.Message)
- func (m *GetUserRoutesReply) XXX_Size() int
- func (m *GetUserRoutesReply) XXX_Unmarshal(b []byte) error
- type GetUserRoutesReq
- func (*GetUserRoutesReq) Descriptor() ([]byte, []int)
- func (m *GetUserRoutesReq) GetUserId() string
- func (*GetUserRoutesReq) ProtoMessage()
- func (m *GetUserRoutesReq) Reset()
- func (m *GetUserRoutesReq) String() string
- func (m *GetUserRoutesReq) XXX_DiscardUnknown()
- func (m *GetUserRoutesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRoutesReq) XXX_Merge(src proto.Message)
- func (m *GetUserRoutesReq) XXX_Size() int
- func (m *GetUserRoutesReq) XXX_Unmarshal(b []byte) error
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetCidr() string
- func (m *Route) GetNexthop() string
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- func (m *Route) XXX_DiscardUnknown()
- func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Route) XXX_Merge(src proto.Message)
- func (m *Route) XXX_Size() int
- func (m *Route) XXX_Unmarshal(b []byte) error
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)
- func (m *Stat) GetCpu() int64
- func (m *Stat) GetEdgeName() string
- func (m *Stat) GetMem() int64
- func (m *Stat) GetTimestamp() int64
- func (m *Stat) GetTrafficIn() int64
- func (m *Stat) GetTrafficOut() int64
- func (m *Stat) GetUserId() string
- func (*Stat) ProtoMessage()
- func (m *Stat) Reset()
- func (m *Stat) String() string
- func (m *Stat) XXX_DiscardUnknown()
- func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Stat) XXX_Merge(src proto.Message)
- func (m *Stat) XXX_Size() int
- func (m *Stat) XXX_Unmarshal(b []byte) error
- type UnimplementedControllerServiceServer
- func (*UnimplementedControllerServiceServer) AddCSP(ctx context.Context, req *AddCSPReq) (*AddCSPReply, error)
- func (*UnimplementedControllerServiceServer) AddEdge(ctx context.Context, req *AddEdgeReq) (*AddEdgeReply, error)
- func (*UnimplementedControllerServiceServer) AddRoute(ctx context.Context, req *AddRouteReq) (*AddRouteReply, error)
- func (*UnimplementedControllerServiceServer) DelCSP(ctx context.Context, req *DelCSPReq) (*DelCSPReply, error)
- func (*UnimplementedControllerServiceServer) DelEdge(ctx context.Context, req *DelEdgeReq) (*DelEdgeReply, error)
- func (*UnimplementedControllerServiceServer) DelRoute(ctx context.Context, req *DelRouteReq) (*DelRouteReply, error)
- func (*UnimplementedControllerServiceServer) GetCSPList(ctx context.Context, req *GetCSPListReq) (*GetCSPListReply, error)
- func (*UnimplementedControllerServiceServer) GetEdgeList(ctx context.Context, req *GetEdgeListReq) (*GetEdgeListReply, error)
- func (*UnimplementedControllerServiceServer) GetStat(ctx context.Context, req *GetStatReq) (*GetStatReply, error)
- func (*UnimplementedControllerServiceServer) GetUserRoutes(ctx context.Context, req *GetUserRoutesReq) (*GetUserRoutesReply, error)
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) AddUser(ctx context.Context, req *AddUserReq) (*AddUserReply, error)
- func (*UnimplementedUserServiceServer) Authorize(ctx context.Context, req *AuthorizeReq) (*AuthorizeReply, error)
- func (*UnimplementedUserServiceServer) GetUserBySecret(ctx context.Context, req *GetUserBySecretReq) (*GetUserBySecretReply, error)
- func (*UnimplementedUserServiceServer) GetUserByToken(ctx context.Context, req *GetUserByTokenReq) (*GetUserByTokenReply, error)
- func (*UnimplementedUserServiceServer) GetUserInfo(ctx context.Context, req *GetUserInfoReq) (*GetUserInfoReply, error)
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)
- func (m *UserInfo) GetAbout() string
- func (m *UserInfo) GetCreatedAt() int64
- func (m *UserInfo) GetUserEmail() string
- func (m *UserInfo) GetUserId() string
- func (m *UserInfo) GetUserName() string
- func (m *UserInfo) GetUserSecret() string
- func (*UserInfo) ProtoMessage()
- func (m *UserInfo) Reset()
- func (m *UserInfo) String() string
- func (m *UserInfo) XXX_DiscardUnknown()
- func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserInfo) XXX_Merge(src proto.Message)
- func (m *UserInfo) XXX_Size() int
- func (m *UserInfo) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
var CSPType_name = map[int32]string{
0: "NONE",
1: "ALI",
2: "QQ",
3: "AWS",
}
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) GetAccessKey ¶
func (*AddCSPReq) GetAccessSecret ¶
func (*AddCSPReq) GetCspType ¶
func (*AddCSPReq) ProtoMessage ¶
func (*AddCSPReq) ProtoMessage()
func (*AddCSPReq) XXX_DiscardUnknown ¶
func (m *AddCSPReq) XXX_DiscardUnknown()
func (*AddCSPReq) XXX_Marshal ¶
func (*AddCSPReq) XXX_Unmarshal ¶
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) GetAccessKey ¶
func (*CSPInfo) GetAccessSecret ¶
func (*CSPInfo) GetCspType ¶
func (*CSPInfo) ProtoMessage ¶
func (*CSPInfo) ProtoMessage()
func (*CSPInfo) XXX_DiscardUnknown ¶
func (m *CSPInfo) XXX_DiscardUnknown()
func (*CSPInfo) XXX_Marshal ¶
func (*CSPInfo) XXX_Unmarshal ¶
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 ¶
type ControllerServiceServer interface { GetEdgeList(context.Context, *GetEdgeListReq) (*GetEdgeListReply, error) AddEdge(context.Context, *AddEdgeReq) (*AddEdgeReply, error) DelEdge(context.Context, *DelEdgeReq) (*DelEdgeReply, error) GetCSPList(context.Context, *GetCSPListReq) (*GetCSPListReply, error) AddCSP(context.Context, *AddCSPReq) (*AddCSPReply, error) DelCSP(context.Context, *DelCSPReq) (*DelCSPReply, error) GetStat(context.Context, *GetStatReq) (*GetStatReply, error) AddRoute(context.Context, *AddRouteReq) (*AddRouteReply, error) DelRoute(context.Context, *DelRouteReq) (*DelRouteReply, error) GetUserRoutes(context.Context, *GetUserRoutesReq) (*GetUserRoutesReply, error) }
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) GetCspType ¶
func (*DelCSPReq) ProtoMessage ¶
func (*DelCSPReq) ProtoMessage()
func (*DelCSPReq) XXX_DiscardUnknown ¶
func (m *DelCSPReq) XXX_DiscardUnknown()
func (*DelCSPReq) XXX_Marshal ¶
func (*DelCSPReq) XXX_Unmarshal ¶
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) GetActiveAt ¶
func (*EdgeInfo) GetComment ¶
func (*EdgeInfo) GetCspType ¶
func (*EdgeInfo) GetPublicIP ¶
func (*EdgeInfo) GetPublicPort ¶
func (*EdgeInfo) ProtoMessage ¶
func (*EdgeInfo) ProtoMessage()
func (*EdgeInfo) XXX_DiscardUnknown ¶
func (m *EdgeInfo) XXX_DiscardUnknown()
func (*EdgeInfo) XXX_Marshal ¶
func (*EdgeInfo) XXX_Unmarshal ¶
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) GetNexthop ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) XXX_DiscardUnknown ¶
func (m *Route) XXX_DiscardUnknown()
func (*Route) XXX_Marshal ¶
func (*Route) XXX_Unmarshal ¶
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) GetEdgeName ¶
func (*Stat) GetTimestamp ¶
func (*Stat) GetTrafficIn ¶
func (*Stat) GetTrafficOut ¶
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
func (*Stat) XXX_DiscardUnknown ¶
func (m *Stat) XXX_DiscardUnknown()
func (*Stat) XXX_Unmarshal ¶
type UnimplementedControllerServiceServer ¶
type UnimplementedControllerServiceServer struct { }
UnimplementedControllerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedControllerServiceServer) AddCSP ¶
func (*UnimplementedControllerServiceServer) AddCSP(ctx context.Context, req *AddCSPReq) (*AddCSPReply, error)
func (*UnimplementedControllerServiceServer) AddEdge ¶
func (*UnimplementedControllerServiceServer) AddEdge(ctx context.Context, req *AddEdgeReq) (*AddEdgeReply, error)
func (*UnimplementedControllerServiceServer) AddRoute ¶
func (*UnimplementedControllerServiceServer) AddRoute(ctx context.Context, req *AddRouteReq) (*AddRouteReply, error)
func (*UnimplementedControllerServiceServer) DelCSP ¶
func (*UnimplementedControllerServiceServer) DelCSP(ctx context.Context, req *DelCSPReq) (*DelCSPReply, error)
func (*UnimplementedControllerServiceServer) DelEdge ¶
func (*UnimplementedControllerServiceServer) DelEdge(ctx context.Context, req *DelEdgeReq) (*DelEdgeReply, error)
func (*UnimplementedControllerServiceServer) DelRoute ¶
func (*UnimplementedControllerServiceServer) DelRoute(ctx context.Context, req *DelRouteReq) (*DelRouteReply, error)
func (*UnimplementedControllerServiceServer) GetCSPList ¶
func (*UnimplementedControllerServiceServer) GetCSPList(ctx context.Context, req *GetCSPListReq) (*GetCSPListReply, error)
func (*UnimplementedControllerServiceServer) GetEdgeList ¶
func (*UnimplementedControllerServiceServer) GetEdgeList(ctx context.Context, req *GetEdgeListReq) (*GetEdgeListReply, error)
func (*UnimplementedControllerServiceServer) GetStat ¶
func (*UnimplementedControllerServiceServer) GetStat(ctx context.Context, req *GetStatReq) (*GetStatReply, error)
func (*UnimplementedControllerServiceServer) GetUserRoutes ¶
func (*UnimplementedControllerServiceServer) GetUserRoutes(ctx context.Context, req *GetUserRoutesReq) (*GetUserRoutesReply, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) AddUser ¶
func (*UnimplementedUserServiceServer) AddUser(ctx context.Context, req *AddUserReq) (*AddUserReply, error)
func (*UnimplementedUserServiceServer) Authorize ¶
func (*UnimplementedUserServiceServer) Authorize(ctx context.Context, req *AuthorizeReq) (*AuthorizeReply, error)
func (*UnimplementedUserServiceServer) GetUserBySecret ¶
func (*UnimplementedUserServiceServer) GetUserBySecret(ctx context.Context, req *GetUserBySecretReq) (*GetUserBySecretReply, error)
func (*UnimplementedUserServiceServer) GetUserByToken ¶
func (*UnimplementedUserServiceServer) GetUserByToken(ctx context.Context, req *GetUserByTokenReq) (*GetUserByTokenReply, error)
func (*UnimplementedUserServiceServer) GetUserInfo ¶
func (*UnimplementedUserServiceServer) GetUserInfo(ctx context.Context, req *GetUserInfoReq) (*GetUserInfoReply, error)
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) GetCreatedAt ¶
func (*UserInfo) GetUserEmail ¶
func (*UserInfo) GetUserName ¶
func (*UserInfo) GetUserSecret ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) XXX_DiscardUnknown ¶
func (m *UserInfo) XXX_DiscardUnknown()
func (*UserInfo) XXX_Marshal ¶
func (*UserInfo) XXX_Unmarshal ¶
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 ¶
type UserServiceServer interface { GetUserBySecret(context.Context, *GetUserBySecretReq) (*GetUserBySecretReply, error) AddUser(context.Context, *AddUserReq) (*AddUserReply, error) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoReply, error) Authorize(context.Context, *AuthorizeReq) (*AuthorizeReply, error) GetUserByToken(context.Context, *GetUserByTokenReq) (*GetUserByTokenReply, error) }
UserServiceServer is the server API for UserService service.