Documentation ¶
Index ¶
- Variables
- func RegisterUvpnClientServer(s grpc.ServiceRegistrar, srv UvpnClientServer)
- type AddAllUserPrivReq
- type AddAllUserPrivResp
- func (*AddAllUserPrivResp) Descriptor() ([]byte, []int)deprecated
- func (x *AddAllUserPrivResp) GetCode() uint32
- func (x *AddAllUserPrivResp) GetErrMsg() string
- func (x *AddAllUserPrivResp) GetUvpnCcd() []*UvpnPrivAttr
- func (*AddAllUserPrivResp) ProtoMessage()
- func (x *AddAllUserPrivResp) ProtoReflect() protoreflect.Message
- func (x *AddAllUserPrivResp) Reset()
- func (x *AddAllUserPrivResp) String() string
- type AddUserPrivReq
- func (*AddUserPrivReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserPrivReq) GetCidrs() []string
- func (x *AddUserPrivReq) GetRealName() string
- func (x *AddUserPrivReq) GetUsername() string
- func (*AddUserPrivReq) ProtoMessage()
- func (x *AddUserPrivReq) ProtoReflect() protoreflect.Message
- func (x *AddUserPrivReq) Reset()
- func (x *AddUserPrivReq) String() string
- type AddUserPrivResp
- func (*AddUserPrivResp) Descriptor() ([]byte, []int)deprecated
- func (x *AddUserPrivResp) GetCode() uint32
- func (x *AddUserPrivResp) GetErrMsg() string
- func (x *AddUserPrivResp) GetUvpnCcd() *UvpnPrivAttr
- func (*AddUserPrivResp) ProtoMessage()
- func (x *AddUserPrivResp) ProtoReflect() protoreflect.Message
- func (x *AddUserPrivResp) Reset()
- func (x *AddUserPrivResp) String() string
- type CleanUpAllUserCcdReq
- type CleanUpAllUserCcdResp
- func (*CleanUpAllUserCcdResp) Descriptor() ([]byte, []int)deprecated
- func (x *CleanUpAllUserCcdResp) GetCode() uint32
- func (x *CleanUpAllUserCcdResp) GetErrMsg() string
- func (*CleanUpAllUserCcdResp) ProtoMessage()
- func (x *CleanUpAllUserCcdResp) ProtoReflect() protoreflect.Message
- func (x *CleanUpAllUserCcdResp) Reset()
- func (x *CleanUpAllUserCcdResp) String() string
- type DelUserCcdReq
- type DelUserCcdResp
- func (*DelUserCcdResp) Descriptor() ([]byte, []int)deprecated
- func (x *DelUserCcdResp) GetCode() uint32
- func (x *DelUserCcdResp) GetErrMsg() string
- func (*DelUserCcdResp) ProtoMessage()
- func (x *DelUserCcdResp) ProtoReflect() protoreflect.Message
- func (x *DelUserCcdResp) Reset()
- func (x *DelUserCcdResp) String() string
- type GetUserPrivReq
- type GetUserPrivResp
- func (*GetUserPrivResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserPrivResp) GetCode() uint32
- func (x *GetUserPrivResp) GetErrMsg() string
- func (x *GetUserPrivResp) GetUvpnCcd() *UvpnPrivAttr
- func (*GetUserPrivResp) ProtoMessage()
- func (x *GetUserPrivResp) ProtoReflect() protoreflect.Message
- func (x *GetUserPrivResp) Reset()
- func (x *GetUserPrivResp) String() string
- type UnimplementedUvpnClientServer
- func (UnimplementedUvpnClientServer) AddAllUserPriv(context.Context, *AddAllUserPrivReq) (*AddAllUserPrivResp, error)
- func (UnimplementedUvpnClientServer) AddUserPriv(context.Context, *AddUserPrivReq) (*AddUserPrivResp, error)
- func (UnimplementedUvpnClientServer) CleanUpAllUserCcd(context.Context, *CleanUpAllUserCcdReq) (*CleanUpAllUserCcdResp, error)
- func (UnimplementedUvpnClientServer) DelUserCcd(context.Context, *DelUserCcdReq) (*DelUserCcdResp, error)
- func (UnimplementedUvpnClientServer) GetUserPriv(context.Context, *GetUserPrivReq) (*GetUserPrivResp, error)
- type UnsafeUvpnClientServer
- type UvpnClientClient
- type UvpnClientServer
- type UvpnPrivAttr
- func (*UvpnPrivAttr) Descriptor() ([]byte, []int)deprecated
- func (x *UvpnPrivAttr) GetCidrs() []string
- func (x *UvpnPrivAttr) GetUsername() string
- func (x *UvpnPrivAttr) GetVip() string
- func (*UvpnPrivAttr) ProtoMessage()
- func (x *UvpnPrivAttr) ProtoReflect() protoreflect.Message
- func (x *UvpnPrivAttr) Reset()
- func (x *UvpnPrivAttr) String() string
Constants ¶
This section is empty.
Variables ¶
var File_uvpn_proto protoreflect.FileDescriptor
var UvpnClient_ServiceDesc = grpc.ServiceDesc{ ServiceName: "uvpnpb.uvpnClient", HandlerType: (*UvpnClientServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserPriv", Handler: _UvpnClient_GetUserPriv_Handler, }, { MethodName: "AddUserPriv", Handler: _UvpnClient_AddUserPriv_Handler, }, { MethodName: "AddAllUserPriv", Handler: _UvpnClient_AddAllUserPriv_Handler, }, { MethodName: "DelUserCcd", Handler: _UvpnClient_DelUserCcd_Handler, }, { MethodName: "CleanUpAllUserCcd", Handler: _UvpnClient_CleanUpAllUserCcd_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "uvpn.proto", }
UvpnClient_ServiceDesc is the grpc.ServiceDesc for UvpnClient service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUvpnClientServer ¶
func RegisterUvpnClientServer(s grpc.ServiceRegistrar, srv UvpnClientServer)
Types ¶
type AddAllUserPrivReq ¶
type AddAllUserPrivReq struct { Cidrs []string `protobuf:"bytes,3,rep,name=cidrs,proto3" json:"cidrs,omitempty"` // 无类域间路由 // contains filtered or unexported fields }
func (*AddAllUserPrivReq) Descriptor
deprecated
func (*AddAllUserPrivReq) Descriptor() ([]byte, []int)
Deprecated: Use AddAllUserPrivReq.ProtoReflect.Descriptor instead.
func (*AddAllUserPrivReq) GetCidrs ¶
func (x *AddAllUserPrivReq) GetCidrs() []string
func (*AddAllUserPrivReq) ProtoMessage ¶
func (*AddAllUserPrivReq) ProtoMessage()
func (*AddAllUserPrivReq) ProtoReflect ¶
func (x *AddAllUserPrivReq) ProtoReflect() protoreflect.Message
func (*AddAllUserPrivReq) Reset ¶
func (x *AddAllUserPrivReq) Reset()
func (*AddAllUserPrivReq) String ¶
func (x *AddAllUserPrivReq) String() string
type AddAllUserPrivResp ¶
type AddAllUserPrivResp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` UvpnCcd []*UvpnPrivAttr `protobuf:"bytes,3,rep,name=uvpnCcd,proto3" json:"uvpnCcd,omitempty"` // contains filtered or unexported fields }
func (*AddAllUserPrivResp) Descriptor
deprecated
func (*AddAllUserPrivResp) Descriptor() ([]byte, []int)
Deprecated: Use AddAllUserPrivResp.ProtoReflect.Descriptor instead.
func (*AddAllUserPrivResp) GetCode ¶
func (x *AddAllUserPrivResp) GetCode() uint32
func (*AddAllUserPrivResp) GetErrMsg ¶
func (x *AddAllUserPrivResp) GetErrMsg() string
func (*AddAllUserPrivResp) GetUvpnCcd ¶
func (x *AddAllUserPrivResp) GetUvpnCcd() []*UvpnPrivAttr
func (*AddAllUserPrivResp) ProtoMessage ¶
func (*AddAllUserPrivResp) ProtoMessage()
func (*AddAllUserPrivResp) ProtoReflect ¶
func (x *AddAllUserPrivResp) ProtoReflect() protoreflect.Message
func (*AddAllUserPrivResp) Reset ¶
func (x *AddAllUserPrivResp) Reset()
func (*AddAllUserPrivResp) String ¶
func (x *AddAllUserPrivResp) String() string
type AddUserPrivReq ¶
type AddUserPrivReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` RealName string `protobuf:"bytes,2,opt,name=realName,proto3" json:"realName,omitempty"` Cidrs []string `protobuf:"bytes,3,rep,name=cidrs,proto3" json:"cidrs,omitempty"` // 无类域间路由 // contains filtered or unexported fields }
func (*AddUserPrivReq) Descriptor
deprecated
func (*AddUserPrivReq) Descriptor() ([]byte, []int)
Deprecated: Use AddUserPrivReq.ProtoReflect.Descriptor instead.
func (*AddUserPrivReq) GetCidrs ¶
func (x *AddUserPrivReq) GetCidrs() []string
func (*AddUserPrivReq) GetRealName ¶
func (x *AddUserPrivReq) GetRealName() string
func (*AddUserPrivReq) GetUsername ¶
func (x *AddUserPrivReq) GetUsername() string
func (*AddUserPrivReq) ProtoMessage ¶
func (*AddUserPrivReq) ProtoMessage()
func (*AddUserPrivReq) ProtoReflect ¶
func (x *AddUserPrivReq) ProtoReflect() protoreflect.Message
func (*AddUserPrivReq) Reset ¶
func (x *AddUserPrivReq) Reset()
func (*AddUserPrivReq) String ¶
func (x *AddUserPrivReq) String() string
type AddUserPrivResp ¶
type AddUserPrivResp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` UvpnCcd *UvpnPrivAttr `protobuf:"bytes,3,opt,name=uvpnCcd,proto3" json:"uvpnCcd,omitempty"` // contains filtered or unexported fields }
func (*AddUserPrivResp) Descriptor
deprecated
func (*AddUserPrivResp) Descriptor() ([]byte, []int)
Deprecated: Use AddUserPrivResp.ProtoReflect.Descriptor instead.
func (*AddUserPrivResp) GetCode ¶
func (x *AddUserPrivResp) GetCode() uint32
func (*AddUserPrivResp) GetErrMsg ¶
func (x *AddUserPrivResp) GetErrMsg() string
func (*AddUserPrivResp) GetUvpnCcd ¶
func (x *AddUserPrivResp) GetUvpnCcd() *UvpnPrivAttr
func (*AddUserPrivResp) ProtoMessage ¶
func (*AddUserPrivResp) ProtoMessage()
func (*AddUserPrivResp) ProtoReflect ¶
func (x *AddUserPrivResp) ProtoReflect() protoreflect.Message
func (*AddUserPrivResp) Reset ¶
func (x *AddUserPrivResp) Reset()
func (*AddUserPrivResp) String ¶
func (x *AddUserPrivResp) String() string
type CleanUpAllUserCcdReq ¶
type CleanUpAllUserCcdReq struct {
// contains filtered or unexported fields
}
func (*CleanUpAllUserCcdReq) Descriptor
deprecated
func (*CleanUpAllUserCcdReq) Descriptor() ([]byte, []int)
Deprecated: Use CleanUpAllUserCcdReq.ProtoReflect.Descriptor instead.
func (*CleanUpAllUserCcdReq) ProtoMessage ¶
func (*CleanUpAllUserCcdReq) ProtoMessage()
func (*CleanUpAllUserCcdReq) ProtoReflect ¶
func (x *CleanUpAllUserCcdReq) ProtoReflect() protoreflect.Message
func (*CleanUpAllUserCcdReq) Reset ¶
func (x *CleanUpAllUserCcdReq) Reset()
func (*CleanUpAllUserCcdReq) String ¶
func (x *CleanUpAllUserCcdReq) String() string
type CleanUpAllUserCcdResp ¶
type CleanUpAllUserCcdResp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*CleanUpAllUserCcdResp) Descriptor
deprecated
func (*CleanUpAllUserCcdResp) Descriptor() ([]byte, []int)
Deprecated: Use CleanUpAllUserCcdResp.ProtoReflect.Descriptor instead.
func (*CleanUpAllUserCcdResp) GetCode ¶
func (x *CleanUpAllUserCcdResp) GetCode() uint32
func (*CleanUpAllUserCcdResp) GetErrMsg ¶
func (x *CleanUpAllUserCcdResp) GetErrMsg() string
func (*CleanUpAllUserCcdResp) ProtoMessage ¶
func (*CleanUpAllUserCcdResp) ProtoMessage()
func (*CleanUpAllUserCcdResp) ProtoReflect ¶
func (x *CleanUpAllUserCcdResp) ProtoReflect() protoreflect.Message
func (*CleanUpAllUserCcdResp) Reset ¶
func (x *CleanUpAllUserCcdResp) Reset()
func (*CleanUpAllUserCcdResp) String ¶
func (x *CleanUpAllUserCcdResp) String() string
type DelUserCcdReq ¶
type DelUserCcdReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*DelUserCcdReq) Descriptor
deprecated
func (*DelUserCcdReq) Descriptor() ([]byte, []int)
Deprecated: Use DelUserCcdReq.ProtoReflect.Descriptor instead.
func (*DelUserCcdReq) GetUsername ¶
func (x *DelUserCcdReq) GetUsername() string
func (*DelUserCcdReq) ProtoMessage ¶
func (*DelUserCcdReq) ProtoMessage()
func (*DelUserCcdReq) ProtoReflect ¶
func (x *DelUserCcdReq) ProtoReflect() protoreflect.Message
func (*DelUserCcdReq) Reset ¶
func (x *DelUserCcdReq) Reset()
func (*DelUserCcdReq) String ¶
func (x *DelUserCcdReq) String() string
type DelUserCcdResp ¶
type DelUserCcdResp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` // contains filtered or unexported fields }
func (*DelUserCcdResp) Descriptor
deprecated
func (*DelUserCcdResp) Descriptor() ([]byte, []int)
Deprecated: Use DelUserCcdResp.ProtoReflect.Descriptor instead.
func (*DelUserCcdResp) GetCode ¶
func (x *DelUserCcdResp) GetCode() uint32
func (*DelUserCcdResp) GetErrMsg ¶
func (x *DelUserCcdResp) GetErrMsg() string
func (*DelUserCcdResp) ProtoMessage ¶
func (*DelUserCcdResp) ProtoMessage()
func (*DelUserCcdResp) ProtoReflect ¶
func (x *DelUserCcdResp) ProtoReflect() protoreflect.Message
func (*DelUserCcdResp) Reset ¶
func (x *DelUserCcdResp) Reset()
func (*DelUserCcdResp) String ¶
func (x *DelUserCcdResp) String() string
type GetUserPrivReq ¶
type GetUserPrivReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetUserPrivReq) Descriptor
deprecated
func (*GetUserPrivReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPrivReq.ProtoReflect.Descriptor instead.
func (*GetUserPrivReq) GetUsername ¶
func (x *GetUserPrivReq) GetUsername() string
func (*GetUserPrivReq) ProtoMessage ¶
func (*GetUserPrivReq) ProtoMessage()
func (*GetUserPrivReq) ProtoReflect ¶
func (x *GetUserPrivReq) ProtoReflect() protoreflect.Message
func (*GetUserPrivReq) Reset ¶
func (x *GetUserPrivReq) Reset()
func (*GetUserPrivReq) String ¶
func (x *GetUserPrivReq) String() string
type GetUserPrivResp ¶
type GetUserPrivResp struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` UvpnCcd *UvpnPrivAttr `protobuf:"bytes,3,opt,name=uvpnCcd,proto3" json:"uvpnCcd,omitempty"` // contains filtered or unexported fields }
func (*GetUserPrivResp) Descriptor
deprecated
func (*GetUserPrivResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserPrivResp.ProtoReflect.Descriptor instead.
func (*GetUserPrivResp) GetCode ¶
func (x *GetUserPrivResp) GetCode() uint32
func (*GetUserPrivResp) GetErrMsg ¶
func (x *GetUserPrivResp) GetErrMsg() string
func (*GetUserPrivResp) GetUvpnCcd ¶
func (x *GetUserPrivResp) GetUvpnCcd() *UvpnPrivAttr
func (*GetUserPrivResp) ProtoMessage ¶
func (*GetUserPrivResp) ProtoMessage()
func (*GetUserPrivResp) ProtoReflect ¶
func (x *GetUserPrivResp) ProtoReflect() protoreflect.Message
func (*GetUserPrivResp) Reset ¶
func (x *GetUserPrivResp) Reset()
func (*GetUserPrivResp) String ¶
func (x *GetUserPrivResp) String() string
type UnimplementedUvpnClientServer ¶
type UnimplementedUvpnClientServer struct { }
UnimplementedUvpnClientServer must be embedded to have forward compatible implementations.
func (UnimplementedUvpnClientServer) AddAllUserPriv ¶
func (UnimplementedUvpnClientServer) AddAllUserPriv(context.Context, *AddAllUserPrivReq) (*AddAllUserPrivResp, error)
func (UnimplementedUvpnClientServer) AddUserPriv ¶
func (UnimplementedUvpnClientServer) AddUserPriv(context.Context, *AddUserPrivReq) (*AddUserPrivResp, error)
func (UnimplementedUvpnClientServer) CleanUpAllUserCcd ¶
func (UnimplementedUvpnClientServer) CleanUpAllUserCcd(context.Context, *CleanUpAllUserCcdReq) (*CleanUpAllUserCcdResp, error)
func (UnimplementedUvpnClientServer) DelUserCcd ¶
func (UnimplementedUvpnClientServer) DelUserCcd(context.Context, *DelUserCcdReq) (*DelUserCcdResp, error)
func (UnimplementedUvpnClientServer) GetUserPriv ¶
func (UnimplementedUvpnClientServer) GetUserPriv(context.Context, *GetUserPrivReq) (*GetUserPrivResp, error)
type UnsafeUvpnClientServer ¶
type UnsafeUvpnClientServer interface {
// contains filtered or unexported methods
}
UnsafeUvpnClientServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UvpnClientServer will result in compilation errors.
type UvpnClientClient ¶
type UvpnClientClient interface { // GetUserPriv 获取用户权限 GetUserPriv(ctx context.Context, in *GetUserPrivReq, opts ...grpc.CallOption) (*GetUserPrivResp, error) // AddUserPriv 新增用户权限 AddUserPriv(ctx context.Context, in *AddUserPrivReq, opts ...grpc.CallOption) (*AddUserPrivResp, error) // AddAllUserPriv 新增所有用户权限 AddAllUserPriv(ctx context.Context, in *AddAllUserPrivReq, opts ...grpc.CallOption) (*AddAllUserPrivResp, error) // DelUserCcd 删除用户ccd文件 DelUserCcd(ctx context.Context, in *DelUserCcdReq, opts ...grpc.CallOption) (*DelUserCcdResp, error) // CleanUpAllUserCcd 清理所有用户ccd文件 CleanUpAllUserCcd(ctx context.Context, in *CleanUpAllUserCcdReq, opts ...grpc.CallOption) (*CleanUpAllUserCcdResp, error) }
UvpnClientClient is the client API for UvpnClient service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUvpnClientClient ¶
func NewUvpnClientClient(cc grpc.ClientConnInterface) UvpnClientClient
type UvpnClientServer ¶
type UvpnClientServer interface { // GetUserPriv 获取用户权限 GetUserPriv(context.Context, *GetUserPrivReq) (*GetUserPrivResp, error) // AddUserPriv 新增用户权限 AddUserPriv(context.Context, *AddUserPrivReq) (*AddUserPrivResp, error) // AddAllUserPriv 新增所有用户权限 AddAllUserPriv(context.Context, *AddAllUserPrivReq) (*AddAllUserPrivResp, error) // DelUserCcd 删除用户ccd文件 DelUserCcd(context.Context, *DelUserCcdReq) (*DelUserCcdResp, error) // CleanUpAllUserCcd 清理所有用户ccd文件 CleanUpAllUserCcd(context.Context, *CleanUpAllUserCcdReq) (*CleanUpAllUserCcdResp, error) // contains filtered or unexported methods }
UvpnClientServer is the server API for UvpnClient service. All implementations must embed UnimplementedUvpnClientServer for forward compatibility
type UvpnPrivAttr ¶
type UvpnPrivAttr struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Vip string `protobuf:"bytes,2,opt,name=vip,proto3" json:"vip,omitempty"` Cidrs []string `protobuf:"bytes,3,rep,name=cidrs,proto3" json:"cidrs,omitempty"` // 无类域间路由 // contains filtered or unexported fields }
UvpnPrivAttr uvpn权限属性
func (*UvpnPrivAttr) Descriptor
deprecated
func (*UvpnPrivAttr) Descriptor() ([]byte, []int)
Deprecated: Use UvpnPrivAttr.ProtoReflect.Descriptor instead.
func (*UvpnPrivAttr) GetCidrs ¶
func (x *UvpnPrivAttr) GetCidrs() []string
func (*UvpnPrivAttr) GetUsername ¶
func (x *UvpnPrivAttr) GetUsername() string
func (*UvpnPrivAttr) GetVip ¶
func (x *UvpnPrivAttr) GetVip() string
func (*UvpnPrivAttr) ProtoMessage ¶
func (*UvpnPrivAttr) ProtoMessage()
func (*UvpnPrivAttr) ProtoReflect ¶
func (x *UvpnPrivAttr) ProtoReflect() protoreflect.Message
func (*UvpnPrivAttr) Reset ¶
func (x *UvpnPrivAttr) Reset()
func (*UvpnPrivAttr) String ¶
func (x *UvpnPrivAttr) String() string