credentialpb

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Credential_CredentialVersion_FullMethodName = "/credentialpb.credential/CredentialVersion"
	Credential_CreateCredential_FullMethodName  = "/credentialpb.credential/CreateCredential"
	Credential_CredentialList_FullMethodName    = "/credentialpb.credential/CredentialList"
	Credential_CredentialDetail_FullMethodName  = "/credentialpb.credential/CredentialDetail"
)

Variables

View Source
var Credential_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "credentialpb.credential",
	HandlerType: (*CredentialServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CredentialVersion",
			Handler:    _Credential_CredentialVersion_Handler,
		},
		{
			MethodName: "CreateCredential",
			Handler:    _Credential_CreateCredential_Handler,
		},
		{
			MethodName: "CredentialList",
			Handler:    _Credential_CredentialList_Handler,
		},
		{
			MethodName: "CredentialDetail",
			Handler:    _Credential_CredentialDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "credential.proto",
}

Credential_ServiceDesc is the grpc.ServiceDesc for Credential 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_credential_proto protoreflect.FileDescriptor

Functions

func RegisterCredentialServer

func RegisterCredentialServer(s grpc.ServiceRegistrar, srv CredentialServer)

Types

type CreateCredentialRequest

type CreateCredentialRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type int32  `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCredentialRequest) Descriptor deprecated

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

Deprecated: Use CreateCredentialRequest.ProtoReflect.Descriptor instead.

func (*CreateCredentialRequest) GetName

func (x *CreateCredentialRequest) GetName() string

func (*CreateCredentialRequest) GetType

func (x *CreateCredentialRequest) GetType() int32

func (*CreateCredentialRequest) ProtoMessage

func (*CreateCredentialRequest) ProtoMessage()

func (*CreateCredentialRequest) ProtoReflect

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

func (*CreateCredentialRequest) Reset

func (x *CreateCredentialRequest) Reset()

func (*CreateCredentialRequest) String

func (x *CreateCredentialRequest) String() string

type CreateCredentialResponse

type CreateCredentialResponse struct {
	Id   int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type int32  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCredentialResponse) Descriptor deprecated

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

Deprecated: Use CreateCredentialResponse.ProtoReflect.Descriptor instead.

func (*CreateCredentialResponse) GetId

func (x *CreateCredentialResponse) GetId() int32

func (*CreateCredentialResponse) GetName

func (x *CreateCredentialResponse) GetName() string

func (*CreateCredentialResponse) GetType

func (x *CreateCredentialResponse) GetType() int32

func (*CreateCredentialResponse) ProtoMessage

func (*CreateCredentialResponse) ProtoMessage()

func (*CreateCredentialResponse) ProtoReflect

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

func (*CreateCredentialResponse) Reset

func (x *CreateCredentialResponse) Reset()

func (*CreateCredentialResponse) String

func (x *CreateCredentialResponse) String() string

type Credential

type Credential struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type int32  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Credential) Descriptor deprecated

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetId

func (x *Credential) GetId() int64

func (*Credential) GetName

func (x *Credential) GetName() string

func (*Credential) GetType

func (x *Credential) GetType() int32

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type CredentialClient

type CredentialClient interface {
	CredentialVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CredentialVersionResponse, error)
	CreateCredential(ctx context.Context, in *CreateCredentialRequest, opts ...grpc.CallOption) (*CreateCredentialResponse, error)
	CredentialList(ctx context.Context, in *CredentialListRequest, opts ...grpc.CallOption) (*CredentialListResponse, error)
	CredentialDetail(ctx context.Context, in *Int32Id, opts ...grpc.CallOption) (*Credential, error)
}

CredentialClient is the client API for Credential 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 NewCredentialClient

func NewCredentialClient(cc grpc.ClientConnInterface) CredentialClient

type CredentialListRequest

type CredentialListRequest struct {

	// page options
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// filter by name
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialListRequest) Descriptor deprecated

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

Deprecated: Use CredentialListRequest.ProtoReflect.Descriptor instead.

func (*CredentialListRequest) GetName

func (x *CredentialListRequest) GetName() string

func (*CredentialListRequest) GetPage

func (x *CredentialListRequest) GetPage() int32

func (*CredentialListRequest) GetSize

func (x *CredentialListRequest) GetSize() int32

func (*CredentialListRequest) ProtoMessage

func (*CredentialListRequest) ProtoMessage()

func (*CredentialListRequest) ProtoReflect

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

func (*CredentialListRequest) Reset

func (x *CredentialListRequest) Reset()

func (*CredentialListRequest) String

func (x *CredentialListRequest) String() string

type CredentialListResponse

type CredentialListResponse struct {
	List  []*Credential `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int32         `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialListResponse) Descriptor deprecated

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

Deprecated: Use CredentialListResponse.ProtoReflect.Descriptor instead.

func (*CredentialListResponse) GetList

func (x *CredentialListResponse) GetList() []*Credential

func (*CredentialListResponse) GetTotal

func (x *CredentialListResponse) GetTotal() int32

func (*CredentialListResponse) ProtoMessage

func (*CredentialListResponse) ProtoMessage()

func (*CredentialListResponse) ProtoReflect

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

func (*CredentialListResponse) Reset

func (x *CredentialListResponse) Reset()

func (*CredentialListResponse) String

func (x *CredentialListResponse) String() string

type CredentialServer

type CredentialServer interface {
	CredentialVersion(context.Context, *Empty) (*CredentialVersionResponse, error)
	CreateCredential(context.Context, *CreateCredentialRequest) (*CreateCredentialResponse, error)
	CredentialList(context.Context, *CredentialListRequest) (*CredentialListResponse, error)
	CredentialDetail(context.Context, *Int32Id) (*Credential, error)
	// contains filtered or unexported methods
}

CredentialServer is the server API for Credential service. All implementations must embed UnimplementedCredentialServer for forward compatibility

type CredentialVersionResponse

type CredentialVersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*CredentialVersionResponse) Descriptor deprecated

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

Deprecated: Use CredentialVersionResponse.ProtoReflect.Descriptor instead.

func (*CredentialVersionResponse) GetVersion

func (x *CredentialVersionResponse) GetVersion() string

func (*CredentialVersionResponse) ProtoMessage

func (*CredentialVersionResponse) ProtoMessage()

func (*CredentialVersionResponse) ProtoReflect

func (*CredentialVersionResponse) Reset

func (x *CredentialVersionResponse) Reset()

func (*CredentialVersionResponse) String

func (x *CredentialVersionResponse) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Int32Id

type Int32Id struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Int32Id) Descriptor deprecated

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

Deprecated: Use Int32Id.ProtoReflect.Descriptor instead.

func (*Int32Id) GetId

func (x *Int32Id) GetId() int32

func (*Int32Id) ProtoMessage

func (*Int32Id) ProtoMessage()

func (*Int32Id) ProtoReflect

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

func (*Int32Id) Reset

func (x *Int32Id) Reset()

func (*Int32Id) String

func (x *Int32Id) String() string

type UnimplementedCredentialServer

type UnimplementedCredentialServer struct {
}

UnimplementedCredentialServer must be embedded to have forward compatible implementations.

func (UnimplementedCredentialServer) CreateCredential

func (UnimplementedCredentialServer) CredentialDetail

func (UnimplementedCredentialServer) CredentialList

func (UnimplementedCredentialServer) CredentialVersion

type UnsafeCredentialServer

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

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

Jump to

Keyboard shortcuts

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