permit

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

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPermitServer

func RegisterPermitServer(s *grpc.Server, srv PermitServer)

Types

type CreatePermitRequest

type CreatePermitRequest struct {
	FileID               string   `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"`
	SharerID             string   `protobuf:"bytes,2,opt,name=sharerID,proto3" json:"sharerID,omitempty"`
	Users                []*User  `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
	Classification       string   `protobuf:"bytes,4,opt,name=classification,proto3" json:"classification,omitempty"`
	Info                 string   `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"`
	Approvers            []string `protobuf:"bytes,6,rep,name=approvers,proto3" json:"approvers,omitempty"`
	FileName             string   `protobuf:"bytes,7,opt,name=fileName,proto3" json:"fileName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreatePermitRequest) Descriptor

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

func (*CreatePermitRequest) GetApprovers

func (m *CreatePermitRequest) GetApprovers() []string

func (*CreatePermitRequest) GetClassification

func (m *CreatePermitRequest) GetClassification() string

func (*CreatePermitRequest) GetFileID

func (m *CreatePermitRequest) GetFileID() string

func (*CreatePermitRequest) GetFileName

func (m *CreatePermitRequest) GetFileName() string

func (*CreatePermitRequest) GetInfo

func (m *CreatePermitRequest) GetInfo() string

func (*CreatePermitRequest) GetSharerID

func (m *CreatePermitRequest) GetSharerID() string

func (*CreatePermitRequest) GetUsers

func (m *CreatePermitRequest) GetUsers() []*User

func (*CreatePermitRequest) ProtoMessage

func (*CreatePermitRequest) ProtoMessage()

func (*CreatePermitRequest) Reset

func (m *CreatePermitRequest) Reset()

func (*CreatePermitRequest) String

func (m *CreatePermitRequest) String() string

func (*CreatePermitRequest) XXX_DiscardUnknown

func (m *CreatePermitRequest) XXX_DiscardUnknown()

func (*CreatePermitRequest) XXX_Marshal

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

func (*CreatePermitRequest) XXX_Merge

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

func (*CreatePermitRequest) XXX_Size

func (m *CreatePermitRequest) XXX_Size() int

func (*CreatePermitRequest) XXX_Unmarshal

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

type CreatePermitResponse

type CreatePermitResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreatePermitResponse) Descriptor

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

func (*CreatePermitResponse) ProtoMessage

func (*CreatePermitResponse) ProtoMessage()

func (*CreatePermitResponse) Reset

func (m *CreatePermitResponse) Reset()

func (*CreatePermitResponse) String

func (m *CreatePermitResponse) String() string

func (*CreatePermitResponse) XXX_DiscardUnknown

func (m *CreatePermitResponse) XXX_DiscardUnknown()

func (*CreatePermitResponse) XXX_Marshal

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

func (*CreatePermitResponse) XXX_Merge

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

func (*CreatePermitResponse) XXX_Size

func (m *CreatePermitResponse) XXX_Size() int

func (*CreatePermitResponse) XXX_Unmarshal

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

type GetPermitByFileIDRequest

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

func (*GetPermitByFileIDRequest) Descriptor

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

func (*GetPermitByFileIDRequest) GetFileID

func (m *GetPermitByFileIDRequest) GetFileID() string

func (*GetPermitByFileIDRequest) ProtoMessage

func (*GetPermitByFileIDRequest) ProtoMessage()

func (*GetPermitByFileIDRequest) Reset

func (m *GetPermitByFileIDRequest) Reset()

func (*GetPermitByFileIDRequest) String

func (m *GetPermitByFileIDRequest) String() string

func (*GetPermitByFileIDRequest) XXX_DiscardUnknown

func (m *GetPermitByFileIDRequest) XXX_DiscardUnknown()

func (*GetPermitByFileIDRequest) XXX_Marshal

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

func (*GetPermitByFileIDRequest) XXX_Merge

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

func (*GetPermitByFileIDRequest) XXX_Size

func (m *GetPermitByFileIDRequest) XXX_Size() int

func (*GetPermitByFileIDRequest) XXX_Unmarshal

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

type GetPermitByFileIDResponse

type GetPermitByFileIDResponse struct {
	UserStatus           []*UserStatus `protobuf:"bytes,1,rep,name=userStatus,proto3" json:"userStatus,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*GetPermitByFileIDResponse) Descriptor

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

func (*GetPermitByFileIDResponse) GetUserStatus

func (m *GetPermitByFileIDResponse) GetUserStatus() []*UserStatus

func (*GetPermitByFileIDResponse) ProtoMessage

func (*GetPermitByFileIDResponse) ProtoMessage()

func (*GetPermitByFileIDResponse) Reset

func (m *GetPermitByFileIDResponse) Reset()

func (*GetPermitByFileIDResponse) String

func (m *GetPermitByFileIDResponse) String() string

func (*GetPermitByFileIDResponse) XXX_DiscardUnknown

func (m *GetPermitByFileIDResponse) XXX_DiscardUnknown()

func (*GetPermitByFileIDResponse) XXX_Marshal

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

func (*GetPermitByFileIDResponse) XXX_Merge

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

func (*GetPermitByFileIDResponse) XXX_Size

func (m *GetPermitByFileIDResponse) XXX_Size() int

func (*GetPermitByFileIDResponse) XXX_Unmarshal

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

type HasPermitRequest

type HasPermitRequest struct {
	FileID               string   `protobuf:"bytes,1,opt,name=fileID,proto3" json:"fileID,omitempty"`
	UserID               string   `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HasPermitRequest) Descriptor

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

func (*HasPermitRequest) GetFileID

func (m *HasPermitRequest) GetFileID() string

func (*HasPermitRequest) GetUserID

func (m *HasPermitRequest) GetUserID() string

func (*HasPermitRequest) ProtoMessage

func (*HasPermitRequest) ProtoMessage()

func (*HasPermitRequest) Reset

func (m *HasPermitRequest) Reset()

func (*HasPermitRequest) String

func (m *HasPermitRequest) String() string

func (*HasPermitRequest) XXX_DiscardUnknown

func (m *HasPermitRequest) XXX_DiscardUnknown()

func (*HasPermitRequest) XXX_Marshal

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

func (*HasPermitRequest) XXX_Merge

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

func (*HasPermitRequest) XXX_Size

func (m *HasPermitRequest) XXX_Size() int

func (*HasPermitRequest) XXX_Unmarshal

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

type HasPermitResponse

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

func (*HasPermitResponse) Descriptor

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

func (*HasPermitResponse) GetHasPermit

func (m *HasPermitResponse) GetHasPermit() bool

func (*HasPermitResponse) ProtoMessage

func (*HasPermitResponse) ProtoMessage()

func (*HasPermitResponse) Reset

func (m *HasPermitResponse) Reset()

func (*HasPermitResponse) String

func (m *HasPermitResponse) String() string

func (*HasPermitResponse) XXX_DiscardUnknown

func (m *HasPermitResponse) XXX_DiscardUnknown()

func (*HasPermitResponse) XXX_Marshal

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

func (*HasPermitResponse) XXX_Merge

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

func (*HasPermitResponse) XXX_Size

func (m *HasPermitResponse) XXX_Size() int

func (*HasPermitResponse) XXX_Unmarshal

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

type PermitClient

type PermitClient interface {
	CreatePermit(ctx context.Context, in *CreatePermitRequest, opts ...grpc.CallOption) (*CreatePermitResponse, error)
	UpdatePermitStatus(ctx context.Context, in *UpdatePermitStatusRequest, opts ...grpc.CallOption) (*UpdatePermitStatusResponse, error)
	GetPermitByFileID(ctx context.Context, in *GetPermitByFileIDRequest, opts ...grpc.CallOption) (*GetPermitByFileIDResponse, error)
	HasPermit(ctx context.Context, in *HasPermitRequest, opts ...grpc.CallOption) (*HasPermitResponse, error)
}

PermitClient is the client API for Permit service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPermitClient

func NewPermitClient(cc *grpc.ClientConn) PermitClient

type PermitObject

type PermitObject struct {
	ReqID                string   `protobuf:"bytes,1,opt,name=reqID,proto3" json:"reqID,omitempty"`
	FileID               string   `protobuf:"bytes,2,opt,name=fileID,proto3" json:"fileID,omitempty"`
	UserID               string   `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"`
	Status               string   `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PermitObject) Descriptor

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

func (*PermitObject) GetFileID

func (m *PermitObject) GetFileID() string

func (*PermitObject) GetReqID

func (m *PermitObject) GetReqID() string

func (*PermitObject) GetStatus

func (m *PermitObject) GetStatus() string

func (*PermitObject) GetUserID

func (m *PermitObject) GetUserID() string

func (*PermitObject) ProtoMessage

func (*PermitObject) ProtoMessage()

func (*PermitObject) Reset

func (m *PermitObject) Reset()

func (*PermitObject) String

func (m *PermitObject) String() string

func (*PermitObject) XXX_DiscardUnknown

func (m *PermitObject) XXX_DiscardUnknown()

func (*PermitObject) XXX_Marshal

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

func (*PermitObject) XXX_Merge

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

func (*PermitObject) XXX_Size

func (m *PermitObject) XXX_Size() int

func (*PermitObject) XXX_Unmarshal

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

type PermitServer

PermitServer is the server API for Permit service.

type UnimplementedPermitServer

type UnimplementedPermitServer struct {
}

UnimplementedPermitServer can be embedded to have forward compatible implementations.

func (*UnimplementedPermitServer) CreatePermit

func (*UnimplementedPermitServer) GetPermitByFileID

func (*UnimplementedPermitServer) HasPermit

func (*UnimplementedPermitServer) UpdatePermitStatus

type UpdatePermitStatusRequest

type UpdatePermitStatusRequest struct {
	ReqID                string   `protobuf:"bytes,1,opt,name=reqID,proto3" json:"reqID,omitempty"`
	Status               string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePermitStatusRequest) Descriptor

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

func (*UpdatePermitStatusRequest) GetReqID

func (m *UpdatePermitStatusRequest) GetReqID() string

func (*UpdatePermitStatusRequest) GetStatus

func (m *UpdatePermitStatusRequest) GetStatus() string

func (*UpdatePermitStatusRequest) ProtoMessage

func (*UpdatePermitStatusRequest) ProtoMessage()

func (*UpdatePermitStatusRequest) Reset

func (m *UpdatePermitStatusRequest) Reset()

func (*UpdatePermitStatusRequest) String

func (m *UpdatePermitStatusRequest) String() string

func (*UpdatePermitStatusRequest) XXX_DiscardUnknown

func (m *UpdatePermitStatusRequest) XXX_DiscardUnknown()

func (*UpdatePermitStatusRequest) XXX_Marshal

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

func (*UpdatePermitStatusRequest) XXX_Merge

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

func (*UpdatePermitStatusRequest) XXX_Size

func (m *UpdatePermitStatusRequest) XXX_Size() int

func (*UpdatePermitStatusRequest) XXX_Unmarshal

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

type UpdatePermitStatusResponse

type UpdatePermitStatusResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdatePermitStatusResponse) Descriptor

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

func (*UpdatePermitStatusResponse) ProtoMessage

func (*UpdatePermitStatusResponse) ProtoMessage()

func (*UpdatePermitStatusResponse) Reset

func (m *UpdatePermitStatusResponse) Reset()

func (*UpdatePermitStatusResponse) String

func (m *UpdatePermitStatusResponse) String() string

func (*UpdatePermitStatusResponse) XXX_DiscardUnknown

func (m *UpdatePermitStatusResponse) XXX_DiscardUnknown()

func (*UpdatePermitStatusResponse) XXX_Marshal

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

func (*UpdatePermitStatusResponse) XXX_Merge

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

func (*UpdatePermitStatusResponse) XXX_Size

func (m *UpdatePermitStatusResponse) XXX_Size() int

func (*UpdatePermitStatusResponse) XXX_Unmarshal

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

type User

type User struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	FullName             string   `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetFullName

func (m *User) GetFullName() string

func (*User) GetId

func (m *User) GetId() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

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

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

type UserStatus

type UserStatus struct {
	UserId               string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Status               string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UserStatus) Descriptor

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

func (*UserStatus) GetStatus

func (m *UserStatus) GetStatus() string

func (*UserStatus) GetUserId

func (m *UserStatus) GetUserId() string

func (*UserStatus) ProtoMessage

func (*UserStatus) ProtoMessage()

func (*UserStatus) Reset

func (m *UserStatus) Reset()

func (*UserStatus) String

func (m *UserStatus) String() string

func (*UserStatus) XXX_DiscardUnknown

func (m *UserStatus) XXX_DiscardUnknown()

func (*UserStatus) XXX_Marshal

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

func (*UserStatus) XXX_Merge

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

func (*UserStatus) XXX_Size

func (m *UserStatus) XXX_Size() int

func (*UserStatus) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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