Documentation ¶
Index ¶
- Variables
- type IdlService
- type IdlServiceAddServiceArgs
- func (p *IdlServiceAddServiceArgs) GetService() (v *Service)
- func (p *IdlServiceAddServiceArgs) IsSetService() bool
- func (p *IdlServiceAddServiceArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceAddServiceArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *IdlServiceAddServiceArgs) String() string
- func (p *IdlServiceAddServiceArgs) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceAddServiceResult
- func (p *IdlServiceAddServiceResult) GetSuccess() (v *SuccessResp)
- func (p *IdlServiceAddServiceResult) IsSetSuccess() bool
- func (p *IdlServiceAddServiceResult) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceAddServiceResult) ReadField0(iprot thrift.TProtocol) error
- func (p *IdlServiceAddServiceResult) String() string
- func (p *IdlServiceAddServiceResult) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceClient
- func (p *IdlServiceClient) AddService(ctx context.Context, service *Service) (r *SuccessResp, err error)
- func (p *IdlServiceClient) Client_() thrift.TClient
- func (p *IdlServiceClient) DelService(ctx context.Context, serviceReq *ServiceReq) (r *SuccessResp, err error)
- func (p *IdlServiceClient) EditService(ctx context.Context, service *Service) (r *SuccessResp, err error)
- func (p *IdlServiceClient) ListAllService(ctx context.Context) (r []*Service, err error)
- func (p *IdlServiceClient) SearchForService(ctx context.Context, serviceReq *ServiceReq) (r *Service, err error)
- type IdlServiceDelServiceArgs
- func (p *IdlServiceDelServiceArgs) GetServiceReq() (v *ServiceReq)
- func (p *IdlServiceDelServiceArgs) IsSetServiceReq() bool
- func (p *IdlServiceDelServiceArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceDelServiceArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *IdlServiceDelServiceArgs) String() string
- func (p *IdlServiceDelServiceArgs) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceDelServiceResult
- func (p *IdlServiceDelServiceResult) GetSuccess() (v *SuccessResp)
- func (p *IdlServiceDelServiceResult) IsSetSuccess() bool
- func (p *IdlServiceDelServiceResult) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceDelServiceResult) ReadField0(iprot thrift.TProtocol) error
- func (p *IdlServiceDelServiceResult) String() string
- func (p *IdlServiceDelServiceResult) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceEditServiceArgs
- func (p *IdlServiceEditServiceArgs) GetService() (v *Service)
- func (p *IdlServiceEditServiceArgs) IsSetService() bool
- func (p *IdlServiceEditServiceArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceEditServiceArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *IdlServiceEditServiceArgs) String() string
- func (p *IdlServiceEditServiceArgs) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceEditServiceResult
- func (p *IdlServiceEditServiceResult) GetSuccess() (v *SuccessResp)
- func (p *IdlServiceEditServiceResult) IsSetSuccess() bool
- func (p *IdlServiceEditServiceResult) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceEditServiceResult) ReadField0(iprot thrift.TProtocol) error
- func (p *IdlServiceEditServiceResult) String() string
- func (p *IdlServiceEditServiceResult) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceListAllServiceArgs
- type IdlServiceListAllServiceResult
- func (p *IdlServiceListAllServiceResult) GetSuccess() (v []*Service)
- func (p *IdlServiceListAllServiceResult) IsSetSuccess() bool
- func (p *IdlServiceListAllServiceResult) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceListAllServiceResult) ReadField0(iprot thrift.TProtocol) error
- func (p *IdlServiceListAllServiceResult) String() string
- func (p *IdlServiceListAllServiceResult) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceProcessor
- func (p *IdlServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *IdlServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *IdlServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *IdlServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type IdlServiceSearchForServiceArgs
- func (p *IdlServiceSearchForServiceArgs) GetServiceReq() (v *ServiceReq)
- func (p *IdlServiceSearchForServiceArgs) IsSetServiceReq() bool
- func (p *IdlServiceSearchForServiceArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceSearchForServiceArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *IdlServiceSearchForServiceArgs) String() string
- func (p *IdlServiceSearchForServiceArgs) Write(oprot thrift.TProtocol) (err error)
- type IdlServiceSearchForServiceResult
- func (p *IdlServiceSearchForServiceResult) GetSuccess() (v *Service)
- func (p *IdlServiceSearchForServiceResult) IsSetSuccess() bool
- func (p *IdlServiceSearchForServiceResult) Read(iprot thrift.TProtocol) (err error)
- func (p *IdlServiceSearchForServiceResult) ReadField0(iprot thrift.TProtocol) error
- func (p *IdlServiceSearchForServiceResult) String() string
- func (p *IdlServiceSearchForServiceResult) Write(oprot thrift.TProtocol) (err error)
- type Service
- func (p *Service) GetIdl() (v string)
- func (p *Service) GetName() (v string)
- func (p *Service) Read(iprot thrift.TProtocol) (err error)
- func (p *Service) ReadField1(iprot thrift.TProtocol) error
- func (p *Service) ReadField2(iprot thrift.TProtocol) error
- func (p *Service) String() string
- func (p *Service) Write(oprot thrift.TProtocol) (err error)
- type ServiceReq
- type SuccessResp
- func (p *SuccessResp) GetMsg() (v string)
- func (p *SuccessResp) GetSuccess() (v bool)
- func (p *SuccessResp) Read(iprot thrift.TProtocol) (err error)
- func (p *SuccessResp) ReadField1(iprot thrift.TProtocol) error
- func (p *SuccessResp) ReadField2(iprot thrift.TProtocol) error
- func (p *SuccessResp) String() string
- func (p *SuccessResp) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var IdlServiceListAllServiceResult_Success_DEFAULT []*Service
Functions ¶
This section is empty.
Types ¶
type IdlService ¶
type IdlService interface { SearchForService(ctx context.Context, serviceReq *ServiceReq) (r *Service, err error) AddService(ctx context.Context, service *Service) (r *SuccessResp, err error) DelService(ctx context.Context, serviceReq *ServiceReq) (r *SuccessResp, err error) EditService(ctx context.Context, service *Service) (r *SuccessResp, err error) ListAllService(ctx context.Context) (r []*Service, err error) }
type IdlServiceAddServiceArgs ¶
type IdlServiceAddServiceArgs struct {
Service *Service `thrift:"service,1"`
}
func NewIdlServiceAddServiceArgs ¶
func NewIdlServiceAddServiceArgs() *IdlServiceAddServiceArgs
func (*IdlServiceAddServiceArgs) GetService ¶
func (p *IdlServiceAddServiceArgs) GetService() (v *Service)
func (*IdlServiceAddServiceArgs) IsSetService ¶
func (p *IdlServiceAddServiceArgs) IsSetService() bool
func (*IdlServiceAddServiceArgs) Read ¶
func (p *IdlServiceAddServiceArgs) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceAddServiceArgs) ReadField1 ¶
func (p *IdlServiceAddServiceArgs) ReadField1(iprot thrift.TProtocol) error
func (*IdlServiceAddServiceArgs) String ¶
func (p *IdlServiceAddServiceArgs) String() string
type IdlServiceAddServiceResult ¶
type IdlServiceAddServiceResult struct {
Success *SuccessResp `thrift:"success,0,optional"`
}
func NewIdlServiceAddServiceResult ¶
func NewIdlServiceAddServiceResult() *IdlServiceAddServiceResult
func (*IdlServiceAddServiceResult) GetSuccess ¶
func (p *IdlServiceAddServiceResult) GetSuccess() (v *SuccessResp)
func (*IdlServiceAddServiceResult) IsSetSuccess ¶
func (p *IdlServiceAddServiceResult) IsSetSuccess() bool
func (*IdlServiceAddServiceResult) Read ¶
func (p *IdlServiceAddServiceResult) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceAddServiceResult) ReadField0 ¶
func (p *IdlServiceAddServiceResult) ReadField0(iprot thrift.TProtocol) error
func (*IdlServiceAddServiceResult) String ¶
func (p *IdlServiceAddServiceResult) String() string
type IdlServiceClient ¶
type IdlServiceClient struct {
// contains filtered or unexported fields
}
func NewIdlServiceClient ¶
func NewIdlServiceClient(c thrift.TClient) *IdlServiceClient
func NewIdlServiceClientFactory ¶
func NewIdlServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *IdlServiceClient
func NewIdlServiceClientProtocol ¶
func NewIdlServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *IdlServiceClient
func (*IdlServiceClient) AddService ¶
func (p *IdlServiceClient) AddService(ctx context.Context, service *Service) (r *SuccessResp, err error)
func (*IdlServiceClient) Client_ ¶
func (p *IdlServiceClient) Client_() thrift.TClient
func (*IdlServiceClient) DelService ¶
func (p *IdlServiceClient) DelService(ctx context.Context, serviceReq *ServiceReq) (r *SuccessResp, err error)
func (*IdlServiceClient) EditService ¶
func (p *IdlServiceClient) EditService(ctx context.Context, service *Service) (r *SuccessResp, err error)
func (*IdlServiceClient) ListAllService ¶
func (p *IdlServiceClient) ListAllService(ctx context.Context) (r []*Service, err error)
func (*IdlServiceClient) SearchForService ¶
func (p *IdlServiceClient) SearchForService(ctx context.Context, serviceReq *ServiceReq) (r *Service, err error)
type IdlServiceDelServiceArgs ¶
type IdlServiceDelServiceArgs struct {
ServiceReq *ServiceReq `thrift:"serviceReq,1"`
}
func NewIdlServiceDelServiceArgs ¶
func NewIdlServiceDelServiceArgs() *IdlServiceDelServiceArgs
func (*IdlServiceDelServiceArgs) GetServiceReq ¶
func (p *IdlServiceDelServiceArgs) GetServiceReq() (v *ServiceReq)
func (*IdlServiceDelServiceArgs) IsSetServiceReq ¶
func (p *IdlServiceDelServiceArgs) IsSetServiceReq() bool
func (*IdlServiceDelServiceArgs) Read ¶
func (p *IdlServiceDelServiceArgs) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceDelServiceArgs) ReadField1 ¶
func (p *IdlServiceDelServiceArgs) ReadField1(iprot thrift.TProtocol) error
func (*IdlServiceDelServiceArgs) String ¶
func (p *IdlServiceDelServiceArgs) String() string
type IdlServiceDelServiceResult ¶
type IdlServiceDelServiceResult struct {
Success *SuccessResp `thrift:"success,0,optional"`
}
func NewIdlServiceDelServiceResult ¶
func NewIdlServiceDelServiceResult() *IdlServiceDelServiceResult
func (*IdlServiceDelServiceResult) GetSuccess ¶
func (p *IdlServiceDelServiceResult) GetSuccess() (v *SuccessResp)
func (*IdlServiceDelServiceResult) IsSetSuccess ¶
func (p *IdlServiceDelServiceResult) IsSetSuccess() bool
func (*IdlServiceDelServiceResult) Read ¶
func (p *IdlServiceDelServiceResult) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceDelServiceResult) ReadField0 ¶
func (p *IdlServiceDelServiceResult) ReadField0(iprot thrift.TProtocol) error
func (*IdlServiceDelServiceResult) String ¶
func (p *IdlServiceDelServiceResult) String() string
type IdlServiceEditServiceArgs ¶
type IdlServiceEditServiceArgs struct {
Service *Service `thrift:"service,1"`
}
func NewIdlServiceEditServiceArgs ¶
func NewIdlServiceEditServiceArgs() *IdlServiceEditServiceArgs
func (*IdlServiceEditServiceArgs) GetService ¶
func (p *IdlServiceEditServiceArgs) GetService() (v *Service)
func (*IdlServiceEditServiceArgs) IsSetService ¶
func (p *IdlServiceEditServiceArgs) IsSetService() bool
func (*IdlServiceEditServiceArgs) Read ¶
func (p *IdlServiceEditServiceArgs) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceEditServiceArgs) ReadField1 ¶
func (p *IdlServiceEditServiceArgs) ReadField1(iprot thrift.TProtocol) error
func (*IdlServiceEditServiceArgs) String ¶
func (p *IdlServiceEditServiceArgs) String() string
type IdlServiceEditServiceResult ¶
type IdlServiceEditServiceResult struct {
Success *SuccessResp `thrift:"success,0,optional"`
}
func NewIdlServiceEditServiceResult ¶
func NewIdlServiceEditServiceResult() *IdlServiceEditServiceResult
func (*IdlServiceEditServiceResult) GetSuccess ¶
func (p *IdlServiceEditServiceResult) GetSuccess() (v *SuccessResp)
func (*IdlServiceEditServiceResult) IsSetSuccess ¶
func (p *IdlServiceEditServiceResult) IsSetSuccess() bool
func (*IdlServiceEditServiceResult) Read ¶
func (p *IdlServiceEditServiceResult) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceEditServiceResult) ReadField0 ¶
func (p *IdlServiceEditServiceResult) ReadField0(iprot thrift.TProtocol) error
func (*IdlServiceEditServiceResult) String ¶
func (p *IdlServiceEditServiceResult) String() string
type IdlServiceListAllServiceArgs ¶
type IdlServiceListAllServiceArgs struct { }
func NewIdlServiceListAllServiceArgs ¶
func NewIdlServiceListAllServiceArgs() *IdlServiceListAllServiceArgs
func (*IdlServiceListAllServiceArgs) Read ¶
func (p *IdlServiceListAllServiceArgs) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceListAllServiceArgs) String ¶
func (p *IdlServiceListAllServiceArgs) String() string
type IdlServiceListAllServiceResult ¶
type IdlServiceListAllServiceResult struct {
Success []*Service `thrift:"success,0,optional"`
}
func NewIdlServiceListAllServiceResult ¶
func NewIdlServiceListAllServiceResult() *IdlServiceListAllServiceResult
func (*IdlServiceListAllServiceResult) GetSuccess ¶
func (p *IdlServiceListAllServiceResult) GetSuccess() (v []*Service)
func (*IdlServiceListAllServiceResult) IsSetSuccess ¶
func (p *IdlServiceListAllServiceResult) IsSetSuccess() bool
func (*IdlServiceListAllServiceResult) Read ¶
func (p *IdlServiceListAllServiceResult) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceListAllServiceResult) ReadField0 ¶
func (p *IdlServiceListAllServiceResult) ReadField0(iprot thrift.TProtocol) error
func (*IdlServiceListAllServiceResult) String ¶
func (p *IdlServiceListAllServiceResult) String() string
type IdlServiceProcessor ¶
type IdlServiceProcessor struct {
// contains filtered or unexported fields
}
func NewIdlServiceProcessor ¶
func NewIdlServiceProcessor(handler IdlService) *IdlServiceProcessor
func (*IdlServiceProcessor) AddToProcessorMap ¶
func (p *IdlServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*IdlServiceProcessor) GetProcessorFunction ¶
func (p *IdlServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*IdlServiceProcessor) Process ¶
func (p *IdlServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*IdlServiceProcessor) ProcessorMap ¶
func (p *IdlServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type IdlServiceSearchForServiceArgs ¶
type IdlServiceSearchForServiceArgs struct {
ServiceReq *ServiceReq `thrift:"serviceReq,1"`
}
func NewIdlServiceSearchForServiceArgs ¶
func NewIdlServiceSearchForServiceArgs() *IdlServiceSearchForServiceArgs
func (*IdlServiceSearchForServiceArgs) GetServiceReq ¶
func (p *IdlServiceSearchForServiceArgs) GetServiceReq() (v *ServiceReq)
func (*IdlServiceSearchForServiceArgs) IsSetServiceReq ¶
func (p *IdlServiceSearchForServiceArgs) IsSetServiceReq() bool
func (*IdlServiceSearchForServiceArgs) Read ¶
func (p *IdlServiceSearchForServiceArgs) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceSearchForServiceArgs) ReadField1 ¶
func (p *IdlServiceSearchForServiceArgs) ReadField1(iprot thrift.TProtocol) error
func (*IdlServiceSearchForServiceArgs) String ¶
func (p *IdlServiceSearchForServiceArgs) String() string
type IdlServiceSearchForServiceResult ¶
type IdlServiceSearchForServiceResult struct {
Success *Service `thrift:"success,0,optional"`
}
func NewIdlServiceSearchForServiceResult ¶
func NewIdlServiceSearchForServiceResult() *IdlServiceSearchForServiceResult
func (*IdlServiceSearchForServiceResult) GetSuccess ¶
func (p *IdlServiceSearchForServiceResult) GetSuccess() (v *Service)
func (*IdlServiceSearchForServiceResult) IsSetSuccess ¶
func (p *IdlServiceSearchForServiceResult) IsSetSuccess() bool
func (*IdlServiceSearchForServiceResult) Read ¶
func (p *IdlServiceSearchForServiceResult) Read(iprot thrift.TProtocol) (err error)
func (*IdlServiceSearchForServiceResult) ReadField0 ¶
func (p *IdlServiceSearchForServiceResult) ReadField0(iprot thrift.TProtocol) error
func (*IdlServiceSearchForServiceResult) String ¶
func (p *IdlServiceSearchForServiceResult) String() string
type Service ¶
type Service struct { Name string `thrift:"Name,1" form:"Name" json:"Name"` Idl string `thrift:"Idl,2" form:"Idl" json:"Idl"` }
var IdlServiceAddServiceArgs_Service_DEFAULT *Service
var IdlServiceEditServiceArgs_Service_DEFAULT *Service
var IdlServiceSearchForServiceResult_Success_DEFAULT *Service
func NewService ¶
func NewService() *Service
type ServiceReq ¶
type ServiceReq struct {
ServiceName string `thrift:"serviceName,1" form:"serviceName" json:"serviceName"`
}
var IdlServiceDelServiceArgs_ServiceReq_DEFAULT *ServiceReq
var IdlServiceSearchForServiceArgs_ServiceReq_DEFAULT *ServiceReq
func NewServiceReq ¶
func NewServiceReq() *ServiceReq
func (*ServiceReq) GetServiceName ¶
func (p *ServiceReq) GetServiceName() (v string)
func (*ServiceReq) ReadField1 ¶
func (p *ServiceReq) ReadField1(iprot thrift.TProtocol) error
func (*ServiceReq) String ¶
func (p *ServiceReq) String() string
type SuccessResp ¶
type SuccessResp struct { Success bool `thrift:"success,1" form:"success" json:"success"` Msg string `thrift:"msg,2" form:"msg" json:"msg"` }
var IdlServiceAddServiceResult_Success_DEFAULT *SuccessResp
var IdlServiceDelServiceResult_Success_DEFAULT *SuccessResp
var IdlServiceEditServiceResult_Success_DEFAULT *SuccessResp
func NewSuccessResp ¶
func NewSuccessResp() *SuccessResp
func (*SuccessResp) GetMsg ¶
func (p *SuccessResp) GetMsg() (v string)
func (*SuccessResp) GetSuccess ¶
func (p *SuccessResp) GetSuccess() (v bool)
func (*SuccessResp) ReadField1 ¶
func (p *SuccessResp) ReadField1(iprot thrift.TProtocol) error
func (*SuccessResp) ReadField2 ¶
func (p *SuccessResp) ReadField2(iprot thrift.TProtocol) error
func (*SuccessResp) String ¶
func (p *SuccessResp) String() string
Click to show internal directories.
Click to hide internal directories.