gateway

package
v0.0.0-...-ecd8b35 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

func (*IdlServiceAddServiceArgs) Write

func (p *IdlServiceAddServiceArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*IdlServiceAddServiceResult) Write

func (p *IdlServiceAddServiceResult) Write(oprot thrift.TProtocol) (err error)

type IdlServiceClient

type IdlServiceClient struct {
	// contains filtered or unexported fields
}

func NewIdlServiceClient

func NewIdlServiceClient(c thrift.TClient) *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

func (*IdlServiceDelServiceArgs) Write

func (p *IdlServiceDelServiceArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*IdlServiceDelServiceResult) Write

func (p *IdlServiceDelServiceResult) Write(oprot thrift.TProtocol) (err error)

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

func (*IdlServiceEditServiceArgs) Write

func (p *IdlServiceEditServiceArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*IdlServiceEditServiceResult) Write

func (p *IdlServiceEditServiceResult) Write(oprot thrift.TProtocol) (err error)

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 (*IdlServiceListAllServiceArgs) Write

func (p *IdlServiceListAllServiceArgs) Write(oprot thrift.TProtocol) (err error)

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 (*IdlServiceListAllServiceResult) ReadField0

func (*IdlServiceListAllServiceResult) String

func (*IdlServiceListAllServiceResult) Write

func (p *IdlServiceListAllServiceResult) Write(oprot thrift.TProtocol) (err error)

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 (*IdlServiceSearchForServiceArgs) ReadField1

func (*IdlServiceSearchForServiceArgs) String

func (*IdlServiceSearchForServiceArgs) Write

func (p *IdlServiceSearchForServiceArgs) Write(oprot thrift.TProtocol) (err error)

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 (*IdlServiceSearchForServiceResult) ReadField0

func (*IdlServiceSearchForServiceResult) String

func (*IdlServiceSearchForServiceResult) Write

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

func (*Service) GetIdl

func (p *Service) GetIdl() (v string)

func (*Service) GetName

func (p *Service) GetName() (v string)

func (*Service) Read

func (p *Service) Read(iprot thrift.TProtocol) (err error)

func (*Service) ReadField1

func (p *Service) ReadField1(iprot thrift.TProtocol) error

func (*Service) ReadField2

func (p *Service) ReadField2(iprot thrift.TProtocol) error

func (*Service) String

func (p *Service) String() string

func (*Service) Write

func (p *Service) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *ServiceReq) Read(iprot thrift.TProtocol) (err error)

func (*ServiceReq) ReadField1

func (p *ServiceReq) ReadField1(iprot thrift.TProtocol) error

func (*ServiceReq) String

func (p *ServiceReq) String() string

func (*ServiceReq) Write

func (p *ServiceReq) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *SuccessResp) Read(iprot thrift.TProtocol) (err error)

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

func (*SuccessResp) Write

func (p *SuccessResp) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

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