proto

package
v0.0.0-...-2fe0e47 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Authorization_GetId_FullMethodName                  = "/auth.Authorization/GetId"
	Authorization_GetIdsAndPaths_FullMethodName         = "/auth.Authorization/GetIdsAndPaths"
	Authorization_GetAuthorizationStatus_FullMethodName = "/auth.Authorization/GetAuthorizationStatus"
	Authorization_GetRole_FullMethodName                = "/auth.Authorization/GetRole"
)

Variables

View Source
var Authorization_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.Authorization",
	HandlerType: (*AuthorizationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetId",
			Handler:    _Authorization_GetId_Handler,
		},
		{
			MethodName: "GetIdsAndPaths",
			Handler:    _Authorization_GetIdsAndPaths_Handler,
		},
		{
			MethodName: "GetAuthorizationStatus",
			Handler:    _Authorization_GetAuthorizationStatus_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _Authorization_GetRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth.proto",
}

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

Functions

func RegisterAuthorizationServer

func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)

Types

type AuthorizationCheckRequest

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

func (*AuthorizationCheckRequest) Descriptor

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

func (*AuthorizationCheckRequest) GetSid

func (m *AuthorizationCheckRequest) GetSid() string

func (*AuthorizationCheckRequest) ProtoMessage

func (*AuthorizationCheckRequest) ProtoMessage()

func (*AuthorizationCheckRequest) Reset

func (m *AuthorizationCheckRequest) Reset()

func (*AuthorizationCheckRequest) String

func (m *AuthorizationCheckRequest) String() string

func (*AuthorizationCheckRequest) XXX_DiscardUnknown

func (m *AuthorizationCheckRequest) XXX_DiscardUnknown()

func (*AuthorizationCheckRequest) XXX_Marshal

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

func (*AuthorizationCheckRequest) XXX_Merge

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

func (*AuthorizationCheckRequest) XXX_Size

func (m *AuthorizationCheckRequest) XXX_Size() int

func (*AuthorizationCheckRequest) XXX_Unmarshal

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

type AuthorizationCheckResponse

type AuthorizationCheckResponse struct {
	Status               bool     `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AuthorizationCheckResponse) Descriptor

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

func (*AuthorizationCheckResponse) GetStatus

func (m *AuthorizationCheckResponse) GetStatus() bool

func (*AuthorizationCheckResponse) ProtoMessage

func (*AuthorizationCheckResponse) ProtoMessage()

func (*AuthorizationCheckResponse) Reset

func (m *AuthorizationCheckResponse) Reset()

func (*AuthorizationCheckResponse) String

func (m *AuthorizationCheckResponse) String() string

func (*AuthorizationCheckResponse) XXX_DiscardUnknown

func (m *AuthorizationCheckResponse) XXX_DiscardUnknown()

func (*AuthorizationCheckResponse) XXX_Marshal

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

func (*AuthorizationCheckResponse) XXX_Merge

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

func (*AuthorizationCheckResponse) XXX_Size

func (m *AuthorizationCheckResponse) XXX_Size() int

func (*AuthorizationCheckResponse) XXX_Unmarshal

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

type AuthorizationClient

type AuthorizationClient interface {
	GetId(ctx context.Context, in *FindIdRequest, opts ...grpc.CallOption) (*FindIdResponse, error)
	GetIdsAndPaths(ctx context.Context, in *NamesAndPathsListRequest, opts ...grpc.CallOption) (*NamesAndPathsResponse, error)
	GetAuthorizationStatus(ctx context.Context, in *AuthorizationCheckRequest, opts ...grpc.CallOption) (*AuthorizationCheckResponse, error)
	GetRole(ctx context.Context, in *RoleRequest, opts ...grpc.CallOption) (*RoleResponse, error)
}

AuthorizationClient is the client API for Authorization 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 AuthorizationServer

type AuthorizationServer interface {
	GetId(context.Context, *FindIdRequest) (*FindIdResponse, error)
	GetIdsAndPaths(context.Context, *NamesAndPathsListRequest) (*NamesAndPathsResponse, error)
	GetAuthorizationStatus(context.Context, *AuthorizationCheckRequest) (*AuthorizationCheckResponse, error)
	GetRole(context.Context, *RoleRequest) (*RoleResponse, error)
	// contains filtered or unexported methods
}

AuthorizationServer is the server API for Authorization service. All implementations must embed UnimplementedAuthorizationServer for forward compatibility

type FindIdRequest

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

func (*FindIdRequest) Descriptor

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

func (*FindIdRequest) GetSid

func (m *FindIdRequest) GetSid() string

func (*FindIdRequest) ProtoMessage

func (*FindIdRequest) ProtoMessage()

func (*FindIdRequest) Reset

func (m *FindIdRequest) Reset()

func (*FindIdRequest) String

func (m *FindIdRequest) String() string

func (*FindIdRequest) XXX_DiscardUnknown

func (m *FindIdRequest) XXX_DiscardUnknown()

func (*FindIdRequest) XXX_Marshal

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

func (*FindIdRequest) XXX_Merge

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

func (*FindIdRequest) XXX_Size

func (m *FindIdRequest) XXX_Size() int

func (*FindIdRequest) XXX_Unmarshal

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

type FindIdResponse

type FindIdResponse struct {
	Value                int64    `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FindIdResponse) Descriptor

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

