session

package
v0.0.0-...-695150b Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSessionHandler

func RegisterSessionHandler(s server.Server, hdlr SessionHandler, opts ...server.HandlerOption) error

Types

type SessionCreateRequest

type SessionCreateRequest struct {
	RequestBody          []byte   `protobuf:"bytes,1,opt,name=RequestBody,proto3" json:"RequestBody,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SessionCreateRequest) Descriptor

func (*SessionCreateRequest) Descriptor() ([]byte, []int)

func (*SessionCreateRequest) GetRequestBody

func (m *SessionCreateRequest) GetRequestBody() []byte

func (*SessionCreateRequest) ProtoMessage

func (*SessionCreateRequest) ProtoMessage()

func (*SessionCreateRequest) Reset

func (m *SessionCreateRequest) Reset()

func (*SessionCreateRequest) String

func (m *SessionCreateRequest) String() string

func (*SessionCreateRequest) XXX_DiscardUnknown

func (m *SessionCreateRequest) XXX_DiscardUnknown()

func (*SessionCreateRequest) XXX_Marshal

func (m *SessionCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionCreateRequest) XXX_Merge

func (m *SessionCreateRequest) XXX_Merge(src proto.Message)

func (*SessionCreateRequest) XXX_Size

func (m *SessionCreateRequest) XXX_Size() int

func (*SessionCreateRequest) XXX_Unmarshal

func (m *SessionCreateRequest) XXX_Unmarshal(b []byte) error

type SessionCreateResponse

type SessionCreateResponse struct {
	StatusCode           int32             `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	StatusMessage        string            `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"`
	SessionId            string            `protobuf:"bytes,3,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	Body                 []byte            `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	Header               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*SessionCreateResponse) Descriptor

func (*SessionCreateResponse) Descriptor() ([]byte, []int)

func (*SessionCreateResponse) GetBody

func (m *SessionCreateResponse) GetBody() []byte

func (*SessionCreateResponse) GetHeader

func (m *SessionCreateResponse) GetHeader() map[string]string

func (*SessionCreateResponse) GetSessionId

func (m *SessionCreateResponse) GetSessionId() string

func (*SessionCreateResponse) GetStatusCode

func (m *SessionCreateResponse) GetStatusCode() int32

func (*SessionCreateResponse) GetStatusMessage

func (m *SessionCreateResponse) GetStatusMessage() string

func (*SessionCreateResponse) ProtoMessage

func (*SessionCreateResponse) ProtoMessage()

func (*SessionCreateResponse) Reset

func (m *SessionCreateResponse) Reset()

func (*SessionCreateResponse) String

func (m *SessionCreateResponse) String() string

func (*SessionCreateResponse) XXX_DiscardUnknown

func (m *SessionCreateResponse) XXX_DiscardUnknown()

func (*SessionCreateResponse) XXX_Marshal

func (m *SessionCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionCreateResponse) XXX_Merge

func (m *SessionCreateResponse) XXX_Merge(src proto.Message)

func (*SessionCreateResponse) XXX_Size

func (m *SessionCreateResponse) XXX_Size() int

func (*SessionCreateResponse) XXX_Unmarshal

func (m *SessionCreateResponse) XXX_Unmarshal(b []byte) error

type SessionRequest

