simplesession

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var TSimpleSessionService_WRemoveSessionResult_Success_DEFAULT bool

Functions

This section is empty.

Types

type TErrorCode

type TErrorCode int64
const (
	TErrorCode_ESuccess TErrorCode = 0
	TErrorCode_EFailed  TErrorCode = 1
)

func TErrorCodeFromString

func TErrorCodeFromString(s string) (TErrorCode, error)

func TErrorCodePtr

func TErrorCodePtr(v TErrorCode) *TErrorCode

func (TErrorCode) MarshalText

func (p TErrorCode) MarshalText() ([]byte, error)

func (*TErrorCode) Scan

func (p *TErrorCode) Scan(value interface{}) error

func (TErrorCode) String

func (p TErrorCode) String() string

func (*TErrorCode) UnmarshalText

func (p *TErrorCode) UnmarshalText(text []byte) error

func (*TErrorCode) Value

func (p *TErrorCode) Value() (driver.Value, error)

type TInternalSessionID

type TInternalSessionID int64

func TInternalSessionIDPtr

func TInternalSessionIDPtr(v TInternalSessionID) *TInternalSessionID

type TSessionCode

type TSessionCode int64
const (
	TSessionCode_ENoSession      TSessionCode = 0
	TSessionCode_EFullRight      TSessionCode = 1
	TSessionCode_EPartialRight   TSessionCode = 2
	TSessionCode_ERightExtend100 TSessionCode = 100
	TSessionCode_ERightExtend101 TSessionCode = 101
	TSessionCode_ERightExtend102 TSessionCode = 102
	TSessionCode_ERightExtend103 TSessionCode = 103
	TSessionCode_ERightExtend104 TSessionCode = 104
	TSessionCode_ERightExtend105 TSessionCode = 105
	TSessionCode_ERightExtend106 TSessionCode = 106
	TSessionCode_ERightExtend107 TSessionCode = 107
	TSessionCode_ERightExtend108 TSessionCode = 108
)

func TSessionCodeFromString

func TSessionCodeFromString(s string) (TSessionCode, error)

func TSessionCodePtr

func TSessionCodePtr(v TSessionCode) *TSessionCode

func (TSessionCode) MarshalText

func (p TSessionCode) MarshalText() ([]byte, error)

func (*TSessionCode) Scan

func (p *TSessionCode) Scan(value interface{}) error

func (TSessionCode) String

func (p TSessionCode) String() string

func (*TSessionCode) UnmarshalText

func (p *TSessionCode) UnmarshalText(text []byte) error

func (*TSessionCode) Value

func (p *TSessionCode) Value() (driver.Value, error)

type TSessionKey

type TSessionKey string
var TSessionKeyResult__Session_DEFAULT TSessionKey

func TSessionKeyPtr

func TSessionKeyPtr(v TSessionKey) *TSessionKey

type TSessionKeyResult_

type TSessionKeyResult_ struct {
	Error   TErrorCode   `thrift:"error,1" db:"error" json:"error"`
	Session *TSessionKey `thrift:"session,2" db:"session" json:"session,omitempty"`
}

Attributes:

  • Error
  • Session
var TSimpleSessionService_WCreateSessionResult_Success_DEFAULT *TSessionKeyResult_

func NewTSessionKeyResult_

func NewTSessionKeyResult_() *TSessionKeyResult_

func (*TSessionKeyResult_) GetError

func (p *TSessionKeyResult_) GetError() TErrorCode

func (*TSessionKeyResult_) GetSession

func (p *TSessionKeyResult_) GetSession() TSessionKey

func (*TSessionKeyResult_) IsSetSession

func (p *TSessionKeyResult_) IsSetSession() bool

func (*TSessionKeyResult_) Read

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

func (*TSessionKeyResult_) ReadField1

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

func (*TSessionKeyResult_) ReadField2

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

func (*TSessionKeyResult_) String

func (p *TSessionKeyResult_) String() string

