parties

package
v3.18.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_strmprivacy_api_parties_v1alpha_parties_v1alpha_proto protoreflect.FileDescriptor
View Source
var PartiesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.parties.v1alpha.PartiesService",
	HandlerType: (*PartiesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListParties",
			Handler:    _PartiesService_ListParties_Handler,
		},
		{
			MethodName: "GetParty",
			Handler:    _PartiesService_GetParty_Handler,
		},
		{
			MethodName: "UpsertParty",
			Handler:    _PartiesService_UpsertParty_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strmprivacy/api/parties/v1alpha/parties_v1alpha.proto",
}

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

Functions

func RegisterPartiesServiceServer

func RegisterPartiesServiceServer(s grpc.ServiceRegistrar, srv PartiesServiceServer)

Types

type GetPartyRequest

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

func (*GetPartyRequest) Descriptor deprecated

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

Deprecated: Use GetPartyRequest.ProtoReflect.Descriptor instead.

func (*GetPartyRequest) GetId

func (x *GetPartyRequest) GetId() string

func (*GetPartyRequest) ProtoMessage

func (*GetPartyRequest) ProtoMessage()

func (*GetPartyRequest) ProtoReflect

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

func (*GetPartyRequest) Reset

func (x *GetPartyRequest) Reset()

func (*GetPartyRequest) String

func (x *GetPartyRequest) String() string

type GetPartyResponse

type GetPartyResponse struct {
	Party *v1alpha1.Party `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPartyResponse) Descriptor deprecated

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

Deprecated: Use GetPartyResponse.ProtoReflect.Descriptor instead.

func (*GetPartyResponse) GetParty

func (x *GetPartyResponse) GetParty() *v1alpha1.Party

func (*GetPartyResponse) ProtoMessage

func (*GetPartyResponse) ProtoMessage()

func (*GetPartyResponse) ProtoReflect

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

func (*GetPartyResponse) Reset

func (x *GetPartyResponse) Reset()

func (*GetPartyResponse) String

func (x *GetPartyResponse) String() string

type ListPartiesRequest

type ListPartiesRequest struct {
	PageInfo *v1alpha.PageInfo `protobuf:"bytes,1,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPartiesRequest) Descriptor deprecated

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

Deprecated: Use ListPartiesRequest.ProtoReflect.Descriptor instead.

func (*ListPartiesRequest) GetPageInfo

func (x *ListPartiesRequest) GetPageInfo() *v1alpha.PageInfo

func (*ListPartiesRequest) ProtoMessage

func (*ListPartiesRequest) ProtoMessage()

func (*ListPartiesRequest) ProtoReflect

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

func (*ListPartiesRequest) Reset

func (x *ListPartiesRequest) Reset()

func (*ListPartiesRequest) String

func (x *ListPartiesRequest) String() string

type ListPartiesResponse

type ListPartiesResponse struct {

	// Parties returned.
	Parties  []*v1alpha1.Party `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"`
	PageInfo *v1alpha.PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPartiesResponse) Descriptor deprecated

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

Deprecated: Use ListPartiesResponse.ProtoReflect.Descriptor instead.

func (*ListPartiesResponse) GetPageInfo

func (x *ListPartiesResponse) GetPageInfo() *v1alpha.PageInfo

func (*ListPartiesResponse) GetParties

func (x *ListPartiesResponse) GetParties() []*v1alpha1.Party

func (*ListPartiesResponse) ProtoMessage

func (*ListPartiesResponse) ProtoMessage()

func (*ListPartiesResponse) ProtoReflect

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

func (*ListPartiesResponse) Reset

func (x *ListPartiesResponse) Reset()

func (*ListPartiesResponse) String

func (x *ListPartiesResponse) String() string

type PartiesServiceClient

type PartiesServiceClient interface {
	// List all parties for an organization. The organization is derived from the calling user.
	ListParties(ctx context.Context, in *ListPartiesRequest, opts ...grpc.CallOption) (*ListPartiesResponse, error)
	// Get a party by its id
	GetParty(ctx context.Context, in *GetPartyRequest, opts ...grpc.CallOption) (*GetPartyResponse, error)
	// Create or update a party. To create a party, leave its id empty. To update a party, set its id.
	UpsertParty(ctx context.Context, in *UpsertPartyRequest, opts ...grpc.CallOption) (*UpsertPartyResponse, error)
}

PartiesServiceClient is the client API for PartiesService 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 PartiesServiceServer

type PartiesServiceServer interface {
	// List all parties for an organization. The organization is derived from the calling user.
	ListParties(context.Context, *ListPartiesRequest) (*ListPartiesResponse, error)
	// Get a party by its id
	GetParty(context.Context, *GetPartyRequest) (*GetPartyResponse, error)
	// Create or update a party. To create a party, leave its id empty. To update a party, set its id.
	UpsertParty(context.Context, *UpsertPartyRequest) (*UpsertPartyResponse, error)
}

PartiesServiceServer is the server API for PartiesService service. All implementations should embed UnimplementedPartiesServiceServer for forward compatibility

type UnimplementedPartiesServiceServer

type UnimplementedPartiesServiceServer struct {
}

UnimplementedPartiesServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPartiesServiceServer) GetParty

func (UnimplementedPartiesServiceServer) ListParties

func (UnimplementedPartiesServiceServer) UpsertParty

type UnsafePartiesServiceServer

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

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

type UpsertPartyRequest

type UpsertPartyRequest struct {
	Party *v1alpha1.Party `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// contains filtered or unexported fields
}

To create a party, leave its id empty. To update a party, set its id.

func (*UpsertPartyRequest) Descriptor deprecated

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

Deprecated: Use UpsertPartyRequest.ProtoReflect.Descriptor instead.

func (*UpsertPartyRequest) GetParty

func (x *UpsertPartyRequest) GetParty() *v1alpha1.Party

func (*UpsertPartyRequest) ProtoMessage

func (*UpsertPartyRequest) ProtoMessage()

func (*UpsertPartyRequest) ProtoReflect

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

func (*UpsertPartyRequest) Reset

func (x *UpsertPartyRequest) Reset()

func (*UpsertPartyRequest) String

func (x *UpsertPartyRequest) String() string

type UpsertPartyResponse

type UpsertPartyResponse struct {
	Party *v1alpha1.Party `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertPartyResponse) Descriptor deprecated

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

Deprecated: Use UpsertPartyResponse.ProtoReflect.Descriptor instead.

func (*UpsertPartyResponse) GetParty

func (x *UpsertPartyResponse) GetParty() *v1alpha1.Party

func (*UpsertPartyResponse) ProtoMessage

func (*UpsertPartyResponse) ProtoMessage()

func (*UpsertPartyResponse) ProtoReflect

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

func (*UpsertPartyResponse) Reset

func (x *UpsertPartyResponse) Reset()

func (*UpsertPartyResponse) String

func (x *UpsertPartyResponse) String() string

Jump to

Keyboard shortcuts

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