func (*FindIdResponse) GetValue

func (m *FindIdResponse) GetValue() int64

func (*FindIdResponse) ProtoMessage

func (*FindIdResponse) ProtoMessage()

func (*FindIdResponse) Reset

func (m *FindIdResponse) Reset()

func (*FindIdResponse) String

func (m *FindIdResponse) String() string

func (*FindIdResponse) XXX_DiscardUnknown

func (m *FindIdResponse) XXX_DiscardUnknown()

func (*FindIdResponse) XXX_Marshal

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

func (*FindIdResponse) XXX_Merge

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

func (*FindIdResponse) XXX_Size

func (m *FindIdResponse) XXX_Size() int

func (*FindIdResponse) XXX_Unmarshal

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

type NamesAndPathsListRequest

type NamesAndPathsListRequest struct {
	Ids                  []int32  `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NamesAndPathsListRequest) Descriptor

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

func (*NamesAndPathsListRequest) GetIds

func (m *NamesAndPathsListRequest) GetIds() []int32

func (*NamesAndPathsListRequest) ProtoMessage

func (*NamesAndPathsListRequest) ProtoMessage()

func (*NamesAndPathsListRequest) Reset

func (m *NamesAndPathsListRequest) Reset()

func (*NamesAndPathsListRequest) String

func (m *NamesAndPathsListRequest) String() string

func (*NamesAndPathsListRequest) XXX_DiscardUnknown

func (m *NamesAndPathsListRequest) XXX_DiscardUnknown()

func (*NamesAndPathsListRequest) XXX_Marshal

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

func (*NamesAndPathsListRequest) XXX_Merge

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

func (*NamesAndPathsListRequest) XXX_Size

func (m *NamesAndPathsListRequest) XXX_Size() int

func (*NamesAndPathsListRequest) XXX_Unmarshal

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

type NamesAndPathsResponse

type NamesAndPathsResponse struct {
	Names                []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
	Paths                []string `protobuf:"bytes,2,rep,name=paths,proto3" json:"paths,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NamesAndPathsResponse) Descriptor

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

func (*NamesAndPathsResponse) GetNames

func (m *NamesAndPathsResponse) GetNames() []string

func (*NamesAndPathsResponse) GetPaths

func (m *NamesAndPathsResponse) GetPaths() []string

func (*NamesAndPathsResponse) ProtoMessage

func (*NamesAndPathsResponse) ProtoMessage()

func (*NamesAndPathsResponse) Reset

func (m *NamesAndPathsResponse) Reset()

func (*NamesAndPathsResponse) String

func (m *NamesAndPathsResponse) String() string

func (*NamesAndPathsResponse) XXX_DiscardUnknown

func (m *NamesAndPathsResponse) XXX_DiscardUnknown()

func (*NamesAndPathsResponse) XXX_Marshal

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

func (*NamesAndPathsResponse) XXX_Merge

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

func (*NamesAndPathsResponse) XXX_Size

func (m *NamesAndPathsResponse) XXX_Size() int

func (*NamesAndPathsResponse) XXX_Unmarshal

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

type RoleRequest

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

func (*RoleRequest) Descriptor

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

func (*RoleRequest) GetLogin

func (m *RoleRequest) GetLogin() string

func (*RoleRequest) ProtoMessage

func (*RoleRequest) ProtoMessage()

func (*RoleRequest) Reset

func (m *RoleRequest) Reset()

func (*RoleRequest) String

func (m *RoleRequest) String() string

func (*RoleRequest) XXX_DiscardUnknown

func (m *RoleRequest) XXX_DiscardUnknown()

func (*RoleRequest) XXX_Marshal

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

func (*RoleRequest) XXX_Merge

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

func (*RoleRequest) XXX_Size

func (m *RoleRequest) XXX_Size() int

func (*RoleRequest) XXX_Unmarshal

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

type RoleResponse

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

func (*RoleResponse) Descriptor

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

func (*RoleResponse) GetRole

func (m *RoleResponse) GetRole() string

func (*RoleResponse) ProtoMessage

func (*RoleResponse) ProtoMessage()

func (*RoleResponse) Reset

func (m *RoleResponse) Reset()

func (*RoleResponse) String

func (m *RoleResponse) String() string

func (*RoleResponse) XXX_DiscardUnknown

func (m *RoleResponse) XXX_DiscardUnknown()

func (*RoleResponse) XXX_Marshal

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

func (*RoleResponse) XXX_Merge

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

func (*RoleResponse) XXX_Size

func (m *RoleResponse) XXX_Size() int

func (*RoleResponse) XXX_Unmarshal

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

type UnimplementedAuthorizationServer

type UnimplementedAuthorizationServer struct {
}

UnimplementedAuthorizationServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthorizationServer) GetAuthorizationStatus

func (UnimplementedAuthorizationServer) GetId

func (UnimplementedAuthorizationServer) GetIdsAndPaths

func (UnimplementedAuthorizationServer) GetRole

type UnsafeAuthorizationServer

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

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

Jump to

Keyboard shortcuts

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