func (*TSessionKeyResult_) Write

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

type TSimpleSessionService

type TSimpleSessionService interface {
	// Parameters:
	//  - SessionKey
	GetSession(ctx context.Context, sessionKey TSessionKey) (r *TUserResult_, err error)
}

type TSimpleSessionServiceClient

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

func NewTSimpleSessionServiceClient

func NewTSimpleSessionServiceClient(c thrift.TClient) *TSimpleSessionServiceClient

func NewTSimpleSessionServiceClientProtocol

func NewTSimpleSessionServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TSimpleSessionServiceClient

func (*TSimpleSessionServiceClient) Client_

func (*TSimpleSessionServiceClient) GetSession

func (p *TSimpleSessionServiceClient) GetSession(ctx context.Context, sessionKey TSessionKey) (r *TUserResult_, err error)

Parameters:

  • SessionKey

type TSimpleSessionServiceGetSessionArgs

type TSimpleSessionServiceGetSessionArgs struct {
	SessionKey TSessionKey `thrift:"sessionKey,1" db:"sessionKey" json:"sessionKey"`
}

Attributes:

  • SessionKey

func NewTSimpleSessionServiceGetSessionArgs

func NewTSimpleSessionServiceGetSessionArgs() *TSimpleSessionServiceGetSessionArgs

func (*TSimpleSessionServiceGetSessionArgs) GetSessionKey

func (*TSimpleSessionServiceGetSessionArgs) Read

func (*TSimpleSessionServiceGetSessionArgs) ReadField1

func (*TSimpleSessionServiceGetSessionArgs) String

func (*TSimpleSessionServiceGetSessionArgs) Write

type TSimpleSessionServiceGetSessionResult

