thriftlib

package
v0.0.0-...-072c2b0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (*BaseServiceClient) UserLogin

func (p *BaseServiceClient) UserLogin(userLoginId string, loginPwd string) (r map[string]string, err error)

Parameters:

  • UserLoginId
  • LoginPwd

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

func (*CallOfbizServiceArgs) Write

func (p *CallOfbizServiceArgs) Write(oprot thrift.TProtocol) error

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

func (p *CallOfbizServiceResult) ReadField0(iprot thrift.TProtocol) error

func (*CallOfbizServiceResult) String

func (p *CallOfbizServiceResult) String() string

func (*CallOfbizServiceResult) Write

func (p *CallOfbizServiceResult) Write(oprot thrift.TProtocol) error

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

func (p *GetMessageMapArgs) Read(iprot thrift.TProtocol) error

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

func (*GetMessageMapArgs) Write

func (p *GetMessageMapArgs) Write(oprot thrift.TProtocol) error

type GetMessageMapResult

type GetMessageMapResult struct {
	Success map[string]string `thrift:"success,0" json:"success"`
}

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

func (p *GetMessageMapResult) Read(iprot thrift.TProtocol) error

func (*GetMessageMapResult) ReadField0

func (p *GetMessageMapResult) ReadField0(iprot thrift.TProtocol) error

func (*GetMessageMapResult) String

func (p *GetMessageMapResult) String() string

func (*GetMessageMapResult) Write

func (p *GetMessageMapResult) Write(oprot thrift.TProtocol) error

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 (*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

func (*HasEntityPermissionArgs) Write

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

func (p *HasEntityPermissionResult) ReadField0(iprot thrift.TProtocol) error

func (*HasEntityPermissionResult) String

func (p *HasEntityPermissionResult) String() string

func (*HasEntityPermissionResult) Write

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

func (p *HasPermissionArgs) Read(iprot thrift.TProtocol) error

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

func (*HasPermissionArgs) Write

func (p *HasPermissionArgs) Write(oprot thrift.TProtocol) error

type HasPermissionResult

type HasPermissionResult struct {
	Success map[string]string `thrift:"success,0" json:"success"`
}

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

func (p *HasPermissionResult) Read(iprot thrift.TProtocol) error

func (*HasPermissionResult) ReadField0

func (p *HasPermissionResult) ReadField0(iprot thrift.TProtocol) error

func (*HasPermissionResult) String

func (p *HasPermissionResult) String() string

func (*HasPermissionResult) Write

func (p *HasPermissionResult) Write(oprot thrift.TProtocol) error

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

func (p *UserLoginArgs) Read(iprot thrift.TProtocol) error

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

func (*UserLoginArgs) Write

func (p *UserLoginArgs) Write(oprot thrift.TProtocol) error

type UserLoginResult

type UserLoginResult struct {
	Success map[string]string `thrift:"success,0" json:"success"`
}

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

func (p *UserLoginResult) Read(iprot thrift.TProtocol) error

func (*UserLoginResult) ReadField0

func (p *UserLoginResult) ReadField0(iprot thrift.TProtocol) error

func (*UserLoginResult) String

func (p *UserLoginResult) String() string

func (*UserLoginResult) Write

func (p *UserLoginResult) Write(oprot thrift.TProtocol) error

Jump to

Keyboard shortcuts

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