type SessionRequest struct {
	SessionId            string   `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
	SessionToken         string   `protobuf:"bytes,2,opt,name=sessionToken,proto3" json:"sessionToken,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SessionRequest) Descriptor

func (*SessionRequest) Descriptor() ([]byte, []int)

func (*SessionRequest) GetSessionId

func (m *SessionRequest) GetSessionId() string

func (*SessionRequest) GetSessionToken

func (m *SessionRequest) GetSessionToken() string

func (*SessionRequest) ProtoMessage

func (*SessionRequest) ProtoMessage()

func (*SessionRequest) Reset

func (m *SessionRequest) Reset()

func (*SessionRequest) String

func (m *SessionRequest) String() string

func (*SessionRequest) XXX_DiscardUnknown

func (m *SessionRequest) XXX_DiscardUnknown()

func (*SessionRequest) XXX_Marshal

func (m *SessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionRequest) XXX_Merge

func (m *SessionRequest) XXX_Merge(src proto.Message)

func (*SessionRequest) XXX_Size

func (m *SessionRequest) XXX_Size() int

func (*SessionRequest) XXX_Unmarshal

func (m *SessionRequest) XXX_Unmarshal(b []byte) error

type SessionResponse

type SessionResponse struct {
	StatusCode           int32             `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	StatusMessage        string            `protobuf:"bytes,2,opt,name=statusMessage,proto3" json:"statusMessage,omitempty"`
	Header               map[string]string `` /* 153-byte string literal not displayed */
	Body                 []byte            `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*SessionResponse) Descriptor

func (*SessionResponse) Descriptor() ([]byte, []int)

func (*SessionResponse) GetBody

func (m *SessionResponse) GetBody() []byte

func (*SessionResponse) GetHeader

func (m *SessionResponse) GetHeader() map[string]string

func (*SessionResponse) GetStatusCode

func (m *SessionResponse) GetStatusCode() int32

func (*SessionResponse) GetStatusMessage

func (m *SessionResponse) GetStatusMessage() string

func (*SessionResponse) ProtoMessage

func (*SessionResponse) ProtoMessage()

func (*SessionResponse) Reset

func (m *SessionResponse) Reset()

func (*SessionResponse) String

func (m *SessionResponse) String() string

func (*SessionResponse) XXX_DiscardUnknown

func (m *SessionResponse) XXX_DiscardUnknown()

func (*SessionResponse) XXX_Marshal

func (m *SessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionResponse) XXX_Merge

func (m *SessionResponse) XXX_Merge(src proto.Message)

func (*SessionResponse) XXX_Size

func (m *SessionResponse) XXX_Size() int

func (*SessionResponse) XXX_Unmarshal

func (m *SessionResponse) XXX_Unmarshal(b []byte) error

type SessionService

type SessionService interface {
	CreateSession(ctx context.Context, in *SessionCreateRequest, opts ...client.CallOption) (*SessionCreateResponse, error)
	DeleteSession(ctx context.Context, in *SessionRequest, opts ...client.CallOption) (*SessionResponse, error)
	GetAllActiveSessions(ctx context.Context, in *SessionRequest, opts ...client.CallOption) (*SessionResponse, error)
	GetSession(ctx context.Context, in *SessionRequest, opts ...client.CallOption) (*SessionResponse, error)
	GetSessionUserName(ctx context.Context, in *SessionRequest, opts ...client.CallOption) (*SessionUserName, error)
	GetSessionService(ctx context.Context, in *SessionRequest, opts ...client.CallOption) (*SessionResponse, error)
}

func NewSessionService

func NewSessionService(name string, c client.Client) SessionService

type SessionUserName

type SessionUserName struct {
	UserName             string   `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SessionUserName) Descriptor

func (*SessionUserName) Descriptor() ([]byte, []int)

func (*SessionUserName) GetUserName

func (m *SessionUserName) GetUserName() string

func (*SessionUserName) ProtoMessage

func (*SessionUserName) ProtoMessage()

func (*SessionUserName) Reset

func (m *SessionUserName) Reset()

func (*SessionUserName) String

func (m *SessionUserName) String() string

func (*SessionUserName) XXX_DiscardUnknown

func (m *SessionUserName) XXX_DiscardUnknown()

func (*SessionUserName) XXX_Marshal

func (m *SessionUserName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessionUserName) XXX_Merge

func (m *SessionUserName) XXX_Merge(src proto.Message)

func (*SessionUserName) XXX_Size

func (m *SessionUserName) XXX_Size() int

func (*SessionUserName) XXX_Unmarshal

func (m *SessionUserName) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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