type TSimpleSessionServiceGetSessionResult struct {
	Success *TUserResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewTSimpleSessionServiceGetSessionResult

func NewTSimpleSessionServiceGetSessionResult() *TSimpleSessionServiceGetSessionResult

func (*TSimpleSessionServiceGetSessionResult) GetSuccess

func (*TSimpleSessionServiceGetSessionResult) IsSetSuccess

func (p *TSimpleSessionServiceGetSessionResult) IsSetSuccess() bool

func (*TSimpleSessionServiceGetSessionResult) Read

func (*TSimpleSessionServiceGetSessionResult) ReadField0

func (*TSimpleSessionServiceGetSessionResult) String

func (*TSimpleSessionServiceGetSessionResult) Write

type TSimpleSessionServiceProcessor

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

func NewTSimpleSessionServiceProcessor

func NewTSimpleSessionServiceProcessor(handler TSimpleSessionService) *TSimpleSessionServiceProcessor

func (*TSimpleSessionServiceProcessor) AddToProcessorMap

func (p *TSimpleSessionServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*TSimpleSessionServiceProcessor) GetProcessorFunction

func (p *TSimpleSessionServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*TSimpleSessionServiceProcessor) Process

func (p *TSimpleSessionServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*TSimpleSessionServiceProcessor) ProcessorMap

type TSimpleSessionService_W

type TSimpleSessionService_W interface {
	TSimpleSessionService

	// Parameters:
	//  - UserInfo
	CreateSession(ctx context.Context, userInfo *TUserSessionInfo) (r *TSessionKeyResult_, err error)
	// Parameters:
	//  - SessionKey
	RemoveSession(ctx context.Context, sessionKey TSessionKey) (r bool, err error)
}

type TSimpleSessionService_WClient

type TSimpleSessionService_WClient struct {
	*TSimpleSessionServiceClient
}

func NewTSimpleSessionService_WClient

func NewTSimpleSessionService_WClient(c thrift.TClient) *TSimpleSessionService_WClient

func NewTSimpleSessionService_WClientProtocol

func NewTSimpleSessionService_WClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TSimpleSessionService_WClient

func (*TSimpleSessionService_WClient) CreateSession

func (p *TSimpleSessionService_WClient) CreateSession(ctx context.Context, userInfo *TUserSessionInfo) (r *TSessionKeyResult_, err error)

Parameters:

  • UserInfo

func (*TSimpleSessionService_WClient) RemoveSession

func (p *TSimpleSessionService_WClient) RemoveSession(ctx context.Context, sessionKey TSessionKey) (r bool, err error)

Parameters:

  • SessionKey

type TSimpleSessionService_WCreateSessionArgs

type TSimpleSessionService_WCreateSessionArgs struct {
	UserInfo *TUserSessionInfo `thrift:"userInfo,1" db:"userInfo" json:"userInfo"`
}

Attributes:

  • UserInfo

func NewTSimpleSessionService_WCreateSessionArgs

func NewTSimpleSessionService_WCreateSessionArgs() *TSimpleSessionService_WCreateSessionArgs

func (*TSimpleSessionService_WCreateSessionArgs) GetUserInfo

func (*TSimpleSessionService_WCreateSessionArgs) IsSetUserInfo

func (*TSimpleSessionService_WCreateSessionArgs) Read

func (*TSimpleSessionService_WCreateSessionArgs) ReadField1

func (*TSimpleSessionService_WCreateSessionArgs) String

func (*TSimpleSessionService_WCreateSessionArgs) Write

type TSimpleSessionService_WCreateSessionResult

type TSimpleSessionService_WCreateSessionResult struct {
	Success *TSessionKeyResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewTSimpleSessionService_WCreateSessionResult

func NewTSimpleSessionService_WCreateSessionResult() *TSimpleSessionService_WCreateSessionResult

func (*TSimpleSessionService_WCreateSessionResult) GetSuccess

func (*TSimpleSessionService_WCreateSessionResult) IsSetSuccess

func (*TSimpleSessionService_WCreateSessionResult) Read

func (*TSimpleSessionService_WCreateSessionResult) ReadField0

func (*TSimpleSessionService_WCreateSessionResult) String

func (*TSimpleSessionService_WCreateSessionResult) Write

type TSimpleSessionService_WProcessor

type TSimpleSessionService_WProcessor struct {
	*TSimpleSessionServiceProcessor
}

type TSimpleSessionService_WRemoveSessionArgs

type TSimpleSessionService_WRemoveSessionArgs struct {
	SessionKey TSessionKey `thrift:"sessionKey,1" db:"sessionKey" json:"sessionKey"`
}

Attributes:

  • SessionKey

func NewTSimpleSessionService_WRemoveSessionArgs

func NewTSimpleSessionService_WRemoveSessionArgs() *TSimpleSessionService_WRemoveSessionArgs

func (*TSimpleSessionService_WRemoveSessionArgs) GetSessionKey

func (*TSimpleSessionService_WRemoveSessionArgs) Read

func (*TSimpleSessionService_WRemoveSessionArgs) ReadField1

func (*TSimpleSessionService_WRemoveSessionArgs) String

func (*TSimpleSessionService_WRemoveSessionArgs) Write

type TSimpleSessionService_WRemoveSessionResult

type TSimpleSessionService_WRemoveSessionResult struct {
	Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewTSimpleSessionService_WRemoveSessionResult

func NewTSimpleSessionService_WRemoveSessionResult() *TSimpleSessionService_WRemoveSessionResult

func (*TSimpleSessionService_WRemoveSessionResult) GetSuccess

func (*TSimpleSessionService_WRemoveSessionResult) IsSetSuccess

func (*TSimpleSessionService_WRemoveSessionResult) Read

func (*TSimpleSessionService_WRemoveSessionResult) ReadField0

func (*TSimpleSessionService_WRemoveSessionResult) String

func (*TSimpleSessionService_WRemoveSessionResult) Write

type TUID

type TUID int64

func TUIDPtr

func TUIDPtr(v TUID) *TUID

type TUserResult_

type TUserResult_ struct {
	Error    TErrorCode        `thrift:"error,1,required" db:"error" json:"error"`
	UserInfo *TUserSessionInfo `thrift:"userInfo,2" db:"userInfo" json:"userInfo,omitempty"`
}

Attributes:

  • Error
  • UserInfo
var TSimpleSessionServiceGetSessionResult_Success_DEFAULT *TUserResult_

func NewTUserResult_

func NewTUserResult_() *TUserResult_

func (*TUserResult_) GetError

func (p *TUserResult_) GetError() TErrorCode

func (*TUserResult_) GetUserInfo

func (p *TUserResult_) GetUserInfo() *TUserSessionInfo

func (*TUserResult_) IsSetUserInfo

func (p *TUserResult_) IsSetUserInfo() bool

func (*TUserResult_) Read

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

func (*TUserResult_) ReadField1

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

func (*TUserResult_) ReadField2

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

func (*TUserResult_) String

func (p *TUserResult_) String() string

func (*TUserResult_) Write

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

type TUserRights

type TUserRights string

func TUserRightsPtr

func TUserRightsPtr(v TUserRights) *TUserRights

type TUserSessionInfo

type TUserSessionInfo struct {
	Code        TSessionCode `thrift:"code,1" db:"code" json:"code"`
	UID         TUID         `thrift:"uid,2" db:"uid" json:"uid"`
	Permissions TUserRights  `thrift:"permissions,3" db:"permissions" json:"permissions"`
	DeviceInfo  string       `thrift:"deviceInfo,4" db:"deviceInfo" json:"deviceInfo"`
	Data        string       `thrift:"data,5" db:"data" json:"data"`
	ExpiredTime int64        `thrift:"expiredTime,6" db:"expiredTime" json:"expiredTime"`
	Version     int32        `thrift:"version,7" db:"version" json:"version"`
}

Attributes:

  • Code
  • UID
  • Permissions
  • DeviceInfo
  • Data
  • ExpiredTime
  • Version
var TSimpleSessionService_WCreateSessionArgs_UserInfo_DEFAULT *TUserSessionInfo
var TUserResult__UserInfo_DEFAULT *TUserSessionInfo

func NewTUserSessionInfo

func NewTUserSessionInfo() *TUserSessionInfo

func (*TUserSessionInfo) GetCode

func (p *TUserSessionInfo) GetCode() TSessionCode

func (*TUserSessionInfo) GetData

func (p *TUserSessionInfo) GetData() string

func (*TUserSessionInfo) GetDeviceInfo

func (p *TUserSessionInfo) GetDeviceInfo() string

func (*TUserSessionInfo) GetExpiredTime

func (p *TUserSessionInfo) GetExpiredTime() int64

func (*TUserSessionInfo) GetPermissions

func (p *TUserSessionInfo) GetPermissions() TUserRights

func (*TUserSessionInfo) GetUID

func (p *TUserSessionInfo) GetUID() TUID

func (*TUserSessionInfo) GetVersion

func (p *TUserSessionInfo) GetVersion() int32

func (*TUserSessionInfo) Read

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

func (*TUserSessionInfo) ReadField1

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

func (*TUserSessionInfo) ReadField2

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

func (*TUserSessionInfo) ReadField3

func (p *TUserSessionInfo) ReadField3(iprot thrift.TProtocol) error

func (*TUserSessionInfo) ReadField4

func (p *TUserSessionInfo) ReadField4(iprot thrift.TProtocol) error

func (*TUserSessionInfo) ReadField5

func (p *TUserSessionInfo) ReadField5(iprot thrift.TProtocol) error

func (*TUserSessionInfo) ReadField6

func (p *TUserSessionInfo) ReadField6(iprot thrift.TProtocol) error

func (*TUserSessionInfo) ReadField7

func (p *TUserSessionInfo) ReadField7(iprot thrift.TProtocol) error

func (*TUserSessionInfo) String

func (p *TUserSessionInfo) String() string

func (*TUserSessionInfo) Write

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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