| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: user.proto
- /*
- Package pb is a generated protocol buffer package.
- It is generated from these files:
- user.proto
- vpn.proto
- network.proto
- It has these top-level messages:
- UserListRequest
- UserCreateRequest
- UserUpdateRequest
- UserDeleteRequest
- UserRenewRequest
- UserGenConfigRequest
- UserResponse
- UserGenConfigResponse
- VPNStatusRequest
- VPNInitRequest
- VPNUpdateRequest
- VPNStatusResponse
- VPNInitResponse
- VPNUpdateResponse
- NetworkCreateRequest
- NetworkListRequest
- NetworkDeleteRequest
- NetworkGetAllTypesRequest
- NetworkAssociateRequest
- NetworkDissociateRequest
- NetworkGetAssociatedUsersRequest
- Network
- NetworkType
- NetworkCreateResponse
- NetworkListResponse
- NetworkDeleteResponse
- NetworkGetAllTypesResponse
- NetworkAssociateResponse
- NetworkDissociateResponse
- NetworkGetAssociatedUsersResponse
- */
- package pb
- import proto "github.com/golang/protobuf/proto"
- import fmt "fmt"
- import math "math"
- import _ "google.golang.org/genproto/googleapis/api/annotations"
- import (
- context "golang.org/x/net/context"
- grpc "google.golang.org/grpc"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
- type UserUpdateRequest_GWPref int32
- const (
- UserUpdateRequest_NOPREF UserUpdateRequest_GWPref = 0
- UserUpdateRequest_NOGW UserUpdateRequest_GWPref = 1
- UserUpdateRequest_GW UserUpdateRequest_GWPref = 2
- )
- var UserUpdateRequest_GWPref_name = map[int32]string{
- 0: "NOPREF",
- 1: "NOGW",
- 2: "GW",
- }
- var UserUpdateRequest_GWPref_value = map[string]int32{
- "NOPREF": 0,
- "NOGW": 1,
- "GW": 2,
- }
- func (x UserUpdateRequest_GWPref) String() string {
- return proto.EnumName(UserUpdateRequest_GWPref_name, int32(x))
- }
- func (UserUpdateRequest_GWPref) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
- type UserUpdateRequest_StaticPref int32
- const (
- UserUpdateRequest_NOPREFSTATIC UserUpdateRequest_StaticPref = 0
- UserUpdateRequest_NOSTATIC UserUpdateRequest_StaticPref = 1
- UserUpdateRequest_STATIC UserUpdateRequest_StaticPref = 2
- )
- var UserUpdateRequest_StaticPref_name = map[int32]string{
- 0: "NOPREFSTATIC",
- 1: "NOSTATIC",
- 2: "STATIC",
- }
- var UserUpdateRequest_StaticPref_value = map[string]int32{
- "NOPREFSTATIC": 0,
- "NOSTATIC": 1,
- "STATIC": 2,
- }
- func (x UserUpdateRequest_StaticPref) String() string {
- return proto.EnumName(UserUpdateRequest_StaticPref_name, int32(x))
- }
- func (UserUpdateRequest_StaticPref) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor0, []int{2, 1}
- }
- type UserUpdateRequest_AdminPref int32
- const (
- UserUpdateRequest_NOPREFADMIN UserUpdateRequest_AdminPref = 0
- UserUpdateRequest_NOADMIN UserUpdateRequest_AdminPref = 1
- UserUpdateRequest_ADMIN UserUpdateRequest_AdminPref = 2
- )
- var UserUpdateRequest_AdminPref_name = map[int32]string{
- 0: "NOPREFADMIN",
- 1: "NOADMIN",
- 2: "ADMIN",
- }
- var UserUpdateRequest_AdminPref_value = map[string]int32{
- "NOPREFADMIN": 0,
- "NOADMIN": 1,
- "ADMIN": 2,
- }
- func (x UserUpdateRequest_AdminPref) String() string {
- return proto.EnumName(UserUpdateRequest_AdminPref_name, int32(x))
- }
- func (UserUpdateRequest_AdminPref) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor0, []int{2, 2}
- }
- type UserListRequest struct {
- }
- func (m *UserListRequest) Reset() { *m = UserListRequest{} }
- func (m *UserListRequest) String() string { return proto.CompactTextString(m) }
- func (*UserListRequest) ProtoMessage() {}
- func (*UserListRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
- type UserCreateRequest struct {
- Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"`
- NoGW bool `protobuf:"varint,3,opt,name=NoGW" json:"NoGW,omitempty"`
- HostID uint32 `protobuf:"varint,4,opt,name=HostID" json:"HostID,omitempty"`
- IsAdmin bool `protobuf:"varint,5,opt,name=IsAdmin" json:"IsAdmin,omitempty"`
- }
- func (m *UserCreateRequest) Reset() { *m = UserCreateRequest{} }
- func (m *UserCreateRequest) String() string { return proto.CompactTextString(m) }
- func (*UserCreateRequest) ProtoMessage() {}
- func (*UserCreateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
- func (m *UserCreateRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- func (m *UserCreateRequest) GetPassword() string {
- if m != nil {
- return m.Password
- }
- return ""
- }
- func (m *UserCreateRequest) GetNoGW() bool {
- if m != nil {
- return m.NoGW
- }
- return false
- }
- func (m *UserCreateRequest) GetHostID() uint32 {
- if m != nil {
- return m.HostID
- }
- return 0
- }
- func (m *UserCreateRequest) GetIsAdmin() bool {
- if m != nil {
- return m.IsAdmin
- }
- return false
- }
- type UserUpdateRequest struct {
- Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=Password" json:"Password,omitempty"`
- Gwpref UserUpdateRequest_GWPref `protobuf:"varint,3,opt,name=gwpref,enum=pb.UserUpdateRequest_GWPref" json:"gwpref,omitempty"`
- HostID uint32 `protobuf:"varint,4,opt,name=HostID" json:"HostID,omitempty"`
- Staticpref UserUpdateRequest_StaticPref `protobuf:"varint,5,opt,name=staticpref,enum=pb.UserUpdateRequest_StaticPref" json:"staticpref,omitempty"`
- Adminpref UserUpdateRequest_AdminPref `protobuf:"varint,6,opt,name=adminpref,enum=pb.UserUpdateRequest_AdminPref" json:"adminpref,omitempty"`
- }
- func (m *UserUpdateRequest) Reset() { *m = UserUpdateRequest{} }
- func (m *UserUpdateRequest) String() string { return proto.CompactTextString(m) }
- func (*UserUpdateRequest) ProtoMessage() {}
- func (*UserUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
- func (m *UserUpdateRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- func (m *UserUpdateRequest) GetPassword() string {
- if m != nil {
- return m.Password
- }
- return ""
- }
- func (m *UserUpdateRequest) GetGwpref() UserUpdateRequest_GWPref {
- if m != nil {
- return m.Gwpref
- }
- return UserUpdateRequest_NOPREF
- }
- func (m *UserUpdateRequest) GetHostID() uint32 {
- if m != nil {
- return m.HostID
- }
- return 0
- }
- func (m *UserUpdateRequest) GetStaticpref() UserUpdateRequest_StaticPref {
- if m != nil {
- return m.Staticpref
- }
- return UserUpdateRequest_NOPREFSTATIC
- }
- func (m *UserUpdateRequest) GetAdminpref() UserUpdateRequest_AdminPref {
- if m != nil {
- return m.Adminpref
- }
- return UserUpdateRequest_NOPREFADMIN
- }
- type UserDeleteRequest struct {
- Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
- }
- func (m *UserDeleteRequest) Reset() { *m = UserDeleteRequest{} }
- func (m *UserDeleteRequest) String() string { return proto.CompactTextString(m) }
- func (*UserDeleteRequest) ProtoMessage() {}
- func (*UserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
- func (m *UserDeleteRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type UserRenewRequest struct {
- Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
- }
- func (m *UserRenewRequest) Reset() { *m = UserRenewRequest{} }
- func (m *UserRenewRequest) String() string { return proto.CompactTextString(m) }
- func (*UserRenewRequest) ProtoMessage() {}
- func (*UserRenewRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
- func (m *UserRenewRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type UserGenConfigRequest struct {
- Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
- }
- func (m *UserGenConfigRequest) Reset() { *m = UserGenConfigRequest{} }
- func (m *UserGenConfigRequest) String() string { return proto.CompactTextString(m) }
- func (*UserGenConfigRequest) ProtoMessage() {}
- func (*UserGenConfigRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
- func (m *UserGenConfigRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type UserResponse struct {
- Users []*UserResponse_User `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
- }
- func (m *UserResponse) Reset() { *m = UserResponse{} }
- func (m *UserResponse) String() string { return proto.CompactTextString(m) }
- func (*UserResponse) ProtoMessage() {}
- func (*UserResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
- func (m *UserResponse) GetUsers() []*UserResponse_User {
- if m != nil {
- return m.Users
- }
- return nil
- }
- type UserResponse_User struct {
- Username string `protobuf:"bytes,1,opt,name=Username" json:"Username,omitempty"`
- ServerSerialNumber string `protobuf:"bytes,2,opt,name=ServerSerialNumber" json:"ServerSerialNumber,omitempty"`
- Cert string `protobuf:"bytes,3,opt,name=Cert" json:"Cert,omitempty"`
- CreatedAt string `protobuf:"bytes,4,opt,name=CreatedAt" json:"CreatedAt,omitempty"`
- IPNet string `protobuf:"bytes,5,opt,name=IPNet" json:"IPNet,omitempty"`
- NoGW bool `protobuf:"varint,6,opt,name=NoGW" json:"NoGW,omitempty"`
- HostID uint32 `protobuf:"varint,7,opt,name=HostID" json:"HostID,omitempty"`
- IsAdmin bool `protobuf:"varint,8,opt,name=IsAdmin" json:"IsAdmin,omitempty"`
- }
- func (m *UserResponse_User) Reset() { *m = UserResponse_User{} }
- func (m *UserResponse_User) String() string { return proto.CompactTextString(m) }
- func (*UserResponse_User) ProtoMessage() {}
- func (*UserResponse_User) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6, 0} }
- func (m *UserResponse_User) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- func (m *UserResponse_User) GetServerSerialNumber() string {
- if m != nil {
- return m.ServerSerialNumber
- }
- return ""
- }
- func (m *UserResponse_User) GetCert() string {
- if m != nil {
- return m.Cert
- }
- return ""
- }
- func (m *UserResponse_User) GetCreatedAt() string {
- if m != nil {
- return m.CreatedAt
- }
- return ""
- }
- func (m *UserResponse_User) GetIPNet() string {
- if m != nil {
- return m.IPNet
- }
- return ""
- }
- func (m *UserResponse_User) GetNoGW() bool {
- if m != nil {
- return m.NoGW
- }
- return false
- }
- func (m *UserResponse_User) GetHostID() uint32 {
- if m != nil {
- return m.HostID
- }
- return 0
- }
- func (m *UserResponse_User) GetIsAdmin() bool {
- if m != nil {
- return m.IsAdmin
- }
- return false
- }
- type UserGenConfigResponse struct {
- ClientConfig string `protobuf:"bytes,1,opt,name=ClientConfig" json:"ClientConfig,omitempty"`
- }
- func (m *UserGenConfigResponse) Reset() { *m = UserGenConfigResponse{} }
- func (m *UserGenConfigResponse) String() string { return proto.CompactTextString(m) }
- func (*UserGenConfigResponse) ProtoMessage() {}
- func (*UserGenConfigResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
- func (m *UserGenConfigResponse) GetClientConfig() string {
- if m != nil {
- return m.ClientConfig
- }
- return ""
- }
- func init() {
- proto.RegisterType((*UserListRequest)(nil), "pb.UserListRequest")
- proto.RegisterType((*UserCreateRequest)(nil), "pb.UserCreateRequest")
- proto.RegisterType((*UserUpdateRequest)(nil), "pb.UserUpdateRequest")
- proto.RegisterType((*UserDeleteRequest)(nil), "pb.UserDeleteRequest")
- proto.RegisterType((*UserRenewRequest)(nil), "pb.UserRenewRequest")
- proto.RegisterType((*UserGenConfigRequest)(nil), "pb.UserGenConfigRequest")
- proto.RegisterType((*UserResponse)(nil), "pb.UserResponse")
- proto.RegisterType((*UserResponse_User)(nil), "pb.UserResponse.User")
- proto.RegisterType((*UserGenConfigResponse)(nil), "pb.UserGenConfigResponse")
- proto.RegisterEnum("pb.UserUpdateRequest_GWPref", UserUpdateRequest_GWPref_name, UserUpdateRequest_GWPref_value)
- proto.RegisterEnum("pb.UserUpdateRequest_StaticPref", UserUpdateRequest_StaticPref_name, UserUpdateRequest_StaticPref_value)
- proto.RegisterEnum("pb.UserUpdateRequest_AdminPref", UserUpdateRequest_AdminPref_name, UserUpdateRequest_AdminPref_value)
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // Client API for UserService service
- type UserServiceClient interface {
- List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error)
- Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error)
- GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error)
- }
- type userServiceClient struct {
- cc *grpc.ClientConn
- }
- func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient {
- return &userServiceClient{cc}
- }
- func (c *userServiceClient) List(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := grpc.Invoke(ctx, "/pb.UserService/List", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Create(ctx context.Context, in *UserCreateRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := grpc.Invoke(ctx, "/pb.UserService/Create", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Update(ctx context.Context, in *UserUpdateRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := grpc.Invoke(ctx, "/pb.UserService/Update", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Delete(ctx context.Context, in *UserDeleteRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := grpc.Invoke(ctx, "/pb.UserService/Delete", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) Renew(ctx context.Context, in *UserRenewRequest, opts ...grpc.CallOption) (*UserResponse, error) {
- out := new(UserResponse)
- err := grpc.Invoke(ctx, "/pb.UserService/Renew", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *userServiceClient) GenConfig(ctx context.Context, in *UserGenConfigRequest, opts ...grpc.CallOption) (*UserGenConfigResponse, error) {
- out := new(UserGenConfigResponse)
- err := grpc.Invoke(ctx, "/pb.UserService/GenConfig", in, out, c.cc, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // Server API for UserService service
- type UserServiceServer interface {
- List(context.Context, *UserListRequest) (*UserResponse, error)
- Create(context.Context, *UserCreateRequest) (*UserResponse, error)
- Update(context.Context, *UserUpdateRequest) (*UserResponse, error)
- Delete(context.Context, *UserDeleteRequest) (*UserResponse, error)
- Renew(context.Context, *UserRenewRequest) (*UserResponse, error)
- GenConfig(context.Context, *UserGenConfigRequest) (*UserGenConfigResponse, error)
- }
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer) {
- s.RegisterService(&_UserService_serviceDesc, srv)
- }
- func _UserService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).List(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/List",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).List(ctx, req.(*UserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserCreateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Create(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Create",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Create(ctx, req.(*UserCreateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Update(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Update",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Update(ctx, req.(*UserUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserDeleteRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Delete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Delete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Delete(ctx, req.(*UserDeleteRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_Renew_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserRenewRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).Renew(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/Renew",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).Renew(ctx, req.(*UserRenewRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _UserService_GenConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(UserGenConfigRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(UserServiceServer).GenConfig(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.UserService/GenConfig",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(UserServiceServer).GenConfig(ctx, req.(*UserGenConfigRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _UserService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.UserService",
- HandlerType: (*UserServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "List",
- Handler: _UserService_List_Handler,
- },
- {
- MethodName: "Create",
- Handler: _UserService_Create_Handler,
- },
- {
- MethodName: "Update",
- Handler: _UserService_Update_Handler,
- },
- {
- MethodName: "Delete",
- Handler: _UserService_Delete_Handler,
- },
- {
- MethodName: "Renew",
- Handler: _UserService_Renew_Handler,
- },
- {
- MethodName: "GenConfig",
- Handler: _UserService_GenConfig_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "user.proto",
- }
- func init() { proto.RegisterFile("user.proto", fileDescriptor0) }
- var fileDescriptor0 = []byte{
- // 696 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xc1, 0x6e, 0xd3, 0x40,
- 0x10, 0x86, 0x6b, 0x27, 0x71, 0xe3, 0x49, 0xda, 0xba, 0xd3, 0x14, 0xdc, 0xa8, 0x88, 0x68, 0x0f,
- 0x28, 0x2a, 0x52, 0x22, 0x42, 0x0f, 0xa8, 0x08, 0x89, 0x28, 0x85, 0x10, 0x44, 0x9d, 0xc8, 0x69,
- 0x95, 0x23, 0x72, 0x92, 0x6d, 0x64, 0x29, 0xb5, 0x8d, 0xd7, 0x69, 0xef, 0xbc, 0x01, 0xe2, 0xce,
- 0x43, 0xf0, 0x2a, 0xbc, 0x00, 0x07, 0x1e, 0x80, 0x47, 0x40, 0xbb, 0xeb, 0xd8, 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