Documentation ¶
Index ¶
- Variables
- type BaseService
- type BaseServiceClient
- func (p *BaseServiceClient) CallOfbizService(userLoginId string, serviceName string, context map[string]string) (r map[string]string, err error)
- func (p *BaseServiceClient) GetMessageMap(userLoginId string, resourceNames []string) (r map[string]string, err error)
- func (p *BaseServiceClient) HasEntityPermission(userLoginId string, entities []string, actions []string) (r map[string]string, err error)
- func (p *BaseServiceClient) HasPermission(userLoginId string, permissions []string) (r map[string]string, err error)
- func (p *BaseServiceClient) UserLogin(userLoginId string, loginPwd string) (r map[string]string, err error)
- type BaseServiceProcessor
- func (p *BaseServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *BaseServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *BaseServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *BaseServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type CallOfbizServiceArgs
- func (p *CallOfbizServiceArgs) GetContext() map[string]string
- func (p *CallOfbizServiceArgs) GetServiceName() string
- func (p *CallOfbizServiceArgs) GetUserLoginId() string
- func (p *CallOfbizServiceArgs) Read(iprot thrift.TProtocol) error
- func (p *CallOfbizServiceArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CallOfbizServiceArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *CallOfbizServiceArgs) ReadField3(iprot thrift.TProtocol) error
- func (p *CallOfbizServiceArgs) String() string
- func (p *CallOfbizServiceArgs) Write(oprot thrift.TProtocol) error
- type CallOfbizServiceResult
- func (p *CallOfbizServiceResult) GetSuccess() map[string]string
- func (p *CallOfbizServiceResult) IsSetSuccess() bool
- func (p *CallOfbizServiceResult) Read(iprot thrift.TProtocol) error
- func (p *CallOfbizServiceResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CallOfbizServiceResult) String() string
- func (p *CallOfbizServiceResult) Write(oprot thrift.TProtocol) error
- type GetMessageMapArgs
- func (p *GetMessageMapArgs) GetResourceNames() []string
- func (p *GetMessageMapArgs) GetUserLoginId() string
- func (p *GetMessageMapArgs) Read(iprot thrift.TProtocol) error
- func (p *GetMessageMapArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GetMessageMapArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *GetMessageMapArgs) String() string
- func (p *GetMessageMapArgs) Write(oprot thrift.TProtocol) error
- type GetMessageMapResult
- func (p *GetMessageMapResult) GetSuccess() map[string]string
- func (p *GetMessageMapResult) IsSetSuccess() bool
- func (p *GetMessageMapResult) Read(iprot thrift.TProtocol) error
- func (p *GetMessageMapResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GetMessageMapResult) String() string
- func (p *GetMessageMapResult) Write(oprot thrift.TProtocol) error
- type HasEntityPermissionArgs
- func (p *HasEntityPermissionArgs) GetActions() []string
- func (p *HasEntityPermissionArgs) GetEntities() []string
- func (p *HasEntityPermissionArgs) GetUserLoginId() string
- func (p *HasEntityPermissionArgs) Read(iprot thrift.TProtocol) error
- func (p *HasEntityPermissionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *HasEntityPermissionArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *HasEntityPermissionArgs) ReadField3(iprot thrift.TProtocol) error
- func (p *HasEntityPermissionArgs) String() string
- func (p *HasEntityPermissionArgs) Write(oprot thrift.TProtocol) error
- type HasEntityPermissionResult
- func (p *HasEntityPermissionResult) GetSuccess() map[string]string
- func (p *HasEntityPermissionResult) IsSetSuccess() bool
- func (p *HasEntityPermissionResult) Read(iprot thrift.TProtocol) error
- func (p *HasEntityPermissionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *HasEntityPermissionResult) String() string
- func (p *HasEntityPermissionResult) Write(oprot thrift.TProtocol) error
- type HasPermissionArgs
- func (p *HasPermissionArgs) GetPermissions() []string
- func (p *HasPermissionArgs) GetUserLoginId() string
- func (p *HasPermissionArgs) Read(iprot thrift.TProtocol) error
- func (p *HasPermissionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *HasPermissionArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *HasPermissionArgs) String() string
- func (p *HasPermissionArgs) Write(oprot thrift.TProtocol) error
- type HasPermissionResult
- func (p *HasPermissionResult) GetSuccess() map[string]string
- func (p *HasPermissionResult) IsSetSuccess() bool
- func (p *HasPermissionResult) Read(iprot thrift.TProtocol) error
- func (p *HasPermissionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *HasPermissionResult) String() string
- func (p *HasPermissionResult) Write(oprot thrift.TProtocol) error
- type UserLoginArgs
- func (p *UserLoginArgs) GetLoginPwd() string
- func (p *UserLoginArgs) GetUserLoginId() string
- func (p *UserLoginArgs) Read(iprot thrift.TProtocol) error
- func (p *UserLoginArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserLoginArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *UserLoginArgs) String() string
- func (p *UserLoginArgs) Write(oprot thrift.TProtocol) error
- type UserLoginResult
- func (p *UserLoginResult) GetSuccess() map[string]string
- func (p *UserLoginResult) IsSetSuccess() bool
- func (p *UserLoginResult) Read(iprot thrift.TProtocol) error
- func (p *UserLoginResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserLoginResult) String() string
- func (p *UserLoginResult) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CallOfbizServiceResult_Success_DEFAULT map[string]string
View Source
var GetMessageMapResult_Success_DEFAULT map[string]string
View Source
var GoUnusedProtection__ int
View Source
var HasEntityPermissionResult_Success_DEFAULT map[string]string
View Source
var HasPermissionResult_Success_DEFAULT map[string]string
View Source
var UserLoginResult_Success_DEFAULT map[string]string
Functions ¶
This section is empty.
Types ¶
type BaseService ¶
type BaseService interface { // Parameters: // - UserLoginId // - LoginPwd UserLogin(userLoginId string, loginPwd string) (r map[string]string, err error) // Parameters: // - UserLoginId // - Permissions HasPermission(userLoginId string, permissions []string) (r map[string]string, err error) // Parameters: // - UserLoginId // - Entities // - Actions HasEntityPermission(userLoginId string, entities []string, actions []string) (r map[string]string, err error) // Parameters: // - UserLoginId // - ResourceNames GetMessageMap(userLoginId string, resourceNames []string) (r map[string]string, err error) // Parameters: // - UserLoginId // - ServiceName // - Context CallOfbizService(userLoginId string, serviceName string, context map[string]string) (r map[string]string, err error) }
type BaseServiceClient ¶
type BaseServiceClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewBaseServiceClientFactory ¶
func NewBaseServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *BaseServiceClient
func NewBaseServiceClientProtocol ¶
func NewBaseServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *BaseServiceClient
func (*BaseServiceClient) CallOfbizService ¶
func (p *BaseServiceClient) CallOfbizService(userLoginId string, serviceName string, context map[string]string) (r map[string]string, err error)
Parameters:
- UserLoginId
- ServiceName
- Context
func (*BaseServiceClient) GetMessageMap ¶
func (p *BaseServiceClient) GetMessageMap(userLoginId string, resourceNames []string) (r map[string]string, err error)
Parameters:
- UserLoginId
- ResourceNames
func (*BaseServiceClient) HasEntityPermission ¶
func (p *BaseServiceClient) HasEntityPermission(userLoginId string, entities []string, actions []string) (r map[string]string, err error)
Parameters:
- UserLoginId
- Entities
- Actions
func (*BaseServiceClient) HasPermission ¶
func (p *BaseServiceClient) HasPermission(userLoginId string, permissions []string) (r map[string]string, err error)
Parameters:
- UserLoginId
- Permissions
type BaseServiceProcessor ¶
type BaseServiceProcessor struct {
// contains filtered or unexported fields
}
func NewBaseServiceProcessor ¶
func NewBaseServiceProcessor(handler BaseService) *BaseServiceProcessor
func (*BaseServiceProcessor) AddToProcessorMap ¶
func (p *BaseServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*BaseServiceProcessor) GetProcessorFunction ¶
func (p *BaseServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*BaseServiceProcessor) Process ¶
func (p *BaseServiceProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*BaseServiceProcessor) ProcessorMap ¶
func (p *BaseServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type CallOfbizServiceArgs ¶
type CallOfbizServiceArgs struct { UserLoginId string `thrift:"userLoginId,1" json:"userLoginId"` ServiceName string `thrift:"serviceName,2" json:"serviceName"` Context map[string]string `thrift:"context,3" json:"context"` }
func NewCallOfbizServiceArgs ¶
func NewCallOfbizServiceArgs() *CallOfbizServiceArgs
func (*CallOfbizServiceArgs) GetContext ¶
func (p *CallOfbizServiceArgs) GetContext() map[string]string
func (*CallOfbizServiceArgs) GetServiceName ¶
func (p *CallOfbizServiceArgs) GetServiceName() string
func (*CallOfbizServiceArgs) GetUserLoginId ¶
func (p *CallOfbizServiceArgs) GetUserLoginId() string
func (*CallOfbizServiceArgs) Read ¶
func (p *CallOfbizServiceArgs) Read(iprot thrift.TProtocol) error
func (*CallOfbizServiceArgs) ReadField1 ¶
func (p *CallOfbizServiceArgs) ReadField1(iprot thrift.TProtocol) error
func (*CallOfbizServiceArgs) ReadField2 ¶
func (p *CallOfbizServiceArgs) ReadField2(iprot thrift.TProtocol) error
func (*CallOfbizServiceArgs) ReadField3 ¶
func (p *CallOfbizServiceArgs) ReadField3(iprot thrift.TProtocol) error
func (*CallOfbizServiceArgs) String ¶
func (p *CallOfbizServiceArgs) String() string
type CallOfbizServiceResult ¶
type CallOfbizServiceResult struct {
Success map[string]string `thrift:"success,0" json:"success"`
}
func NewCallOfbizServiceResult ¶
func NewCallOfbizServiceResult() *CallOfbizServiceResult
func (*CallOfbizServiceResult) GetSuccess ¶
func (p *CallOfbizServiceResult) GetSuccess() map[string]string
func (*CallOfbizServiceResult) IsSetSuccess ¶
func (p *CallOfbizServiceResult) IsSetSuccess() bool
func (*CallOfbizServiceResult) Read ¶
func (p *CallOfbizServiceResult) Read(iprot thrift.TProtocol) error
func (*CallOfbizServiceResult) ReadField0 ¶
func (p *CallOfbizServiceResult) ReadField0(iprot thrift.TProtocol) error
func (*CallOfbizServiceResult) String ¶
func (p *CallOfbizServiceResult) String() string
type GetMessageMapArgs ¶
type GetMessageMapArgs struct { UserLoginId string `thrift:"userLoginId,1" json:"userLoginId"` ResourceNames []string `thrift:"resourceNames,2" json:"resourceNames"` }
func NewGetMessageMapArgs ¶
func NewGetMessageMapArgs() *GetMessageMapArgs
func (*GetMessageMapArgs) GetResourceNames ¶
func (p *GetMessageMapArgs) GetResourceNames() []string
func (*GetMessageMapArgs) GetUserLoginId ¶
func (p *GetMessageMapArgs) GetUserLoginId() string
func (*GetMessageMapArgs) ReadField1 ¶
func (p *GetMessageMapArgs) ReadField1(iprot thrift.TProtocol) error
func (*GetMessageMapArgs) ReadField2 ¶
func (p *GetMessageMapArgs) ReadField2(iprot thrift.TProtocol) error
func (*GetMessageMapArgs) String ¶
func (p *GetMessageMapArgs) String() string
type GetMessageMapResult ¶
func NewGetMessageMapResult ¶
func NewGetMessageMapResult() *GetMessageMapResult
func (*GetMessageMapResult) GetSuccess ¶
func (p *GetMessageMapResult) GetSuccess() map[string]string
func (*GetMessageMapResult) IsSetSuccess ¶
func (p *GetMessageMapResult) IsSetSuccess() bool
func (*GetMessageMapResult) ReadField0 ¶
func (p *GetMessageMapResult) ReadField0(iprot thrift.TProtocol) error
func (*GetMessageMapResult) String ¶
func (p *GetMessageMapResult) String() string
type HasEntityPermissionArgs ¶
type HasEntityPermissionArgs struct { UserLoginId string `thrift:"userLoginId,1" json:"userLoginId"` Entities []string `thrift:"entities,2" json:"entities"` Actions []string `thrift:"actions,3" json:"actions"` }
func NewHasEntityPermissionArgs ¶
func NewHasEntityPermissionArgs() *HasEntityPermissionArgs
func (*HasEntityPermissionArgs) GetActions ¶
func (p *HasEntityPermissionArgs) GetActions() []string
func (*HasEntityPermissionArgs) GetEntities ¶
func (p *HasEntityPermissionArgs) GetEntities() []string
func (*HasEntityPermissionArgs) GetUserLoginId ¶
func (p *HasEntityPermissionArgs) GetUserLoginId() string
func (*HasEntityPermissionArgs) Read ¶
func (p *HasEntityPermissionArgs) Read(iprot thrift.TProtocol) error
func (*HasEntityPermissionArgs) ReadField1 ¶
func (p *HasEntityPermissionArgs) ReadField1(iprot thrift.TProtocol) error
func (*HasEntityPermissionArgs) ReadField2 ¶
func (p *HasEntityPermissionArgs) ReadField2(iprot thrift.TProtocol) error
func (*HasEntityPermissionArgs) ReadField3 ¶
func (p *HasEntityPermissionArgs) ReadField3(iprot thrift.TProtocol) error
func (*HasEntityPermissionArgs) String ¶
func (p *HasEntityPermissionArgs) String() string
type HasEntityPermissionResult ¶
type HasEntityPermissionResult struct {
Success map[string]string `thrift:"success,0" json:"success"`
}
func NewHasEntityPermissionResult ¶
func NewHasEntityPermissionResult() *HasEntityPermissionResult
func (*HasEntityPermissionResult) GetSuccess ¶
func (p *HasEntityPermissionResult) GetSuccess() map[string]string
func (*HasEntityPermissionResult) IsSetSuccess ¶
func (p *HasEntityPermissionResult) IsSetSuccess() bool
func (*HasEntityPermissionResult) Read ¶
func (p *HasEntityPermissionResult) Read(iprot thrift.TProtocol) error
func (*HasEntityPermissionResult) ReadField0 ¶
func (p *HasEntityPermissionResult) ReadField0(iprot thrift.TProtocol) error
func (*HasEntityPermissionResult) String ¶
func (p *HasEntityPermissionResult) String() string
type HasPermissionArgs ¶
type HasPermissionArgs struct { UserLoginId string `thrift:"userLoginId,1" json:"userLoginId"` Permissions []string `thrift:"permissions,2" json:"permissions"` }
func NewHasPermissionArgs ¶
func NewHasPermissionArgs() *HasPermissionArgs
func (*HasPermissionArgs) GetPermissions ¶
func (p *HasPermissionArgs) GetPermissions() []string
func (*HasPermissionArgs) GetUserLoginId ¶
func (p *HasPermissionArgs) GetUserLoginId() string
func (*HasPermissionArgs) ReadField1 ¶
func (p *HasPermissionArgs) ReadField1(iprot thrift.TProtocol) error
func (*HasPermissionArgs) ReadField2 ¶
func (p *HasPermissionArgs) ReadField2(iprot thrift.TProtocol) error
func (*HasPermissionArgs) String ¶
func (p *HasPermissionArgs) String() string
type HasPermissionResult ¶
func NewHasPermissionResult ¶
func NewHasPermissionResult() *HasPermissionResult
func (*HasPermissionResult) GetSuccess ¶
func (p *HasPermissionResult) GetSuccess() map[string]string
func (*HasPermissionResult) IsSetSuccess ¶
func (p *HasPermissionResult) IsSetSuccess() bool
func (*HasPermissionResult) ReadField0 ¶
func (p *HasPermissionResult) ReadField0(iprot thrift.TProtocol) error
func (*HasPermissionResult) String ¶
func (p *HasPermissionResult) String() string
type UserLoginArgs ¶
type UserLoginArgs struct { UserLoginId string `thrift:"userLoginId,1" json:"userLoginId"` LoginPwd string `thrift:"loginPwd,2" json:"loginPwd"` }
func NewUserLoginArgs ¶
func NewUserLoginArgs() *UserLoginArgs
func (*UserLoginArgs) GetLoginPwd ¶
func (p *UserLoginArgs) GetLoginPwd() string
func (*UserLoginArgs) GetUserLoginId ¶
func (p *UserLoginArgs) GetUserLoginId() string
func (*UserLoginArgs) ReadField1 ¶
func (p *UserLoginArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserLoginArgs) ReadField2 ¶
func (p *UserLoginArgs) ReadField2(iprot thrift.TProtocol) error
func (*UserLoginArgs) String ¶
func (p *UserLoginArgs) String() string
type UserLoginResult ¶
func NewUserLoginResult ¶
func NewUserLoginResult() *UserLoginResult
func (*UserLoginResult) GetSuccess ¶
func (p *UserLoginResult) GetSuccess() map[string]string
func (*UserLoginResult) IsSetSuccess ¶
func (p *UserLoginResult) IsSetSuccess() bool
func (*UserLoginResult) ReadField0 ¶
func (p *UserLoginResult) ReadField0(iprot thrift.TProtocol) error
func (*UserLoginResult) String ¶
func (p *UserLoginResult) String() string
Click to show internal directories.
Click to hide internal directories.