grpc_adm

package
v0.0.0-...-79d1dd2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdministratorServiceHandler

func RegisterAdministratorServiceHandler(s server.Server, hdlr AdministratorServiceHandler, opts ...server.HandlerOption) error

func RegisterServiceServiceHandler

func RegisterServiceServiceHandler(s server.Server, hdlr ServiceServiceHandler, opts ...server.HandlerOption) error

Types

type AdministratorLoginRequestDto

type AdministratorLoginRequestDto struct {
	Number               string   `protobuf:"bytes,1,opt,name=number,proto3" json:"number,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 (*AdministratorLoginRequestDto) Descriptor

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

func (*AdministratorLoginRequestDto) GetNumber

func (m *AdministratorLoginRequestDto) GetNumber() string

func (*AdministratorLoginRequestDto) GetPassword

func (m *AdministratorLoginRequestDto) GetPassword() string

func (*AdministratorLoginRequestDto) ProtoMessage

func (*AdministratorLoginRequestDto) ProtoMessage()

func (*AdministratorLoginRequestDto) Reset

func (m *AdministratorLoginRequestDto) Reset()

func (*AdministratorLoginRequestDto) String

func (*AdministratorLoginRequestDto) XXX_DiscardUnknown

func (m *AdministratorLoginRequestDto) XXX_DiscardUnknown()

func (*AdministratorLoginRequestDto) XXX_Marshal

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

func (*AdministratorLoginRequestDto) XXX_Merge

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

func (*AdministratorLoginRequestDto) XXX_Size

func (m *AdministratorLoginRequestDto) XXX_Size() int

func (*AdministratorLoginRequestDto) XXX_Unmarshal

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

type AdministratorLoginResponseDto

type AdministratorLoginResponseDto 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 (*AdministratorLoginResponseDto) Descriptor

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

func (*AdministratorLoginResponseDto) GetToken

func (m *AdministratorLoginResponseDto) GetToken() string

func (*AdministratorLoginResponseDto) ProtoMessage

func (*AdministratorLoginResponseDto) ProtoMessage()

func (*AdministratorLoginResponseDto) Reset

func (m *AdministratorLoginResponseDto) Reset()

func (*AdministratorLoginResponseDto) String

func (*AdministratorLoginResponseDto) XXX_DiscardUnknown

func (m *AdministratorLoginResponseDto) XXX_DiscardUnknown()

func (*AdministratorLoginResponseDto) XXX_Marshal

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

func (*AdministratorLoginResponseDto) XXX_Merge

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

func (*AdministratorLoginResponseDto) XXX_Size

func (m *AdministratorLoginResponseDto) XXX_Size() int

func (*AdministratorLoginResponseDto) XXX_Unmarshal

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

type AdministratorService

type AdministratorService interface {
	Login(ctx context.Context, in *AdministratorLoginRequestDto, opts ...client.CallOption) (*AdministratorLoginResponseDto, error)
}

func NewAdministratorService

func NewAdministratorService(name string, c client.Client) AdministratorService

type AdministratorServiceHandler

type AdministratorServiceHandler interface {
	Login(context.Context, *AdministratorLoginRequestDto, *AdministratorLoginResponseDto) error
}

type ServiceApplicationInfoDto

type ServiceApplicationInfoDto struct {
	ApplicationVersion    string   `protobuf:"bytes,1,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
	ApplicationVersionNum uint32   `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

func (*ServiceApplicationInfoDto) Descriptor

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

func (*ServiceApplicationInfoDto) GetApplicationVersion

func (m *ServiceApplicationInfoDto) GetApplicationVersion() string

func (*ServiceApplicationInfoDto) GetApplicationVersionNum

func (m *ServiceApplicationInfoDto) GetApplicationVersionNum() uint32

func (*ServiceApplicationInfoDto) ProtoMessage

func (*ServiceApplicationInfoDto) ProtoMessage()

func (*ServiceApplicationInfoDto) Reset

func (m *ServiceApplicationInfoDto) Reset()

func (*ServiceApplicationInfoDto) String

func (m *ServiceApplicationInfoDto) String() string

func (*ServiceApplicationInfoDto) XXX_DiscardUnknown

func (m *ServiceApplicationInfoDto) XXX_DiscardUnknown()

func (*ServiceApplicationInfoDto) XXX_Marshal

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

func (*ServiceApplicationInfoDto) XXX_Merge

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

func (*ServiceApplicationInfoDto) XXX_Size

func (m *ServiceApplicationInfoDto) XXX_Size() int

func (*ServiceApplicationInfoDto) XXX_Unmarshal

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

type ServiceBaseInfoDto

type ServiceBaseInfoDto struct {
	// 这部分是从注册中心中读取到的其他服务信息
	ServiceKey       string `protobuf:"bytes,1,opt,name=service_key,json=serviceKey,proto3" json:"service_key,omitempty"`
	ServiceName      string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ServiceIntroduce string `protobuf:"bytes,3,opt,name=service_introduce,json=serviceIntroduce,proto3" json:"service_introduce,omitempty"`
	// 以下是dashboard服务根据下载到的服务UI模块检索生成的
	ServiceIconUrl       string                        `protobuf:"bytes,51,opt,name=service_icon_url,json=serviceIconUrl,proto3" json:"service_icon_url,omitempty"`
	ManagementModuleList []*ServiceManagementModuleDto `protobuf:"bytes,52,rep,name=management_module_list,json=managementModuleList,proto3" json:"management_module_list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func (*ServiceBaseInfoDto) Descriptor

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

func (*ServiceBaseInfoDto) GetManagementModuleList

func (m *ServiceBaseInfoDto) GetManagementModuleList() []*ServiceManagementModuleDto

func (*ServiceBaseInfoDto) GetServiceIconUrl

func (m *ServiceBaseInfoDto) GetServiceIconUrl() string

func (*ServiceBaseInfoDto) GetServiceIntroduce

func (m *ServiceBaseInfoDto) GetServiceIntroduce() string

func (*ServiceBaseInfoDto) GetServiceKey

func (m *ServiceBaseInfoDto) GetServiceKey() string

func (*ServiceBaseInfoDto) GetServiceName

func (m *ServiceBaseInfoDto) GetServiceName() string

func (*ServiceBaseInfoDto) ProtoMessage

func (*ServiceBaseInfoDto) ProtoMessage()

func (*ServiceBaseInfoDto) Reset

func (m *ServiceBaseInfoDto) Reset()

func (*ServiceBaseInfoDto) String

func (m *ServiceBaseInfoDto) String() string

func (*ServiceBaseInfoDto) XXX_DiscardUnknown

func (m *ServiceBaseInfoDto) XXX_DiscardUnknown()

func (*ServiceBaseInfoDto) XXX_Marshal

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

func (*ServiceBaseInfoDto) XXX_Merge

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

func (*ServiceBaseInfoDto) XXX_Size

func (m *ServiceBaseInfoDto) XXX_Size() int

func (*ServiceBaseInfoDto) XXX_Unmarshal

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

type ServiceBaseInfoListDto

type ServiceBaseInfoListDto struct {
	AllServiceBaseInfoList []*ServiceBaseInfoDto `` /* 133-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}              `json:"-"`
	XXX_unrecognized       []byte                `json:"-"`
	XXX_sizecache          int32                 `json:"-"`
}

func (*ServiceBaseInfoListDto) Descriptor

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

func (*ServiceBaseInfoListDto) GetAllServiceBaseInfoList

func (m *ServiceBaseInfoListDto) GetAllServiceBaseInfoList() []*ServiceBaseInfoDto

func (*ServiceBaseInfoListDto) ProtoMessage

func (*ServiceBaseInfoListDto) ProtoMessage()

func (*ServiceBaseInfoListDto) Reset

func (m *ServiceBaseInfoListDto) Reset()

func (*ServiceBaseInfoListDto) String

func (m *ServiceBaseInfoListDto) String() string

func (*ServiceBaseInfoListDto) XXX_DiscardUnknown

func (m *ServiceBaseInfoListDto) XXX_DiscardUnknown()

func (*ServiceBaseInfoListDto) XXX_Marshal

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

func (*ServiceBaseInfoListDto) XXX_Merge

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

func (*ServiceBaseInfoListDto) XXX_Size

func (m *ServiceBaseInfoListDto) XXX_Size() int

func (*ServiceBaseInfoListDto) XXX_Unmarshal

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

type ServiceInstanceInfoDto

type ServiceInstanceInfoDto struct {
	EndpointHost         string                     `protobuf:"bytes,1,opt,name=endpoint_host,json=endpointHost,proto3" json:"endpoint_host,omitempty"`
	EndpointPort         uint32                     `protobuf:"varint,2,opt,name=endpoint_port,json=endpointPort,proto3" json:"endpoint_port,omitempty"`
	ApplicationInfo      *ServiceApplicationInfoDto `protobuf:"bytes,3,opt,name=application_info,json=applicationInfo,proto3" json:"application_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*ServiceInstanceInfoDto) Descriptor

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

func (*ServiceInstanceInfoDto) GetApplicationInfo

func (m *ServiceInstanceInfoDto) GetApplicationInfo() *ServiceApplicationInfoDto

func (*ServiceInstanceInfoDto) GetEndpointHost

func (m *ServiceInstanceInfoDto) GetEndpointHost() string

func (*ServiceInstanceInfoDto) GetEndpointPort

func (m *ServiceInstanceInfoDto) GetEndpointPort() uint32

func (*ServiceInstanceInfoDto) ProtoMessage

func (*ServiceInstanceInfoDto) ProtoMessage()

func (*ServiceInstanceInfoDto) Reset

func (m *ServiceInstanceInfoDto) Reset()

func (*ServiceInstanceInfoDto) String

func (m *ServiceInstanceInfoDto) String() string

func (*ServiceInstanceInfoDto) XXX_DiscardUnknown

func (m *ServiceInstanceInfoDto) XXX_DiscardUnknown()

func (*ServiceInstanceInfoDto) XXX_Marshal

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

func (*ServiceInstanceInfoDto) XXX_Merge

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

func (*ServiceInstanceInfoDto) XXX_Size

func (m *ServiceInstanceInfoDto) XXX_Size() int

func (*ServiceInstanceInfoDto) XXX_Unmarshal

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

type ServiceInstanceInfoListDto

type ServiceInstanceInfoListDto struct {
	AllServiceInstanceInfoList []*ServiceInstanceInfoDto `` /* 145-byte string literal not displayed */
	XXX_NoUnkeyedLiteral       struct{}                  `json:"-"`
	XXX_unrecognized           []byte                    `json:"-"`
	XXX_sizecache              int32                     `json:"-"`
}

func (*ServiceInstanceInfoListDto) Descriptor

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

func (*ServiceInstanceInfoListDto) GetAllServiceInstanceInfoList

func (m *ServiceInstanceInfoListDto) GetAllServiceInstanceInfoList() []*ServiceInstanceInfoDto

func (*ServiceInstanceInfoListDto) ProtoMessage

func (*ServiceInstanceInfoListDto) ProtoMessage()

func (*ServiceInstanceInfoListDto) Reset

func (m *ServiceInstanceInfoListDto) Reset()

func (*ServiceInstanceInfoListDto) String

func (m *ServiceInstanceInfoListDto) String() string

func (*ServiceInstanceInfoListDto) XXX_DiscardUnknown

func (m *ServiceInstanceInfoListDto) XXX_DiscardUnknown()

func (*ServiceInstanceInfoListDto) XXX_Marshal

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

func (*ServiceInstanceInfoListDto) XXX_Merge

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

func (*ServiceInstanceInfoListDto) XXX_Size

func (m *ServiceInstanceInfoListDto) XXX_Size() int

func (*ServiceInstanceInfoListDto) XXX_Unmarshal

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

type ServiceManagementModuleDto

type ServiceManagementModuleDto struct {
	ModuleName           string   `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	ModuleKey            string   `protobuf:"bytes,2,opt,name=module_key,json=moduleKey,proto3" json:"module_key,omitempty"`
	ModuleIntroduce      string   `protobuf:"bytes,3,opt,name=module_introduce,json=moduleIntroduce,proto3" json:"module_introduce,omitempty"`
	ModuleIconUrl        string   `protobuf:"bytes,4,opt,name=module_icon_url,json=moduleIconUrl,proto3" json:"module_icon_url,omitempty"`
	IndexUrl             string   `protobuf:"bytes,5,opt,name=index_url,json=indexUrl,proto3" json:"index_url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceManagementModuleDto) Descriptor

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

func (*ServiceManagementModuleDto) GetIndexUrl

func (m *ServiceManagementModuleDto) GetIndexUrl() string

func (*ServiceManagementModuleDto) GetModuleIconUrl

func (m *ServiceManagementModuleDto) GetModuleIconUrl() string

func (*ServiceManagementModuleDto) GetModuleIntroduce

func (m *ServiceManagementModuleDto) GetModuleIntroduce() string

func (*ServiceManagementModuleDto) GetModuleKey

func (m *ServiceManagementModuleDto) GetModuleKey() string

func (*ServiceManagementModuleDto) GetModuleName

func (m *ServiceManagementModuleDto) GetModuleName() string

func (*ServiceManagementModuleDto) ProtoMessage

func (*ServiceManagementModuleDto) ProtoMessage()

func (*ServiceManagementModuleDto) Reset

func (m *ServiceManagementModuleDto) Reset()

func (*ServiceManagementModuleDto) String

func (m *ServiceManagementModuleDto) String() string

func (*ServiceManagementModuleDto) XXX_DiscardUnknown

func (m *ServiceManagementModuleDto) XXX_DiscardUnknown()

func (*ServiceManagementModuleDto) XXX_Marshal

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

func (*ServiceManagementModuleDto) XXX_Merge

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

func (*ServiceManagementModuleDto) XXX_Size

func (m *ServiceManagementModuleDto) XXX_Size() int

func (*ServiceManagementModuleDto) XXX_Unmarshal

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

type ServiceService

type ServiceService interface {
	GetMyServiceBaseInfoList(ctx context.Context, in *empty.Empty, opts ...client.CallOption) (*ServiceBaseInfoListDto, error)
	GetMyServiceInstanceInfoList(ctx context.Context, in *empty.Empty, opts ...client.CallOption) (*ServiceInstanceInfoListDto, error)
}

func NewServiceService

func NewServiceService(name string, c client.Client) ServiceService

type ServiceServiceHandler

type ServiceServiceHandler interface {
	GetMyServiceBaseInfoList(context.Context, *empty.Empty, *ServiceBaseInfoListDto) error
	GetMyServiceInstanceInfoList(context.Context, *empty.Empty, *ServiceInstanceInfoListDto) error
}

Jump to

Keyboard shortcuts

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