Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)
- type ContainerSessionContext
- func (x *ContainerSessionContext) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ContainerSessionContext) GetContainerId() *grpc.ContainerID
- func (x *ContainerSessionContext) GetVerb() ContainerSessionContext_Verb
- func (x *ContainerSessionContext) GetWildcard() bool
- func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ContainerSessionContext) MarshalJSON() ([]byte, error)
- func (x *ContainerSessionContext) MarshalProtobuf(dst []byte) []byte
- func (x *ContainerSessionContext) SetContainerId(v *grpc.ContainerID)
- func (x *ContainerSessionContext) SetVerb(v ContainerSessionContext_Verb)
- func (x *ContainerSessionContext) SetWildcard(v bool)
- func (x *ContainerSessionContext) StableSize() (size int)
- func (x *ContainerSessionContext) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ContainerSessionContext) UnmarshalJSON(data []byte) error
- func (x *ContainerSessionContext) UnmarshalProtobuf(src []byte) (err error)
- type ContainerSessionContext_Verb
- type CreateRequest
- func (x *CreateRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *CreateRequest) GetBody() *CreateRequest_Body
- func (x *CreateRequest) GetMetaHeader() *RequestMetaHeader
- func (x *CreateRequest) GetVerifyHeader() *RequestVerificationHeader
- func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer)
- func (x *CreateRequest) MarshalJSON() ([]byte, error)
- func (x *CreateRequest) MarshalProtobuf(dst []byte) []byte
- func (x *CreateRequest) ReadSignedData(buf []byte) ([]byte, error)
- func (x *CreateRequest) SetBody(v *CreateRequest_Body)
- func (x *CreateRequest) SetMetaHeader(v *RequestMetaHeader)
- func (x *CreateRequest) SetVerifyHeader(v *RequestVerificationHeader)
- func (x *CreateRequest) SignedDataSize() int
- func (x *CreateRequest) StableSize() (size int)
- func (x *CreateRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *CreateRequest) UnmarshalJSON(data []byte) error
- func (x *CreateRequest) UnmarshalProtobuf(src []byte) (err error)
- type CreateRequest_Body
- func (x *CreateRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *CreateRequest_Body) GetExpiration() uint64
- func (x *CreateRequest_Body) GetOwnerId() *grpc.OwnerID
- func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *CreateRequest_Body) MarshalJSON() ([]byte, error)
- func (x *CreateRequest_Body) MarshalProtobuf(dst []byte) []byte
- func (x *CreateRequest_Body) SetExpiration(v uint64)
- func (x *CreateRequest_Body) SetOwnerId(v *grpc.OwnerID)
- func (x *CreateRequest_Body) StableSize() (size int)
- func (x *CreateRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *CreateRequest_Body) UnmarshalJSON(data []byte) error
- func (x *CreateRequest_Body) UnmarshalProtobuf(src []byte) (err error)
- type CreateResponse
- func (x *CreateResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *CreateResponse) GetBody() *CreateResponse_Body
- func (x *CreateResponse) GetMetaHeader() *ResponseMetaHeader
- func (x *CreateResponse) GetVerifyHeader() *ResponseVerificationHeader
- func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (x *CreateResponse) MarshalJSON() ([]byte, error)
- func (x *CreateResponse) MarshalProtobuf(dst []byte) []byte
- func (x *CreateResponse) ReadSignedData(buf []byte) ([]byte, error)
- func (x *CreateResponse) SetBody(v *CreateResponse_Body)
- func (x *CreateResponse) SetMetaHeader(v *ResponseMetaHeader)
- func (x *CreateResponse) SetVerifyHeader(v *ResponseVerificationHeader)
- func (x *CreateResponse) SignedDataSize() int
- func (x *CreateResponse) StableSize() (size int)
- func (x *CreateResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *CreateResponse) UnmarshalJSON(data []byte) error
- func (x *CreateResponse) UnmarshalProtobuf(src []byte) (err error)
- type CreateResponse_Body
- func (x *CreateResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *CreateResponse_Body) GetId() []byte
- func (x *CreateResponse_Body) GetSessionKey() []byte
- func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *CreateResponse_Body) MarshalJSON() ([]byte, error)
- func (x *CreateResponse_Body) MarshalProtobuf(dst []byte) []byte
- func (x *CreateResponse_Body) SetId(v []byte)
- func (x *CreateResponse_Body) SetSessionKey(v []byte)
- func (x *CreateResponse_Body) StableSize() (size int)
- func (x *CreateResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *CreateResponse_Body) UnmarshalJSON(data []byte) error
- func (x *CreateResponse_Body) UnmarshalProtobuf(src []byte) (err error)
- type ObjectSessionContext
- func (x *ObjectSessionContext) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ObjectSessionContext) GetTarget() *ObjectSessionContext_Target
- func (x *ObjectSessionContext) GetVerb() ObjectSessionContext_Verb
- func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ObjectSessionContext) MarshalJSON() ([]byte, error)
- func (x *ObjectSessionContext) MarshalProtobuf(dst []byte) []byte
- func (x *ObjectSessionContext) SetTarget(v *ObjectSessionContext_Target)
- func (x *ObjectSessionContext) SetVerb(v ObjectSessionContext_Verb)
- func (x *ObjectSessionContext) StableSize() (size int)
- func (x *ObjectSessionContext) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ObjectSessionContext) UnmarshalJSON(data []byte) error
- func (x *ObjectSessionContext) UnmarshalProtobuf(src []byte) (err error)
- type ObjectSessionContext_Target
- func (x *ObjectSessionContext_Target) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ObjectSessionContext_Target) GetContainer() *grpc.ContainerID
- func (x *ObjectSessionContext_Target) GetObjects() []grpc.ObjectID
- func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ObjectSessionContext_Target) MarshalJSON() ([]byte, error)
- func (x *ObjectSessionContext_Target) MarshalProtobuf(dst []byte) []byte
- func (x *ObjectSessionContext_Target) SetContainer(v *grpc.ContainerID)
- func (x *ObjectSessionContext_Target) SetObjects(v []grpc.ObjectID)
- func (x *ObjectSessionContext_Target) StableSize() (size int)
- func (x *ObjectSessionContext_Target) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ObjectSessionContext_Target) UnmarshalJSON(data []byte) error
- func (x *ObjectSessionContext_Target) UnmarshalProtobuf(src []byte) (err error)
- type ObjectSessionContext_Verb
- type RequestMetaHeader
- func (x *RequestMetaHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *RequestMetaHeader) GetBearerToken() *grpc1.BearerToken
- func (x *RequestMetaHeader) GetEpoch() uint64
- func (x *RequestMetaHeader) GetMagicNumber() uint64
- func (x *RequestMetaHeader) GetOrigin() *RequestMetaHeader
- func (x *RequestMetaHeader) GetSessionToken() *SessionToken
- func (x *RequestMetaHeader) GetTtl() uint32
- func (x *RequestMetaHeader) GetVersion() *grpc.Version
- func (x *RequestMetaHeader) GetXHeaders() []XHeader
- func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer)
- func (x *RequestMetaHeader) MarshalJSON() ([]byte, error)
- func (x *RequestMetaHeader) MarshalProtobuf(dst []byte) []byte
- func (x *RequestMetaHeader) SetBearerToken(v *grpc1.BearerToken)
- func (x *RequestMetaHeader) SetEpoch(v uint64)
- func (x *RequestMetaHeader) SetMagicNumber(v uint64)
- func (x *RequestMetaHeader) SetOrigin(v *RequestMetaHeader)
- func (x *RequestMetaHeader) SetSessionToken(v *SessionToken)
- func (x *RequestMetaHeader) SetTtl(v uint32)
- func (x *RequestMetaHeader) SetVersion(v *grpc.Version)
- func (x *RequestMetaHeader) SetXHeaders(v []XHeader)
- func (x *RequestMetaHeader) StableSize() (size int)
- func (x *RequestMetaHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *RequestMetaHeader) UnmarshalJSON(data []byte) error
- func (x *RequestMetaHeader) UnmarshalProtobuf(src []byte) (err error)
- type RequestVerificationHeader
- func (x *RequestVerificationHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *RequestVerificationHeader) GetBodySignature() *grpc.Signature
- func (x *RequestVerificationHeader) GetMetaSignature() *grpc.Signature
- func (x *RequestVerificationHeader) GetOrigin() *RequestVerificationHeader
- func (x *RequestVerificationHeader) GetOriginSignature() *grpc.Signature
- func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer)
- func (x *RequestVerificationHeader) MarshalJSON() ([]byte, error)
- func (x *RequestVerificationHeader) MarshalProtobuf(dst []byte) []byte
- func (x *RequestVerificationHeader) SetBodySignature(v *grpc.Signature)
- func (x *RequestVerificationHeader) SetMetaSignature(v *grpc.Signature)
- func (x *RequestVerificationHeader) SetOrigin(v *RequestVerificationHeader)
- func (x *RequestVerificationHeader) SetOriginSignature(v *grpc.Signature)
- func (x *RequestVerificationHeader) StableSize() (size int)
- func (x *RequestVerificationHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *RequestVerificationHeader) UnmarshalJSON(data []byte) error
- func (x *RequestVerificationHeader) UnmarshalProtobuf(src []byte) (err error)
- type ResponseMetaHeader
- func (x *ResponseMetaHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ResponseMetaHeader) GetEpoch() uint64
- func (x *ResponseMetaHeader) GetOrigin() *ResponseMetaHeader
- func (x *ResponseMetaHeader) GetStatus() *grpc2.Status
- func (x *ResponseMetaHeader) GetTtl() uint32
- func (x *ResponseMetaHeader) GetVersion() *grpc.Version
- func (x *ResponseMetaHeader) GetXHeaders() []XHeader
- func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ResponseMetaHeader) MarshalJSON() ([]byte, error)
- func (x *ResponseMetaHeader) MarshalProtobuf(dst []byte) []byte
- func (x *ResponseMetaHeader) SetEpoch(v uint64)
- func (x *ResponseMetaHeader) SetOrigin(v *ResponseMetaHeader)
- func (x *ResponseMetaHeader) SetStatus(v *grpc2.Status)
- func (x *ResponseMetaHeader) SetTtl(v uint32)
- func (x *ResponseMetaHeader) SetVersion(v *grpc.Version)
- func (x *ResponseMetaHeader) SetXHeaders(v []XHeader)
- func (x *ResponseMetaHeader) StableSize() (size int)
- func (x *ResponseMetaHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ResponseMetaHeader) UnmarshalJSON(data []byte) error
- func (x *ResponseMetaHeader) UnmarshalProtobuf(src []byte) (err error)
- type ResponseVerificationHeader
- func (x *ResponseVerificationHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *ResponseVerificationHeader) GetBodySignature() *grpc.Signature
- func (x *ResponseVerificationHeader) GetMetaSignature() *grpc.Signature
- func (x *ResponseVerificationHeader) GetOrigin() *ResponseVerificationHeader
- func (x *ResponseVerificationHeader) GetOriginSignature() *grpc.Signature
- func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer)
- func (x *ResponseVerificationHeader) MarshalJSON() ([]byte, error)
- func (x *ResponseVerificationHeader) MarshalProtobuf(dst []byte) []byte
- func (x *ResponseVerificationHeader) SetBodySignature(v *grpc.Signature)
- func (x *ResponseVerificationHeader) SetMetaSignature(v *grpc.Signature)
- func (x *ResponseVerificationHeader) SetOrigin(v *ResponseVerificationHeader)
- func (x *ResponseVerificationHeader) SetOriginSignature(v *grpc.Signature)
- func (x *ResponseVerificationHeader) StableSize() (size int)
- func (x *ResponseVerificationHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *ResponseVerificationHeader) UnmarshalJSON(data []byte) error
- func (x *ResponseVerificationHeader) UnmarshalProtobuf(src []byte) (err error)
- type SessionServiceClient
- type SessionServiceServer
- type SessionToken
- func (x *SessionToken) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *SessionToken) GetBody() *SessionToken_Body
- func (x *SessionToken) GetSignature() *grpc.Signature
- func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer)
- func (x *SessionToken) MarshalJSON() ([]byte, error)
- func (x *SessionToken) MarshalProtobuf(dst []byte) []byte
- func (x *SessionToken) SetBody(v *SessionToken_Body)
- func (x *SessionToken) SetSignature(v *grpc.Signature)
- func (x *SessionToken) StableSize() (size int)
- func (x *SessionToken) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *SessionToken) UnmarshalJSON(data []byte) error
- func (x *SessionToken) UnmarshalProtobuf(src []byte) (err error)
- type SessionToken_Body
- func (x *SessionToken_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *SessionToken_Body) GetContainer() *ContainerSessionContext
- func (x *SessionToken_Body) GetContext() isSessionToken_Body_Context
- func (x *SessionToken_Body) GetId() []byte
- func (x *SessionToken_Body) GetLifetime() *SessionToken_Body_TokenLifetime
- func (x *SessionToken_Body) GetObject() *ObjectSessionContext
- func (x *SessionToken_Body) GetOwnerId() *grpc.OwnerID
- func (x *SessionToken_Body) GetSessionKey() []byte
- func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer)
- func (x *SessionToken_Body) MarshalJSON() ([]byte, error)
- func (x *SessionToken_Body) MarshalProtobuf(dst []byte) []byte
- func (x *SessionToken_Body) SetContainer(v *ContainerSessionContext)
- func (x *SessionToken_Body) SetContext(v isSessionToken_Body_Context)
- func (x *SessionToken_Body) SetId(v []byte)
- func (x *SessionToken_Body) SetLifetime(v *SessionToken_Body_TokenLifetime)
- func (x *SessionToken_Body) SetObject(v *ObjectSessionContext)
- func (x *SessionToken_Body) SetOwnerId(v *grpc.OwnerID)
- func (x *SessionToken_Body) SetSessionKey(v []byte)
- func (x *SessionToken_Body) StableSize() (size int)
- func (x *SessionToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *SessionToken_Body) UnmarshalJSON(data []byte) error
- func (x *SessionToken_Body) UnmarshalProtobuf(src []byte) (err error)
- type SessionToken_Body_Container
- type SessionToken_Body_Object
- type SessionToken_Body_TokenLifetime
- func (x *SessionToken_Body_TokenLifetime) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *SessionToken_Body_TokenLifetime) GetExp() uint64
- func (x *SessionToken_Body_TokenLifetime) GetIat() uint64
- func (x *SessionToken_Body_TokenLifetime) GetNbf() uint64
- func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer)
- func (x *SessionToken_Body_TokenLifetime) MarshalJSON() ([]byte, error)
- func (x *SessionToken_Body_TokenLifetime) MarshalProtobuf(dst []byte) []byte
- func (x *SessionToken_Body_TokenLifetime) SetExp(v uint64)
- func (x *SessionToken_Body_TokenLifetime) SetIat(v uint64)
- func (x *SessionToken_Body_TokenLifetime) SetNbf(v uint64)
- func (x *SessionToken_Body_TokenLifetime) StableSize() (size int)
- func (x *SessionToken_Body_TokenLifetime) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *SessionToken_Body_TokenLifetime) UnmarshalJSON(data []byte) error
- func (x *SessionToken_Body_TokenLifetime) UnmarshalProtobuf(src []byte) (err error)
- type UnimplementedSessionServiceServer
- type UnsafeSessionServiceServer
- type XHeader
- func (x *XHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
- func (x *XHeader) GetKey() string
- func (x *XHeader) GetValue() string
- func (x *XHeader) MarshalEasyJSON(out *jwriter.Writer)
- func (x *XHeader) MarshalJSON() ([]byte, error)
- func (x *XHeader) MarshalProtobuf(dst []byte) []byte
- func (x *XHeader) SetKey(v string)
- func (x *XHeader) SetValue(v string)
- func (x *XHeader) StableSize() (size int)
- func (x *XHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (x *XHeader) UnmarshalJSON(data []byte) error
- func (x *XHeader) UnmarshalProtobuf(src []byte) (err error)
Constants ¶
const (
SessionService_Create_FullMethodName = "/neo.fs.v2.session.SessionService/Create"
)
Variables ¶
var ( ObjectSessionContext_Verb_name = map[int32]string{ 0: "VERB_UNSPECIFIED", 1: "PUT", 2: "GET", 3: "HEAD", 4: "SEARCH", 5: "DELETE", 6: "RANGE", 7: "RANGEHASH", 8: "PATCH", } ObjectSessionContext_Verb_value = map[string]int32{ "VERB_UNSPECIFIED": 0, "PUT": 1, "GET": 2, "HEAD": 3, "SEARCH": 4, "DELETE": 5, "RANGE": 6, "RANGEHASH": 7, "PATCH": 8, } )
var ( ContainerSessionContext_Verb_name = map[int32]string{ 0: "VERB_UNSPECIFIED", 1: "PUT", 2: "DELETE", 3: "SETEACL", } ContainerSessionContext_Verb_value = map[string]int32{ "VERB_UNSPECIFIED": 0, "PUT": 1, "DELETE": 2, "SETEACL": 3, } )
var SessionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "neo.fs.v2.session.SessionService", HandlerType: (*SessionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _SessionService_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/session/grpc/service.proto", }
SessionService_ServiceDesc is the grpc.ServiceDesc for SessionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSessionServiceServer ¶
func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)
Types ¶
type ContainerSessionContext ¶
type ContainerSessionContext struct { Verb ContainerSessionContext_Verb `json:"verb"` Wildcard bool `json:"wildcard"` ContainerId *grpc.ContainerID `json:"containerID"` }
func (*ContainerSessionContext) EmitProtobuf ¶
func (x *ContainerSessionContext) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ContainerSessionContext) GetContainerId ¶
func (x *ContainerSessionContext) GetContainerId() *grpc.ContainerID
func (*ContainerSessionContext) GetVerb ¶
func (x *ContainerSessionContext) GetVerb() ContainerSessionContext_Verb
func (*ContainerSessionContext) GetWildcard ¶
func (x *ContainerSessionContext) GetWildcard() bool
func (*ContainerSessionContext) MarshalEasyJSON ¶
func (x *ContainerSessionContext) MarshalEasyJSON(out *jwriter.Writer)
func (*ContainerSessionContext) MarshalJSON ¶
func (x *ContainerSessionContext) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ContainerSessionContext) MarshalProtobuf ¶
func (x *ContainerSessionContext) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ContainerSessionContext) SetContainerId ¶
func (x *ContainerSessionContext) SetContainerId(v *grpc.ContainerID)
func (*ContainerSessionContext) SetVerb ¶
func (x *ContainerSessionContext) SetVerb(v ContainerSessionContext_Verb)
func (*ContainerSessionContext) SetWildcard ¶
func (x *ContainerSessionContext) SetWildcard(v bool)
func (*ContainerSessionContext) StableSize ¶
func (x *ContainerSessionContext) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ContainerSessionContext) UnmarshalEasyJSON ¶
func (x *ContainerSessionContext) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ContainerSessionContext) UnmarshalJSON ¶
func (x *ContainerSessionContext) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ContainerSessionContext) UnmarshalProtobuf ¶
func (x *ContainerSessionContext) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ContainerSessionContext_Verb ¶
type ContainerSessionContext_Verb int32
const ( ContainerSessionContext_VERB_UNSPECIFIED ContainerSessionContext_Verb = 0 ContainerSessionContext_PUT ContainerSessionContext_Verb = 1 ContainerSessionContext_DELETE ContainerSessionContext_Verb = 2 ContainerSessionContext_SETEACL ContainerSessionContext_Verb = 3 )
func (*ContainerSessionContext_Verb) FromString ¶
func (x *ContainerSessionContext_Verb) FromString(s string) bool
func (ContainerSessionContext_Verb) String ¶
func (x ContainerSessionContext_Verb) String() string
type CreateRequest ¶
type CreateRequest struct { Body *CreateRequest_Body `json:"body"` MetaHeader *RequestMetaHeader `json:"metaHeader"` VerifyHeader *RequestVerificationHeader `json:"verifyHeader"` }
func (*CreateRequest) EmitProtobuf ¶
func (x *CreateRequest) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*CreateRequest) GetBody ¶
func (x *CreateRequest) GetBody() *CreateRequest_Body
func (*CreateRequest) GetMetaHeader ¶
func (x *CreateRequest) GetMetaHeader() *RequestMetaHeader
func (*CreateRequest) GetVerifyHeader ¶
func (x *CreateRequest) GetVerifyHeader() *RequestVerificationHeader
func (*CreateRequest) MarshalEasyJSON ¶
func (x *CreateRequest) MarshalEasyJSON(out *jwriter.Writer)
func (*CreateRequest) MarshalJSON ¶
func (x *CreateRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*CreateRequest) MarshalProtobuf ¶
func (x *CreateRequest) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*CreateRequest) ReadSignedData ¶
func (x *CreateRequest) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*CreateRequest) SetBody ¶
func (x *CreateRequest) SetBody(v *CreateRequest_Body)
func (*CreateRequest) SetMetaHeader ¶
func (x *CreateRequest) SetMetaHeader(v *RequestMetaHeader)
func (*CreateRequest) SetVerifyHeader ¶
func (x *CreateRequest) SetVerifyHeader(v *RequestVerificationHeader)
func (*CreateRequest) SignedDataSize ¶
func (x *CreateRequest) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*CreateRequest) StableSize ¶
func (x *CreateRequest) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*CreateRequest) UnmarshalEasyJSON ¶
func (x *CreateRequest) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*CreateRequest) UnmarshalJSON ¶
func (x *CreateRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*CreateRequest) UnmarshalProtobuf ¶
func (x *CreateRequest) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type CreateRequest_Body ¶
type CreateRequest_Body struct { OwnerId *grpc.OwnerID `json:"ownerId"` Expiration uint64 `json:"expiration"` }
func (*CreateRequest_Body) EmitProtobuf ¶
func (x *CreateRequest_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*CreateRequest_Body) GetExpiration ¶
func (x *CreateRequest_Body) GetExpiration() uint64
func (*CreateRequest_Body) GetOwnerId ¶
func (x *CreateRequest_Body) GetOwnerId() *grpc.OwnerID
func (*CreateRequest_Body) MarshalEasyJSON ¶
func (x *CreateRequest_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*CreateRequest_Body) MarshalJSON ¶
func (x *CreateRequest_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*CreateRequest_Body) MarshalProtobuf ¶
func (x *CreateRequest_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*CreateRequest_Body) SetExpiration ¶
func (x *CreateRequest_Body) SetExpiration(v uint64)
func (*CreateRequest_Body) SetOwnerId ¶
func (x *CreateRequest_Body) SetOwnerId(v *grpc.OwnerID)
func (*CreateRequest_Body) StableSize ¶
func (x *CreateRequest_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*CreateRequest_Body) UnmarshalEasyJSON ¶
func (x *CreateRequest_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*CreateRequest_Body) UnmarshalJSON ¶
func (x *CreateRequest_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*CreateRequest_Body) UnmarshalProtobuf ¶
func (x *CreateRequest_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type CreateResponse ¶
type CreateResponse struct { Body *CreateResponse_Body `json:"body"` MetaHeader *ResponseMetaHeader `json:"metaHeader"` VerifyHeader *ResponseVerificationHeader `json:"verifyHeader"` }
func (*CreateResponse) EmitProtobuf ¶
func (x *CreateResponse) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*CreateResponse) GetBody ¶
func (x *CreateResponse) GetBody() *CreateResponse_Body
func (*CreateResponse) GetMetaHeader ¶
func (x *CreateResponse) GetMetaHeader() *ResponseMetaHeader
func (*CreateResponse) GetVerifyHeader ¶
func (x *CreateResponse) GetVerifyHeader() *ResponseVerificationHeader
func (*CreateResponse) MarshalEasyJSON ¶
func (x *CreateResponse) MarshalEasyJSON(out *jwriter.Writer)
func (*CreateResponse) MarshalJSON ¶
func (x *CreateResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*CreateResponse) MarshalProtobuf ¶
func (x *CreateResponse) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*CreateResponse) ReadSignedData ¶
func (x *CreateResponse) ReadSignedData(buf []byte) ([]byte, error)
SignedDataSize returns size of the request signed data in bytes.
Structures with the same field values have the same signed data size.
func (*CreateResponse) SetBody ¶
func (x *CreateResponse) SetBody(v *CreateResponse_Body)
func (*CreateResponse) SetMetaHeader ¶
func (x *CreateResponse) SetMetaHeader(v *ResponseMetaHeader)
func (*CreateResponse) SetVerifyHeader ¶
func (x *CreateResponse) SetVerifyHeader(v *ResponseVerificationHeader)
func (*CreateResponse) SignedDataSize ¶
func (x *CreateResponse) SignedDataSize() int
ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.
Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.
Structures with the same field values have the same signed data.
func (*CreateResponse) StableSize ¶
func (x *CreateResponse) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*CreateResponse) UnmarshalEasyJSON ¶
func (x *CreateResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*CreateResponse) UnmarshalJSON ¶
func (x *CreateResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*CreateResponse) UnmarshalProtobuf ¶
func (x *CreateResponse) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type CreateResponse_Body ¶
func (*CreateResponse_Body) EmitProtobuf ¶
func (x *CreateResponse_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*CreateResponse_Body) GetId ¶
func (x *CreateResponse_Body) GetId() []byte
func (*CreateResponse_Body) GetSessionKey ¶
func (x *CreateResponse_Body) GetSessionKey() []byte
func (*CreateResponse_Body) MarshalEasyJSON ¶
func (x *CreateResponse_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*CreateResponse_Body) MarshalJSON ¶
func (x *CreateResponse_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*CreateResponse_Body) MarshalProtobuf ¶
func (x *CreateResponse_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*CreateResponse_Body) SetId ¶
func (x *CreateResponse_Body) SetId(v []byte)
func (*CreateResponse_Body) SetSessionKey ¶
func (x *CreateResponse_Body) SetSessionKey(v []byte)
func (*CreateResponse_Body) StableSize ¶
func (x *CreateResponse_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*CreateResponse_Body) UnmarshalEasyJSON ¶
func (x *CreateResponse_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*CreateResponse_Body) UnmarshalJSON ¶
func (x *CreateResponse_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*CreateResponse_Body) UnmarshalProtobuf ¶
func (x *CreateResponse_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ObjectSessionContext ¶
type ObjectSessionContext struct { Verb ObjectSessionContext_Verb `json:"verb"` Target *ObjectSessionContext_Target `json:"target"` }
func (*ObjectSessionContext) EmitProtobuf ¶
func (x *ObjectSessionContext) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ObjectSessionContext) GetTarget ¶
func (x *ObjectSessionContext) GetTarget() *ObjectSessionContext_Target
func (*ObjectSessionContext) GetVerb ¶
func (x *ObjectSessionContext) GetVerb() ObjectSessionContext_Verb
func (*ObjectSessionContext) MarshalEasyJSON ¶
func (x *ObjectSessionContext) MarshalEasyJSON(out *jwriter.Writer)
func (*ObjectSessionContext) MarshalJSON ¶
func (x *ObjectSessionContext) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ObjectSessionContext) MarshalProtobuf ¶
func (x *ObjectSessionContext) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ObjectSessionContext) SetTarget ¶
func (x *ObjectSessionContext) SetTarget(v *ObjectSessionContext_Target)
func (*ObjectSessionContext) SetVerb ¶
func (x *ObjectSessionContext) SetVerb(v ObjectSessionContext_Verb)
func (*ObjectSessionContext) StableSize ¶
func (x *ObjectSessionContext) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ObjectSessionContext) UnmarshalEasyJSON ¶
func (x *ObjectSessionContext) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ObjectSessionContext) UnmarshalJSON ¶
func (x *ObjectSessionContext) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ObjectSessionContext) UnmarshalProtobuf ¶
func (x *ObjectSessionContext) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ObjectSessionContext_Target ¶
type ObjectSessionContext_Target struct { Container *grpc.ContainerID `json:"container"` Objects []grpc.ObjectID `json:"objects"` }
func (*ObjectSessionContext_Target) EmitProtobuf ¶
func (x *ObjectSessionContext_Target) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ObjectSessionContext_Target) GetContainer ¶
func (x *ObjectSessionContext_Target) GetContainer() *grpc.ContainerID
func (*ObjectSessionContext_Target) GetObjects ¶
func (x *ObjectSessionContext_Target) GetObjects() []grpc.ObjectID
func (*ObjectSessionContext_Target) MarshalEasyJSON ¶
func (x *ObjectSessionContext_Target) MarshalEasyJSON(out *jwriter.Writer)
func (*ObjectSessionContext_Target) MarshalJSON ¶
func (x *ObjectSessionContext_Target) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ObjectSessionContext_Target) MarshalProtobuf ¶
func (x *ObjectSessionContext_Target) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ObjectSessionContext_Target) SetContainer ¶
func (x *ObjectSessionContext_Target) SetContainer(v *grpc.ContainerID)
func (*ObjectSessionContext_Target) SetObjects ¶
func (x *ObjectSessionContext_Target) SetObjects(v []grpc.ObjectID)
func (*ObjectSessionContext_Target) StableSize ¶
func (x *ObjectSessionContext_Target) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ObjectSessionContext_Target) UnmarshalEasyJSON ¶
func (x *ObjectSessionContext_Target) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ObjectSessionContext_Target) UnmarshalJSON ¶
func (x *ObjectSessionContext_Target) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ObjectSessionContext_Target) UnmarshalProtobuf ¶
func (x *ObjectSessionContext_Target) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ObjectSessionContext_Verb ¶
type ObjectSessionContext_Verb int32
const ( ObjectSessionContext_VERB_UNSPECIFIED ObjectSessionContext_Verb = 0 ObjectSessionContext_PUT ObjectSessionContext_Verb = 1 ObjectSessionContext_GET ObjectSessionContext_Verb = 2 ObjectSessionContext_HEAD ObjectSessionContext_Verb = 3 ObjectSessionContext_SEARCH ObjectSessionContext_Verb = 4 ObjectSessionContext_DELETE ObjectSessionContext_Verb = 5 ObjectSessionContext_RANGE ObjectSessionContext_Verb = 6 ObjectSessionContext_RANGEHASH ObjectSessionContext_Verb = 7 ObjectSessionContext_PATCH ObjectSessionContext_Verb = 8 )
func (*ObjectSessionContext_Verb) FromString ¶
func (x *ObjectSessionContext_Verb) FromString(s string) bool
func (ObjectSessionContext_Verb) String ¶
func (x ObjectSessionContext_Verb) String() string
type RequestMetaHeader ¶
type RequestMetaHeader struct { Version *grpc.Version `json:"version"` Epoch uint64 `json:"epoch"` Ttl uint32 `json:"ttl"` XHeaders []XHeader `json:"xHeaders"` SessionToken *SessionToken `json:"sessionToken"` BearerToken *grpc1.BearerToken `json:"bearerToken"` Origin *RequestMetaHeader `json:"origin"` MagicNumber uint64 `json:"magicNumber"` }
func (*RequestMetaHeader) EmitProtobuf ¶
func (x *RequestMetaHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*RequestMetaHeader) GetBearerToken ¶
func (x *RequestMetaHeader) GetBearerToken() *grpc1.BearerToken
func (*RequestMetaHeader) GetEpoch ¶
func (x *RequestMetaHeader) GetEpoch() uint64
func (*RequestMetaHeader) GetMagicNumber ¶
func (x *RequestMetaHeader) GetMagicNumber() uint64
func (*RequestMetaHeader) GetOrigin ¶
func (x *RequestMetaHeader) GetOrigin() *RequestMetaHeader
func (*RequestMetaHeader) GetSessionToken ¶
func (x *RequestMetaHeader) GetSessionToken() *SessionToken
func (*RequestMetaHeader) GetTtl ¶
func (x *RequestMetaHeader) GetTtl() uint32
func (*RequestMetaHeader) GetVersion ¶
func (x *RequestMetaHeader) GetVersion() *grpc.Version
func (*RequestMetaHeader) GetXHeaders ¶
func (x *RequestMetaHeader) GetXHeaders() []XHeader
func (*RequestMetaHeader) MarshalEasyJSON ¶
func (x *RequestMetaHeader) MarshalEasyJSON(out *jwriter.Writer)
func (*RequestMetaHeader) MarshalJSON ¶
func (x *RequestMetaHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*RequestMetaHeader) MarshalProtobuf ¶
func (x *RequestMetaHeader) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*RequestMetaHeader) SetBearerToken ¶
func (x *RequestMetaHeader) SetBearerToken(v *grpc1.BearerToken)
func (*RequestMetaHeader) SetEpoch ¶
func (x *RequestMetaHeader) SetEpoch(v uint64)
func (*RequestMetaHeader) SetMagicNumber ¶
func (x *RequestMetaHeader) SetMagicNumber(v uint64)
func (*RequestMetaHeader) SetOrigin ¶
func (x *RequestMetaHeader) SetOrigin(v *RequestMetaHeader)
func (*RequestMetaHeader) SetSessionToken ¶
func (x *RequestMetaHeader) SetSessionToken(v *SessionToken)
func (*RequestMetaHeader) SetTtl ¶
func (x *RequestMetaHeader) SetTtl(v uint32)
func (*RequestMetaHeader) SetVersion ¶
func (x *RequestMetaHeader) SetVersion(v *grpc.Version)
func (*RequestMetaHeader) SetXHeaders ¶
func (x *RequestMetaHeader) SetXHeaders(v []XHeader)
func (*RequestMetaHeader) StableSize ¶
func (x *RequestMetaHeader) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*RequestMetaHeader) UnmarshalEasyJSON ¶
func (x *RequestMetaHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*RequestMetaHeader) UnmarshalJSON ¶
func (x *RequestMetaHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*RequestMetaHeader) UnmarshalProtobuf ¶
func (x *RequestMetaHeader) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type RequestVerificationHeader ¶
type RequestVerificationHeader struct { BodySignature *grpc.Signature `json:"bodySignature"` MetaSignature *grpc.Signature `json:"metaSignature"` OriginSignature *grpc.Signature `json:"originSignature"` Origin *RequestVerificationHeader `json:"origin"` }
func (*RequestVerificationHeader) EmitProtobuf ¶
func (x *RequestVerificationHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*RequestVerificationHeader) GetBodySignature ¶
func (x *RequestVerificationHeader) GetBodySignature() *grpc.Signature
func (*RequestVerificationHeader) GetMetaSignature ¶
func (x *RequestVerificationHeader) GetMetaSignature() *grpc.Signature
func (*RequestVerificationHeader) GetOrigin ¶
func (x *RequestVerificationHeader) GetOrigin() *RequestVerificationHeader
func (*RequestVerificationHeader) GetOriginSignature ¶
func (x *RequestVerificationHeader) GetOriginSignature() *grpc.Signature
func (*RequestVerificationHeader) MarshalEasyJSON ¶
func (x *RequestVerificationHeader) MarshalEasyJSON(out *jwriter.Writer)
func (*RequestVerificationHeader) MarshalJSON ¶
func (x *RequestVerificationHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*RequestVerificationHeader) MarshalProtobuf ¶
func (x *RequestVerificationHeader) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*RequestVerificationHeader) SetBodySignature ¶
func (x *RequestVerificationHeader) SetBodySignature(v *grpc.Signature)
func (*RequestVerificationHeader) SetMetaSignature ¶
func (x *RequestVerificationHeader) SetMetaSignature(v *grpc.Signature)
func (*RequestVerificationHeader) SetOrigin ¶
func (x *RequestVerificationHeader) SetOrigin(v *RequestVerificationHeader)
func (*RequestVerificationHeader) SetOriginSignature ¶
func (x *RequestVerificationHeader) SetOriginSignature(v *grpc.Signature)
func (*RequestVerificationHeader) StableSize ¶
func (x *RequestVerificationHeader) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*RequestVerificationHeader) UnmarshalEasyJSON ¶
func (x *RequestVerificationHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*RequestVerificationHeader) UnmarshalJSON ¶
func (x *RequestVerificationHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*RequestVerificationHeader) UnmarshalProtobuf ¶
func (x *RequestVerificationHeader) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ResponseMetaHeader ¶
type ResponseMetaHeader struct { Version *grpc.Version `json:"version"` Epoch uint64 `json:"epoch"` Ttl uint32 `json:"ttl"` XHeaders []XHeader `json:"xHeaders"` Origin *ResponseMetaHeader `json:"origin"` Status *grpc2.Status `json:"status"` }
func (*ResponseMetaHeader) EmitProtobuf ¶
func (x *ResponseMetaHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ResponseMetaHeader) GetEpoch ¶
func (x *ResponseMetaHeader) GetEpoch() uint64
func (*ResponseMetaHeader) GetOrigin ¶
func (x *ResponseMetaHeader) GetOrigin() *ResponseMetaHeader
func (*ResponseMetaHeader) GetStatus ¶
func (x *ResponseMetaHeader) GetStatus() *grpc2.Status
func (*ResponseMetaHeader) GetTtl ¶
func (x *ResponseMetaHeader) GetTtl() uint32
func (*ResponseMetaHeader) GetVersion ¶
func (x *ResponseMetaHeader) GetVersion() *grpc.Version
func (*ResponseMetaHeader) GetXHeaders ¶
func (x *ResponseMetaHeader) GetXHeaders() []XHeader
func (*ResponseMetaHeader) MarshalEasyJSON ¶
func (x *ResponseMetaHeader) MarshalEasyJSON(out *jwriter.Writer)
func (*ResponseMetaHeader) MarshalJSON ¶
func (x *ResponseMetaHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ResponseMetaHeader) MarshalProtobuf ¶
func (x *ResponseMetaHeader) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ResponseMetaHeader) SetEpoch ¶
func (x *ResponseMetaHeader) SetEpoch(v uint64)
func (*ResponseMetaHeader) SetOrigin ¶
func (x *ResponseMetaHeader) SetOrigin(v *ResponseMetaHeader)
func (*ResponseMetaHeader) SetStatus ¶
func (x *ResponseMetaHeader) SetStatus(v *grpc2.Status)
func (*ResponseMetaHeader) SetTtl ¶
func (x *ResponseMetaHeader) SetTtl(v uint32)
func (*ResponseMetaHeader) SetVersion ¶
func (x *ResponseMetaHeader) SetVersion(v *grpc.Version)
func (*ResponseMetaHeader) SetXHeaders ¶
func (x *ResponseMetaHeader) SetXHeaders(v []XHeader)
func (*ResponseMetaHeader) StableSize ¶
func (x *ResponseMetaHeader) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ResponseMetaHeader) UnmarshalEasyJSON ¶
func (x *ResponseMetaHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ResponseMetaHeader) UnmarshalJSON ¶
func (x *ResponseMetaHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ResponseMetaHeader) UnmarshalProtobuf ¶
func (x *ResponseMetaHeader) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type ResponseVerificationHeader ¶
type ResponseVerificationHeader struct { BodySignature *grpc.Signature `json:"bodySignature"` MetaSignature *grpc.Signature `json:"metaSignature"` OriginSignature *grpc.Signature `json:"originSignature"` Origin *ResponseVerificationHeader `json:"origin"` }
func (*ResponseVerificationHeader) EmitProtobuf ¶
func (x *ResponseVerificationHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*ResponseVerificationHeader) GetBodySignature ¶
func (x *ResponseVerificationHeader) GetBodySignature() *grpc.Signature
func (*ResponseVerificationHeader) GetMetaSignature ¶
func (x *ResponseVerificationHeader) GetMetaSignature() *grpc.Signature
func (*ResponseVerificationHeader) GetOrigin ¶
func (x *ResponseVerificationHeader) GetOrigin() *ResponseVerificationHeader
func (*ResponseVerificationHeader) GetOriginSignature ¶
func (x *ResponseVerificationHeader) GetOriginSignature() *grpc.Signature
func (*ResponseVerificationHeader) MarshalEasyJSON ¶
func (x *ResponseVerificationHeader) MarshalEasyJSON(out *jwriter.Writer)
func (*ResponseVerificationHeader) MarshalJSON ¶
func (x *ResponseVerificationHeader) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*ResponseVerificationHeader) MarshalProtobuf ¶
func (x *ResponseVerificationHeader) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*ResponseVerificationHeader) SetBodySignature ¶
func (x *ResponseVerificationHeader) SetBodySignature(v *grpc.Signature)
func (*ResponseVerificationHeader) SetMetaSignature ¶
func (x *ResponseVerificationHeader) SetMetaSignature(v *grpc.Signature)
func (*ResponseVerificationHeader) SetOrigin ¶
func (x *ResponseVerificationHeader) SetOrigin(v *ResponseVerificationHeader)
func (*ResponseVerificationHeader) SetOriginSignature ¶
func (x *ResponseVerificationHeader) SetOriginSignature(v *grpc.Signature)
func (*ResponseVerificationHeader) StableSize ¶
func (x *ResponseVerificationHeader) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*ResponseVerificationHeader) UnmarshalEasyJSON ¶
func (x *ResponseVerificationHeader) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*ResponseVerificationHeader) UnmarshalJSON ¶
func (x *ResponseVerificationHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*ResponseVerificationHeader) UnmarshalProtobuf ¶
func (x *ResponseVerificationHeader) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type SessionServiceClient ¶
type SessionServiceClient interface { // Open a new session between two peers. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // session has been successfully opened; // - Common failures (SECTION_FAILURE_COMMON). Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) }
SessionServiceClient is the client API for SessionService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSessionServiceClient ¶
func NewSessionServiceClient(cc grpc.ClientConnInterface) SessionServiceClient
type SessionServiceServer ¶
type SessionServiceServer interface { // Open a new session between two peers. // // Statuses: // - **OK** (0, SECTION_SUCCESS): // session has been successfully opened; // - Common failures (SECTION_FAILURE_COMMON). Create(context.Context, *CreateRequest) (*CreateResponse, error) }
SessionServiceServer is the server API for SessionService service. All implementations should embed UnimplementedSessionServiceServer for forward compatibility
type SessionToken ¶
type SessionToken struct { Body *SessionToken_Body `json:"body"` Signature *grpc.Signature `json:"signature"` }
func (*SessionToken) EmitProtobuf ¶
func (x *SessionToken) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*SessionToken) GetBody ¶
func (x *SessionToken) GetBody() *SessionToken_Body
func (*SessionToken) GetSignature ¶
func (x *SessionToken) GetSignature() *grpc.Signature
func (*SessionToken) MarshalEasyJSON ¶
func (x *SessionToken) MarshalEasyJSON(out *jwriter.Writer)
func (*SessionToken) MarshalJSON ¶
func (x *SessionToken) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*SessionToken) MarshalProtobuf ¶
func (x *SessionToken) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*SessionToken) SetBody ¶
func (x *SessionToken) SetBody(v *SessionToken_Body)
func (*SessionToken) SetSignature ¶
func (x *SessionToken) SetSignature(v *grpc.Signature)
func (*SessionToken) StableSize ¶
func (x *SessionToken) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*SessionToken) UnmarshalEasyJSON ¶
func (x *SessionToken) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*SessionToken) UnmarshalJSON ¶
func (x *SessionToken) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*SessionToken) UnmarshalProtobuf ¶
func (x *SessionToken) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type SessionToken_Body ¶
type SessionToken_Body struct { Id []byte `json:"id"` OwnerId *grpc.OwnerID `json:"ownerID"` Lifetime *SessionToken_Body_TokenLifetime `json:"lifetime"` SessionKey []byte `json:"sessionKey"` Context isSessionToken_Body_Context }
func (*SessionToken_Body) EmitProtobuf ¶
func (x *SessionToken_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*SessionToken_Body) GetContainer ¶
func (x *SessionToken_Body) GetContainer() *ContainerSessionContext
func (*SessionToken_Body) GetContext ¶
func (x *SessionToken_Body) GetContext() isSessionToken_Body_Context
func (*SessionToken_Body) GetId ¶
func (x *SessionToken_Body) GetId() []byte
func (*SessionToken_Body) GetLifetime ¶
func (x *SessionToken_Body) GetLifetime() *SessionToken_Body_TokenLifetime
func (*SessionToken_Body) GetObject ¶
func (x *SessionToken_Body) GetObject() *ObjectSessionContext
func (*SessionToken_Body) GetOwnerId ¶
func (x *SessionToken_Body) GetOwnerId() *grpc.OwnerID
func (*SessionToken_Body) GetSessionKey ¶
func (x *SessionToken_Body) GetSessionKey() []byte
func (*SessionToken_Body) MarshalEasyJSON ¶
func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer)
func (*SessionToken_Body) MarshalJSON ¶
func (x *SessionToken_Body) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*SessionToken_Body) MarshalProtobuf ¶
func (x *SessionToken_Body) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*SessionToken_Body) SetContainer ¶
func (x *SessionToken_Body) SetContainer(v *ContainerSessionContext)
func (*SessionToken_Body) SetContext ¶
func (x *SessionToken_Body) SetContext(v isSessionToken_Body_Context)
func (*SessionToken_Body) SetId ¶
func (x *SessionToken_Body) SetId(v []byte)
func (*SessionToken_Body) SetLifetime ¶
func (x *SessionToken_Body) SetLifetime(v *SessionToken_Body_TokenLifetime)
func (*SessionToken_Body) SetObject ¶
func (x *SessionToken_Body) SetObject(v *ObjectSessionContext)
func (*SessionToken_Body) SetOwnerId ¶
func (x *SessionToken_Body) SetOwnerId(v *grpc.OwnerID)
func (*SessionToken_Body) SetSessionKey ¶
func (x *SessionToken_Body) SetSessionKey(v []byte)
func (*SessionToken_Body) StableSize ¶
func (x *SessionToken_Body) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*SessionToken_Body) UnmarshalEasyJSON ¶
func (x *SessionToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*SessionToken_Body) UnmarshalJSON ¶
func (x *SessionToken_Body) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*SessionToken_Body) UnmarshalProtobuf ¶
func (x *SessionToken_Body) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type SessionToken_Body_Container ¶
type SessionToken_Body_Container struct {
Container *ContainerSessionContext
}
type SessionToken_Body_Object ¶
type SessionToken_Body_Object struct {
Object *ObjectSessionContext
}
type SessionToken_Body_TokenLifetime ¶
type SessionToken_Body_TokenLifetime struct { Exp uint64 `json:"exp"` Nbf uint64 `json:"nbf"` Iat uint64 `json:"iat"` }
func (*SessionToken_Body_TokenLifetime) EmitProtobuf ¶
func (x *SessionToken_Body_TokenLifetime) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*SessionToken_Body_TokenLifetime) GetExp ¶
func (x *SessionToken_Body_TokenLifetime) GetExp() uint64
func (*SessionToken_Body_TokenLifetime) GetIat ¶
func (x *SessionToken_Body_TokenLifetime) GetIat() uint64
func (*SessionToken_Body_TokenLifetime) GetNbf ¶
func (x *SessionToken_Body_TokenLifetime) GetNbf() uint64
func (*SessionToken_Body_TokenLifetime) MarshalEasyJSON ¶
func (x *SessionToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer)
func (*SessionToken_Body_TokenLifetime) MarshalJSON ¶
func (x *SessionToken_Body_TokenLifetime) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*SessionToken_Body_TokenLifetime) MarshalProtobuf ¶
func (x *SessionToken_Body_TokenLifetime) MarshalProtobuf(dst []byte) []byte
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*SessionToken_Body_TokenLifetime) SetExp ¶
func (x *SessionToken_Body_TokenLifetime) SetExp(v uint64)
func (*SessionToken_Body_TokenLifetime) SetIat ¶
func (x *SessionToken_Body_TokenLifetime) SetIat(v uint64)
func (*SessionToken_Body_TokenLifetime) SetNbf ¶
func (x *SessionToken_Body_TokenLifetime) SetNbf(v uint64)
func (*SessionToken_Body_TokenLifetime) StableSize ¶
func (x *SessionToken_Body_TokenLifetime) StableSize() (size int)
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*SessionToken_Body_TokenLifetime) UnmarshalEasyJSON ¶
func (x *SessionToken_Body_TokenLifetime) UnmarshalEasyJSON(in *jlexer.Lexer)
func (*SessionToken_Body_TokenLifetime) UnmarshalJSON ¶
func (x *SessionToken_Body_TokenLifetime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*SessionToken_Body_TokenLifetime) UnmarshalProtobuf ¶
func (x *SessionToken_Body_TokenLifetime) UnmarshalProtobuf(src []byte) (err error)
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.
type UnimplementedSessionServiceServer ¶
type UnimplementedSessionServiceServer struct { }
UnimplementedSessionServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedSessionServiceServer) Create ¶
func (UnimplementedSessionServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
type UnsafeSessionServiceServer ¶
type UnsafeSessionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSessionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SessionServiceServer will result in compilation errors.
type XHeader ¶
func (*XHeader) EmitProtobuf ¶
func (x *XHeader) EmitProtobuf(mm *easyproto.MessageMarshaler)
func (*XHeader) MarshalEasyJSON ¶
func (*XHeader) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*XHeader) MarshalProtobuf ¶
MarshalProtobuf implements the encoding.ProtoMarshaler interface.
func (*XHeader) StableSize ¶
StableSize returns the size of x in protobuf format.
Structures with the same field values have the same binary size.
func (*XHeader) UnmarshalEasyJSON ¶
func (*XHeader) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*XHeader) UnmarshalProtobuf ¶
UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.