apiv1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ras.service.api.v1.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AuthenticateCluster",
			Handler:    _AuthService_AuthenticateCluster_Handler,
		},
		{
			MethodName: "AuthenticateInfobase",
			Handler:    _AuthService_AuthenticateInfobase_Handler,
		},
		{
			MethodName: "AuthenticateAgent",
			Handler:    _AuthService_AuthenticateAgent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ras/service/api/v1/auth_service.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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 ClustersService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ras.service.api.v1.ClustersService",
	HandlerType: (*ClustersServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetClusters",
			Handler:    _ClustersService_GetClusters_Handler,
		},
		{
			MethodName: "GetClusterInfo",
			Handler:    _ClustersService_GetClusterInfo_Handler,
		},
		{
			MethodName: "RegCluster",
			Handler:    _ClustersService_RegCluster_Handler,
		},
		{
			MethodName: "UnregCluster",
			Handler:    _ClustersService_UnregCluster_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ras/service/api/v1/clusters_service.proto",
}

ClustersService_ServiceDesc is the grpc.ServiceDesc for ClustersService 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_ras_service_api_v1_auth_service_proto protoreflect.FileDescriptor
View Source
var File_ras_service_api_v1_clusters_service_proto protoreflect.FileDescriptor
View Source
var File_ras_service_api_v1_infonases_service_proto protoreflect.FileDescriptor
View Source
var File_ras_service_api_v1_ras_service_proto protoreflect.FileDescriptor
View Source
var File_ras_service_api_v1_sessions_service_proto protoreflect.FileDescriptor
View Source
var InfobasesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ras.service.api.v1.InfobasesService",
	HandlerType: (*InfobasesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetShortInfobases",
			Handler:    _InfobasesService_GetShortInfobases_Handler,
		},
		{
			MethodName: "GetInfobaseSessions",
			Handler:    _InfobasesService_GetInfobaseSessions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ras/service/api/v1/infonases_service.proto",
}

InfobasesService_ServiceDesc is the grpc.ServiceDesc for InfobasesService 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 RASService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ras.service.api.v1.RASService",
	HandlerType: (*RASServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AuthenticateCluster",
			Handler:    _RASService_AuthenticateCluster_Handler,
		},
		{
			MethodName: "AuthenticateInfobase",
			Handler:    _RASService_AuthenticateInfobase_Handler,
		},
		{
			MethodName: "AuthenticateAgent",
			Handler:    _RASService_AuthenticateAgent_Handler,
		},
		{
			MethodName: "GetClusters",
			Handler:    _RASService_GetClusters_Handler,
		},
		{
			MethodName: "GetClusterInfo",
			Handler:    _RASService_GetClusterInfo_Handler,
		},
		{
			MethodName: "RegCluster",
			Handler:    _RASService_RegCluster_Handler,
		},
		{
			MethodName: "UnregCluster",
			Handler:    _RASService_UnregCluster_Handler,
		},
		{
			MethodName: "GetSessions",
			Handler:    _RASService_GetSessions_Handler,
		},
		{
			MethodName: "GetShortInfobases",
			Handler:    _RASService_GetShortInfobases_Handler,
		},
		{
			MethodName: "GetInfobaseSessions",
			Handler:    _RASService_GetInfobaseSessions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ras/service/api/v1/ras_service.proto",
}

RASService_ServiceDesc is the grpc.ServiceDesc for RASService 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 SessionsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ras.service.api.v1.SessionsService",
	HandlerType: (*SessionsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSessions",
			Handler:    _SessionsService_GetSessions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ras/service/api/v1/sessions_service.proto",
}

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

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

func RegisterClustersServiceServer

func RegisterClustersServiceServer(s grpc.ServiceRegistrar, srv ClustersServiceServer)

func RegisterInfobasesServiceServer

func RegisterInfobasesServiceServer(s grpc.ServiceRegistrar, srv InfobasesServiceServer)

func RegisterRASServiceServer

func RegisterRASServiceServer(s grpc.ServiceRegistrar, srv RASServiceServer)

func RegisterSessionsServiceServer

func RegisterSessionsServiceServer(s grpc.ServiceRegistrar, srv SessionsServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	AuthenticateCluster(ctx context.Context, in *v1.ClusterAuthenticateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AuthenticateInfobase(ctx context.Context, in *v1.AuthenticateInfobaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AuthenticateAgent(ctx context.Context, in *v1.AuthenticateAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	AuthenticateCluster(context.Context, *v1.ClusterAuthenticateRequest) (*emptypb.Empty, error)
	AuthenticateInfobase(context.Context, *v1.AuthenticateInfobaseRequest) (*emptypb.Empty, error)
	AuthenticateAgent(context.Context, *v1.AuthenticateAgentRequest) (*emptypb.Empty, error)
}

AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility

type ClustersServiceClient

type ClustersServiceClient interface {
	GetClusters(ctx context.Context, in *v1.GetClustersRequest, opts ...grpc.CallOption) (*v1.GetClustersResponse, error)
	GetClusterInfo(ctx context.Context, in *v1.GetClusterInfoRequest, opts ...grpc.CallOption) (*v1.GetClusterInfoResponse, error)
	RegCluster(ctx context.Context, in *v1.RegClusterRequest, opts ...grpc.CallOption) (*v1.RegClusterResponse, error)
	UnregCluster(ctx context.Context, in *v1.UnregClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ClustersServiceClient is the client API for ClustersService 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 ClustersServiceServer

ClustersServiceServer is the server API for ClustersService service. All implementations should embed UnimplementedClustersServiceServer for forward compatibility

type InfobasesServiceClient

type InfobasesServiceClient interface {
	// GetInfobasesShortRequest
	GetShortInfobases(ctx context.Context, in *v1.GetInfobasesShortRequest, opts ...grpc.CallOption) (*v1.GetInfobasesShortResponse, error)
	// GetInfobaseSessionsRequest
	GetInfobaseSessions(ctx context.Context, in *v1.GetInfobaseSessionsRequest, opts ...grpc.CallOption) (*v1.GetInfobaseSessionsResponse, error)
}

InfobasesServiceClient is the client API for InfobasesService 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 InfobasesServiceServer

type InfobasesServiceServer interface {
	// GetInfobasesShortRequest
	GetShortInfobases(context.Context, *v1.GetInfobasesShortRequest) (*v1.GetInfobasesShortResponse, error)
	// GetInfobaseSessionsRequest
	GetInfobaseSessions(context.Context, *v1.GetInfobaseSessionsRequest) (*v1.GetInfobaseSessionsResponse, error)
}

InfobasesServiceServer is the server API for InfobasesService service. All implementations should embed UnimplementedInfobasesServiceServer for forward compatibility

type RASServiceClient

type RASServiceClient interface {
	// Auth
	AuthenticateCluster(ctx context.Context, in *v1.ClusterAuthenticateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AuthenticateInfobase(ctx context.Context, in *v1.AuthenticateInfobaseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	AuthenticateAgent(ctx context.Context, in *v1.AuthenticateAgentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Clusters
	GetClusters(ctx context.Context, in *v1.GetClustersRequest, opts ...grpc.CallOption) (*v1.GetClustersResponse, error)
	GetClusterInfo(ctx context.Context, in *v1.GetClusterInfoRequest, opts ...grpc.CallOption) (*v1.GetClusterInfoResponse, error)
	RegCluster(ctx context.Context, in *v1.RegClusterRequest, opts ...grpc.CallOption) (*v1.RegClusterResponse, error)
	UnregCluster(ctx context.Context, in *v1.UnregClusterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Sessions
	GetSessions(ctx context.Context, in *v1.GetSessionsRequest, opts ...grpc.CallOption) (*v1.GetSessionsResponse, error)
	// infobases
	// GetInfobasesShortRequest
	GetShortInfobases(ctx context.Context, in *v1.GetInfobasesShortRequest, opts ...grpc.CallOption) (*v1.GetInfobasesShortResponse, error)
	// GetInfobaseSessionsRequest
	GetInfobaseSessions(ctx context.Context, in *v1.GetInfobaseSessionsRequest, opts ...grpc.CallOption) (*v1.GetInfobaseSessionsResponse, error)
}

RASServiceClient is the client API for RASService 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 NewRASServiceClient

func NewRASServiceClient(cc grpc.ClientConnInterface) RASServiceClient

type RASServiceServer

type RASServiceServer interface {
	// Auth
	AuthenticateCluster(context.Context, *v1.ClusterAuthenticateRequest) (*emptypb.Empty, error)
	AuthenticateInfobase(context.Context, *v1.AuthenticateInfobaseRequest) (*emptypb.Empty, error)
	AuthenticateAgent(context.Context, *v1.AuthenticateAgentRequest) (*emptypb.Empty, error)
	// Clusters
	GetClusters(context.Context, *v1.GetClustersRequest) (*v1.GetClustersResponse, error)
	GetClusterInfo(context.Context, *v1.GetClusterInfoRequest) (*v1.GetClusterInfoResponse, error)
	RegCluster(context.Context, *v1.RegClusterRequest) (*v1.RegClusterResponse, error)
	UnregCluster(context.Context, *v1.UnregClusterRequest) (*emptypb.Empty, error)
	// Sessions
	GetSessions(context.Context, *v1.GetSessionsRequest) (*v1.GetSessionsResponse, error)
	// infobases
	// GetInfobasesShortRequest
	GetShortInfobases(context.Context, *v1.GetInfobasesShortRequest) (*v1.GetInfobasesShortResponse, error)
	// GetInfobaseSessionsRequest
	GetInfobaseSessions(context.Context, *v1.GetInfobaseSessionsRequest) (*v1.GetInfobaseSessionsResponse, error)
}

RASServiceServer is the server API for RASService service. All implementations should embed UnimplementedRASServiceServer for forward compatibility

type SessionsServiceClient

type SessionsServiceClient interface {
	GetSessions(ctx context.Context, in *v1.GetSessionsRequest, opts ...grpc.CallOption) (*v1.GetSessionsResponse, error)
}

SessionsServiceClient is the client API for SessionsService 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 SessionsServiceServer

type SessionsServiceServer interface {
	GetSessions(context.Context, *v1.GetSessionsRequest) (*v1.GetSessionsResponse, error)
}

SessionsServiceServer is the server API for SessionsService service. All implementations should embed UnimplementedSessionsServiceServer for forward compatibility

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) AuthenticateAgent

func (UnimplementedAuthServiceServer) AuthenticateCluster

func (UnimplementedAuthServiceServer) AuthenticateInfobase

type UnimplementedClustersServiceServer

type UnimplementedClustersServiceServer struct {
}

UnimplementedClustersServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedClustersServiceServer) GetClusterInfo

func (UnimplementedClustersServiceServer) GetClusters

func (UnimplementedClustersServiceServer) RegCluster

func (UnimplementedClustersServiceServer) UnregCluster

type UnimplementedInfobasesServiceServer

type UnimplementedInfobasesServiceServer struct {
}

UnimplementedInfobasesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedInfobasesServiceServer) GetInfobaseSessions added in v0.1.4

func (UnimplementedInfobasesServiceServer) GetShortInfobases

type UnimplementedRASServiceServer

type UnimplementedRASServiceServer struct {
}

UnimplementedRASServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRASServiceServer) AuthenticateAgent

func (UnimplementedRASServiceServer) AuthenticateCluster

func (UnimplementedRASServiceServer) AuthenticateInfobase

func (UnimplementedRASServiceServer) GetClusterInfo

func (UnimplementedRASServiceServer) GetClusters

func (UnimplementedRASServiceServer) GetSessions

func (UnimplementedRASServiceServer) GetShortInfobases

func (UnimplementedRASServiceServer) RegCluster

func (UnimplementedRASServiceServer) UnregCluster

type UnimplementedSessionsServiceServer

type UnimplementedSessionsServiceServer struct {
}

UnimplementedSessionsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedSessionsServiceServer) GetSessions

type UnsafeAuthServiceServer

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

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

type UnsafeClustersServiceServer

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

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

type UnsafeInfobasesServiceServer

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

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

type UnsafeRASServiceServer

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

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

type UnsafeSessionsServiceServer

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

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

Jump to

Keyboard shortcuts

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