authsync

package
v0.0.0-...-c154dbf Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthSyncService_SyncToken_FullMethodName      = "/authsync.AuthSyncService/SyncToken"
	AuthSyncService_ClaimSession_FullMethodName   = "/authsync.AuthSyncService/ClaimSession"
	AuthSyncService_ClaimedSession_FullMethodName = "/authsync.AuthSyncService/ClaimedSession"
)

Variables

View Source
var AuthSyncService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authsync.AuthSyncService",
	HandlerType: (*AuthSyncServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ClaimSession",
			Handler:    _AuthSyncService_ClaimSession_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "SyncToken",
			Handler:       _AuthSyncService_SyncToken_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ClaimedSession",
			Handler:       _AuthSyncService_ClaimedSession_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "auth_sync.proto",
}

AuthSyncService_ServiceDesc is the grpc.ServiceDesc for AuthSyncService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_auth_sync_proto protoreflect.FileDescriptor

Functions

func RegisterAuthSyncServiceServer

func RegisterAuthSyncServiceServer(s grpc.ServiceRegistrar, srv AuthSyncServiceServer)

Types

type AuthSyncServiceClient

type AuthSyncServiceClient interface {
	SyncToken(ctx context.Context, in *StreamingSyncRequest, opts ...grpc.CallOption) (AuthSyncService_SyncTokenClient, error)
	ClaimSession(ctx context.Context, in *SessionToken, opts ...grpc.CallOption) (*SessionClaim, error)
	ClaimedSession(ctx context.Context, in *SessionClaim, opts ...grpc.CallOption) (AuthSyncService_ClaimedSessionClient, error)
}

AuthSyncServiceClient is the client API for AuthSyncService 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.

type AuthSyncServiceServer

type AuthSyncServiceServer interface {
	SyncToken(*StreamingSyncRequest, AuthSyncService_SyncTokenServer) error
	ClaimSession(context.Context, *SessionToken) (*SessionClaim, error)
	ClaimedSession(*SessionClaim, AuthSyncService_ClaimedSessionServer) error
	// contains filtered or unexported methods
}

AuthSyncServiceServer is the server API for AuthSyncService service. All implementations must embed UnimplementedAuthSyncServiceServer for forward compatibility

type AuthSyncService_ClaimedSessionClient

type AuthSyncService_ClaimedSessionClient interface {
	Recv() (*SessionClaim, error)
	grpc.ClientStream
}

type AuthSyncService_ClaimedSessionServer

type AuthSyncService_ClaimedSessionServer interface {
	Send(*SessionClaim) error
	grpc.ServerStream
}

type AuthSyncService_SyncTokenClient

type AuthSyncService_SyncTokenClient interface {
	Recv() (*SessionToken, error)
	grpc.ClientStream
}

type AuthSyncService_SyncTokenServer

type AuthSyncService_SyncTokenServer interface {
	Send(*SessionToken) error
	grpc.ServerStream
}

type SessionClaim

type SessionClaim struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // UUID format
	// contains filtered or unexported fields
}

func (*SessionClaim) Descriptor deprecated

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

Deprecated: Use SessionClaim.ProtoReflect.Descriptor instead.

func (*SessionClaim) GetSessionId

func (x *SessionClaim) GetSessionId() string

func (*SessionClaim) ProtoMessage

func (*SessionClaim) ProtoMessage()

func (*SessionClaim) ProtoReflect

func (x *SessionClaim) ProtoReflect() protoreflect.Message

func (*SessionClaim) Reset

func (x *SessionClaim) Reset()

func (*SessionClaim) String

func (x *SessionClaim) String() string

type SessionToken

type SessionToken struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // UUID format
	Token     string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Message for passing sessionID and token

func (*SessionToken) Descriptor deprecated

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

Deprecated: Use SessionToken.ProtoReflect.Descriptor instead.

func (*SessionToken) GetSessionId

func (x *SessionToken) GetSessionId() string

func (*SessionToken) GetToken

func (x *SessionToken) GetToken() string

func (*SessionToken) ProtoMessage

func (*SessionToken) ProtoMessage()

func (*SessionToken) ProtoReflect

func (x *SessionToken) ProtoReflect() protoreflect.Message

func (*SessionToken) Reset

func (x *SessionToken) Reset()

func (*SessionToken) String

func (x *SessionToken) String() string

type StreamingSyncRequest

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

func (*StreamingSyncRequest) Descriptor deprecated

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

Deprecated: Use StreamingSyncRequest.ProtoReflect.Descriptor instead.

func (*StreamingSyncRequest) ProtoMessage

func (*StreamingSyncRequest) ProtoMessage()

func (*StreamingSyncRequest) ProtoReflect

func (x *StreamingSyncRequest) ProtoReflect() protoreflect.Message

func (*StreamingSyncRequest) Reset

func (x *StreamingSyncRequest) Reset()

func (*StreamingSyncRequest) String

func (x *StreamingSyncRequest) String() string

type UnimplementedAuthSyncServiceServer

type UnimplementedAuthSyncServiceServer struct {
}

UnimplementedAuthSyncServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthSyncServiceServer) ClaimSession

func (UnimplementedAuthSyncServiceServer) ClaimedSession

func (UnimplementedAuthSyncServiceServer) SyncToken

type UnsafeAuthSyncServiceServer

type UnsafeAuthSyncServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthSyncServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthSyncServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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