pb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Authorization_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authorization.authorization",
	HandlerType: (*AuthorizationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "allow",
			Handler:    _Authorization_Allow_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authorization.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)

View Source
var File_authorization_proto protoreflect.FileDescriptor

Functions

func RegisterAuthorizationServer

func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)

Types

type AllowReq

type AllowReq struct {
	UserId   string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId,omitempty"`
	Object   string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	Action   string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowReq) Descriptor deprecated

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

Deprecated: Use AllowReq.ProtoReflect.Descriptor instead.

func (*AllowReq) GetAction

func (x *AllowReq) GetAction() string

func (*AllowReq) GetObject

func (x *AllowReq) GetObject() string

func (*AllowReq) GetObjectId

func (x *AllowReq) GetObjectId() string

func (*AllowReq) GetUserId

func (x *AllowReq) GetUserId() string

func (*AllowReq) ProtoMessage

func (*AllowReq) ProtoMessage()

func (*AllowReq) ProtoReflect

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

func (*AllowReq) Reset

func (x *AllowReq) Reset()

func (*AllowReq) String

func (x *AllowReq) String() string

type AllowResp

type AllowResp struct {
	Allow bool `protobuf:"varint,1,opt,name=allow,proto3" json:"allow,omitempty"`
	// contains filtered or unexported fields
}

func (*AllowResp) Descriptor deprecated

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

Deprecated: Use AllowResp.ProtoReflect.Descriptor instead.

func (*AllowResp) GetAllow

func (x *AllowResp) GetAllow() bool

func (*AllowResp) ProtoMessage

func (*AllowResp) ProtoMessage()

func (*AllowResp) ProtoReflect

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

func (*AllowResp) Reset

func (x *AllowResp) Reset()

func (*AllowResp) String

func (x *AllowResp) String() string

type AuthorizationClient

type AuthorizationClient interface {
	Allow(ctx context.Context, in *AllowReq, opts ...grpc.CallOption) (*AllowResp, 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 {
	Allow(context.Context, *AllowReq) (*AllowResp, error)
	// contains filtered or unexported methods
}

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

type UnimplementedAuthorizationServer

type UnimplementedAuthorizationServer struct {
}

UnimplementedAuthorizationServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthorizationServer) Allow

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