Documentation ¶
Overview ¶
Package actor is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterActorHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterActorHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActorClient) error
- func RegisterActorHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterActorHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActorServer) error
- func RegisterActorServer(s grpc.ServiceRegistrar, srv ActorServer)
- type ActorClient
- type ActorData
- func (*ActorData) Descriptor() ([]byte, []int)deprecated
- func (x *ActorData) GetActorType() string
- func (x *ActorData) GetAddress() string
- func (x *ActorData) GetAvatar() string
- func (x *ActorData) GetDomain() string
- func (x *ActorData) GetId() int64
- func (x *ActorData) GetInbox() string
- func (x *ActorData) GetIsRemote() string
- func (x *ActorData) GetName() string
- func (x *ActorData) GetPreferredUsername() string
- func (x *ActorData) GetPublicKey() string
- func (x *ActorData) GetSummary() string
- func (*ActorData) ProtoMessage()
- func (x *ActorData) ProtoReflect() protoreflect.Message
- func (x *ActorData) Reset()
- func (x *ActorData) String() string
- type ActorServer
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetActorType() string
- func (x *CreateRequest) GetPreferredUsername() string
- func (x *CreateRequest) GetPublicKey() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetActorId() int64
- func (x *CreateResponse) GetCode() string
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type DeleteRequest
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResponse) GetCode() string
- func (x *DeleteResponse) GetStatus() string
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- type EditRequest
- func (*EditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EditRequest) GetAvatar() string
- func (x *EditRequest) GetName() string
- func (x *EditRequest) GetSummary() string
- func (*EditRequest) ProtoMessage()
- func (x *EditRequest) ProtoReflect() protoreflect.Message
- func (x *EditRequest) Reset()
- func (x *EditRequest) String() string
- type EditResponse
- func (*EditResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EditResponse) GetCode() string
- func (x *EditResponse) GetStatus() string
- func (*EditResponse) ProtoMessage()
- func (x *EditResponse) ProtoReflect() protoreflect.Message
- func (x *EditResponse) Reset()
- func (x *EditResponse) String() string
- type GetActorByAddressRequest
- func (*GetActorByAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetActorByAddressRequest) GetAddress() string
- func (*GetActorByAddressRequest) ProtoMessage()
- func (x *GetActorByAddressRequest) ProtoReflect() protoreflect.Message
- func (x *GetActorByAddressRequest) Reset()
- func (x *GetActorByAddressRequest) String() string
- type GetActorByAddressResponse
- func (*GetActorByAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActorByAddressResponse) GetActor() *ActorData
- func (*GetActorByAddressResponse) ProtoMessage()
- func (x *GetActorByAddressResponse) ProtoReflect() protoreflect.Message
- func (x *GetActorByAddressResponse) Reset()
- func (x *GetActorByAddressResponse) String() string
- type GetActorByUsernameRequest
- func (*GetActorByUsernameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetActorByUsernameRequest) GetUsername() string
- func (*GetActorByUsernameRequest) ProtoMessage()
- func (x *GetActorByUsernameRequest) ProtoReflect() protoreflect.Message
- func (x *GetActorByUsernameRequest) Reset()
- func (x *GetActorByUsernameRequest) String() string
- type GetRequest
- type GetResponse
- type IsExistRequest
- type IsExistResponse
- func (*IsExistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsExistResponse) GetActorType() string
- func (x *IsExistResponse) GetIsExist() bool
- func (*IsExistResponse) ProtoMessage()
- func (x *IsExistResponse) ProtoReflect() protoreflect.Message
- func (x *IsExistResponse) Reset()
- func (x *IsExistResponse) String() string
- type IsRemoteExistRequest
- func (*IsRemoteExistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsRemoteExistRequest) GetDomain() string
- func (x *IsRemoteExistRequest) GetPreferredUsername() string
- func (*IsRemoteExistRequest) ProtoMessage()
- func (x *IsRemoteExistRequest) ProtoReflect() protoreflect.Message
- func (x *IsRemoteExistRequest) Reset()
- func (x *IsRemoteExistRequest) String() string
- type SearchRequest
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetActors() []*ActorData
- func (x *SearchResponse) GetCode() string
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type UnimplementedActorServer
- func (UnimplementedActorServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedActorServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedActorServer) Edit(context.Context, *EditRequest) (*EditResponse, error)
- func (UnimplementedActorServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedActorServer) GetActorByAddress(context.Context, *GetActorByAddressRequest) (*ActorData, error)
- func (UnimplementedActorServer) GetActorByUsername(context.Context, *GetActorByUsernameRequest) (*ActorData, error)
- func (UnimplementedActorServer) IsExist(context.Context, *IsExistRequest) (*IsExistResponse, error)
- func (UnimplementedActorServer) IsRemoteExist(context.Context, *IsRemoteExistRequest) (*IsExistResponse, error)
- func (UnimplementedActorServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- type UnsafeActorServer
Constants ¶
This section is empty.
Variables ¶
var Actor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hvx.api.v1alpha1.actor.proto.Actor", HandlerType: (*ActorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsExist", Handler: _Actor_IsExist_Handler, }, { MethodName: "IsRemoteExist", Handler: _Actor_IsRemoteExist_Handler, }, { MethodName: "Create", Handler: _Actor_Create_Handler, }, { MethodName: "Get", Handler: _Actor_Get_Handler, }, { MethodName: "Search", Handler: _Actor_Search_Handler, }, { MethodName: "Edit", Handler: _Actor_Edit_Handler, }, { MethodName: "Delete", Handler: _Actor_Delete_Handler, }, { MethodName: "GetActorByUsername", Handler: _Actor_GetActorByUsername_Handler, }, { MethodName: "GetActorByAddress", Handler: _Actor_GetActorByAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1alpha1/actor/actor.proto", }
Actor_ServiceDesc is the grpc.ServiceDesc for Actor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_v1alpha1_actor_actor_proto protoreflect.FileDescriptor
Functions ¶
func RegisterActorHandler ¶
RegisterActorHandler registers the http handlers for service Actor to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterActorHandlerClient ¶
func RegisterActorHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActorClient) error
RegisterActorHandlerClient registers the http handlers for service Actor to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ActorClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ActorClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ActorClient" to call the correct interceptors.
func RegisterActorHandlerFromEndpoint ¶
func RegisterActorHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterActorHandlerFromEndpoint is same as RegisterActorHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterActorHandlerServer ¶
func RegisterActorHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActorServer) error
RegisterActorHandlerServer registers the http handlers for service Actor to "mux". UnaryRPC :call ActorServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActorHandlerFromEndpoint instead.
func RegisterActorServer ¶
func RegisterActorServer(s grpc.ServiceRegistrar, srv ActorServer)
Types ¶
type ActorClient ¶
type ActorClient interface { // IsExist returns true if the actor with the given name(PreferredUsername) exists. IsExist(ctx context.Context, in *IsExistRequest, opts ...grpc.CallOption) (*IsExistResponse, error) // IsRemoteExist When using the search service, if the user submits an absolute address, e.g. <hvturingga@disism.com>. // then this API should be used to query if it exists in the Actor table. IsRemoteExist(ctx context.Context, in *IsRemoteExistRequest, opts ...grpc.CallOption) (*IsExistResponse, error) // Create Creates an Actor that the API calls when creating an account for use with Activitypub's Actor information. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) // Get information about an Actor by its ActorId. Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) // Search for Actors in the instance via this API and return the set of all Actors // with that preferredUsername if only the preferredUsername is entered. // If you provide an absolute account address, // such as <hvturingga@disism.com> then only one unique Actor is returned. Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) // EditActor Edit Actor's profile, username, avatar, biography, etc. Edit(ctx context.Context, in *EditRequest, opts ...grpc.CallOption) (*EditResponse, error) // Delete Actor, you need to use this API to delete the user's Actor data // when the user logs out of his or her account. Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) // GetActorByUsername Query the user's Actor data by account name. GetActorByUsername(ctx context.Context, in *GetActorByUsernameRequest, opts ...grpc.CallOption) (*ActorData, error) // GetActorByAddress Get the user's Actor data by Actor address. // For example: <https://halfmemories.com/u/hvturingga>. GetActorByAddress(ctx context.Context, in *GetActorByAddressRequest, opts ...grpc.CallOption) (*ActorData, error) }
ActorClient is the client API for Actor 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 NewActorClient ¶
func NewActorClient(cc grpc.ClientConnInterface) ActorClient
type ActorData ¶
type ActorData struct { // id is the primary key of the Actor. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // preferred_username and the account name are the same. PreferredUsername string `protobuf:"bytes,2,opt,name=preferredUsername,proto3" json:"preferredUsername,omitempty"` // domain The domain name of the instance where the actor is located. // For example, https://halfmemories.com. Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` // avatar The link to the address of the avatar in the actor's profile. Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` // The name and username differ from the preferred username in that the name is used as a field to display only the user's name, // and the user can fill in their own line name or nickname. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // bio Summary string `protobuf:"bytes,6,opt,name=summary,proto3" json:"summary,omitempty"` // inbox is actor's inbox address. Inbox string `protobuf:"bytes,7,opt,name=inbox,proto3" json:"inbox,omitempty"` // address is the link address of the user, // through which the user's profile page can be obtained. Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` // publicKey used for Activitypub to sign messages. // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures-13 PublicKey string `protobuf:"bytes,9,opt,name=publicKey,proto3" json:"publicKey,omitempty"` // actorType Set the type of the Actor. // https://www.w3.org/TR/activitystreams-vocabulary/#actor-types. ActorType string `protobuf:"bytes,10,opt,name=actorType,proto3" json:"actorType,omitempty"` // isRemote Flags whether the account is a remote account, // which is neither the account of the local instance nor the Actor data obtained from the remote instance. IsRemote string `protobuf:"bytes,11,opt,name=isRemote,proto3" json:"isRemote,omitempty"` // contains filtered or unexported fields }
ActorData is the actor data. It contains the actor's public key, preferred username, and actor type.
func (*ActorData) Descriptor
deprecated
func (*ActorData) GetActorType ¶
func (*ActorData) GetAddress ¶
func (*ActorData) GetIsRemote ¶
func (*ActorData) GetPreferredUsername ¶
func (*ActorData) GetPublicKey ¶
func (*ActorData) GetSummary ¶
func (*ActorData) ProtoMessage ¶
func (*ActorData) ProtoMessage()
func (*ActorData) ProtoReflect ¶
func (x *ActorData) ProtoReflect() protoreflect.Message
type ActorServer ¶
type ActorServer interface { // IsExist returns true if the actor with the given name(PreferredUsername) exists. IsExist(context.Context, *IsExistRequest) (*IsExistResponse, error) // IsRemoteExist When using the search service, if the user submits an absolute address, e.g. <hvturingga@disism.com>. // then this API should be used to query if it exists in the Actor table. IsRemoteExist(context.Context, *IsRemoteExistRequest) (*IsExistResponse, error) // Create Creates an Actor that the API calls when creating an account for use with Activitypub's Actor information. Create(context.Context, *CreateRequest) (*CreateResponse, error) // Get information about an Actor by its ActorId. Get(context.Context, *GetRequest) (*GetResponse, error) // Search for Actors in the instance via this API and return the set of all Actors // with that preferredUsername if only the preferredUsername is entered. // If you provide an absolute account address, // such as <hvturingga@disism.com> then only one unique Actor is returned. Search(context.Context, *SearchRequest) (*SearchResponse, error) // EditActor Edit Actor's profile, username, avatar, biography, etc. Edit(context.Context, *EditRequest) (*EditResponse, error) // Delete Actor, you need to use this API to delete the user's Actor data // when the user logs out of his or her account. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // GetActorByUsername Query the user's Actor data by account name. GetActorByUsername(context.Context, *GetActorByUsernameRequest) (*ActorData, error) // GetActorByAddress Get the user's Actor data by Actor address. // For example: <https://halfmemories.com/u/hvturingga>. GetActorByAddress(context.Context, *GetActorByAddressRequest) (*ActorData, error) }
ActorServer is the server API for Actor service. All implementations should embed UnimplementedActorServer for forward compatibility
type CreateRequest ¶
type CreateRequest struct { PreferredUsername string `protobuf:"bytes,1,opt,name=preferredUsername,proto3" json:"preferredUsername,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` ActorType string `protobuf:"bytes,3,opt,name=actorType,proto3" json:"actorType,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetActorType ¶
func (x *CreateRequest) GetActorType() string
func (*CreateRequest) GetPreferredUsername ¶
func (x *CreateRequest) GetPreferredUsername() string
func (*CreateRequest) GetPublicKey ¶
func (x *CreateRequest) GetPublicKey() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` ActorId int64 `protobuf:"varint,2,opt,name=actorId,proto3" json:"actorId,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetActorId ¶
func (x *CreateResponse) GetActorId() int64
func (*CreateResponse) GetCode ¶
func (x *CreateResponse) GetCode() string
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { ActorId int64 `protobuf:"varint,1,opt,name=actorId,proto3" json:"actorId,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetActorId ¶
func (x *DeleteRequest) GetActorId() int64
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetCode ¶
func (x *DeleteResponse) GetCode() string
func (*DeleteResponse) GetStatus ¶
func (x *DeleteResponse) GetStatus() string
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type EditRequest ¶
type EditRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Avatar string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"` Summary string `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"` // contains filtered or unexported fields }
The actor data to be updated.
func (*EditRequest) Descriptor
deprecated
func (*EditRequest) Descriptor() ([]byte, []int)
Deprecated: Use EditRequest.ProtoReflect.Descriptor instead.
func (*EditRequest) GetAvatar ¶
func (x *EditRequest) GetAvatar() string
func (*EditRequest) GetName ¶
func (x *EditRequest) GetName() string
func (*EditRequest) GetSummary ¶
func (x *EditRequest) GetSummary() string
func (*EditRequest) ProtoMessage ¶
func (*EditRequest) ProtoMessage()
func (*EditRequest) ProtoReflect ¶
func (x *EditRequest) ProtoReflect() protoreflect.Message
func (*EditRequest) Reset ¶
func (x *EditRequest) Reset()
func (*EditRequest) String ¶
func (x *EditRequest) String() string
type EditResponse ¶
type EditResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*EditResponse) Descriptor
deprecated
func (*EditResponse) Descriptor() ([]byte, []int)
Deprecated: Use EditResponse.ProtoReflect.Descriptor instead.
func (*EditResponse) GetCode ¶
func (x *EditResponse) GetCode() string
func (*EditResponse) GetStatus ¶
func (x *EditResponse) GetStatus() string
func (*EditResponse) ProtoMessage ¶
func (*EditResponse) ProtoMessage()
func (*EditResponse) ProtoReflect ¶
func (x *EditResponse) ProtoReflect() protoreflect.Message
func (*EditResponse) Reset ¶
func (x *EditResponse) Reset()
func (*EditResponse) String ¶
func (x *EditResponse) String() string
type GetActorByAddressRequest ¶
type GetActorByAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetActorByAddressRequest) Descriptor
deprecated
func (*GetActorByAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActorByAddressRequest.ProtoReflect.Descriptor instead.
func (*GetActorByAddressRequest) GetAddress ¶
func (x *GetActorByAddressRequest) GetAddress() string
func (*GetActorByAddressRequest) ProtoMessage ¶
func (*GetActorByAddressRequest) ProtoMessage()
func (*GetActorByAddressRequest) ProtoReflect ¶
func (x *GetActorByAddressRequest) ProtoReflect() protoreflect.Message
func (*GetActorByAddressRequest) Reset ¶
func (x *GetActorByAddressRequest) Reset()
func (*GetActorByAddressRequest) String ¶
func (x *GetActorByAddressRequest) String() string
type GetActorByAddressResponse ¶
type GetActorByAddressResponse struct { Actor *ActorData `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` // contains filtered or unexported fields }
func (*GetActorByAddressResponse) Descriptor
deprecated
func (*GetActorByAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActorByAddressResponse.ProtoReflect.Descriptor instead.
func (*GetActorByAddressResponse) GetActor ¶
func (x *GetActorByAddressResponse) GetActor() *ActorData
func (*GetActorByAddressResponse) ProtoMessage ¶
func (*GetActorByAddressResponse) ProtoMessage()
func (*GetActorByAddressResponse) ProtoReflect ¶
func (x *GetActorByAddressResponse) ProtoReflect() protoreflect.Message
func (*GetActorByAddressResponse) Reset ¶
func (x *GetActorByAddressResponse) Reset()
func (*GetActorByAddressResponse) String ¶
func (x *GetActorByAddressResponse) String() string
type GetActorByUsernameRequest ¶
type GetActorByUsernameRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetActorByUsernameRequest) Descriptor
deprecated
func (*GetActorByUsernameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActorByUsernameRequest.ProtoReflect.Descriptor instead.
func (*GetActorByUsernameRequest) GetUsername ¶
func (x *GetActorByUsernameRequest) GetUsername() string
func (*GetActorByUsernameRequest) ProtoMessage ¶
func (*GetActorByUsernameRequest) ProtoMessage()
func (*GetActorByUsernameRequest) ProtoReflect ¶
func (x *GetActorByUsernameRequest) ProtoReflect() protoreflect.Message
func (*GetActorByUsernameRequest) Reset ¶
func (x *GetActorByUsernameRequest) Reset()
func (*GetActorByUsernameRequest) String ¶
func (x *GetActorByUsernameRequest) String() string
type GetRequest ¶
type GetRequest struct { ActorId int64 `protobuf:"varint,1,opt,name=actorId,proto3" json:"actorId,omitempty"` // contains filtered or unexported fields }
GetRequest is the request for Get. It contains the actor id.
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetActorId ¶
func (x *GetRequest) GetActorId() int64
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Actor *ActorData `protobuf:"bytes,1,opt,name=actor,proto3" json:"actor,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetActor ¶
func (x *GetResponse) GetActor() *ActorData
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type IsExistRequest ¶
type IsExistRequest struct { PreferredUsername string `protobuf:"bytes,1,opt,name=preferredUsername,proto3" json:"preferredUsername,omitempty"` // contains filtered or unexported fields }
func (*IsExistRequest) Descriptor
deprecated
func (*IsExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsExistRequest.ProtoReflect.Descriptor instead.
func (*IsExistRequest) GetPreferredUsername ¶
func (x *IsExistRequest) GetPreferredUsername() string
func (*IsExistRequest) ProtoMessage ¶
func (*IsExistRequest) ProtoMessage()
func (*IsExistRequest) ProtoReflect ¶
func (x *IsExistRequest) ProtoReflect() protoreflect.Message
func (*IsExistRequest) Reset ¶
func (x *IsExistRequest) Reset()
func (*IsExistRequest) String ¶
func (x *IsExistRequest) String() string
type IsExistResponse ¶
type IsExistResponse struct { IsExist bool `protobuf:"varint,1,opt,name=isExist,proto3" json:"isExist,omitempty"` ActorType string `protobuf:"bytes,2,opt,name=actorType,proto3" json:"actorType,omitempty"` // contains filtered or unexported fields }
func (*IsExistResponse) Descriptor
deprecated
func (*IsExistResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsExistResponse.ProtoReflect.Descriptor instead.
func (*IsExistResponse) GetActorType ¶
func (x *IsExistResponse) GetActorType() string
func (*IsExistResponse) GetIsExist ¶
func (x *IsExistResponse) GetIsExist() bool
func (*IsExistResponse) ProtoMessage ¶
func (*IsExistResponse) ProtoMessage()
func (*IsExistResponse) ProtoReflect ¶
func (x *IsExistResponse) ProtoReflect() protoreflect.Message
func (*IsExistResponse) Reset ¶
func (x *IsExistResponse) Reset()
func (*IsExistResponse) String ¶
func (x *IsExistResponse) String() string
type IsRemoteExistRequest ¶
type IsRemoteExistRequest struct { PreferredUsername string `protobuf:"bytes,1,opt,name=preferredUsername,proto3" json:"preferredUsername,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*IsRemoteExistRequest) Descriptor
deprecated
func (*IsRemoteExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsRemoteExistRequest.ProtoReflect.Descriptor instead.
func (*IsRemoteExistRequest) GetDomain ¶
func (x *IsRemoteExistRequest) GetDomain() string
func (*IsRemoteExistRequest) GetPreferredUsername ¶
func (x *IsRemoteExistRequest) GetPreferredUsername() string
func (*IsRemoteExistRequest) ProtoMessage ¶
func (*IsRemoteExistRequest) ProtoMessage()
func (*IsRemoteExistRequest) ProtoReflect ¶
func (x *IsRemoteExistRequest) ProtoReflect() protoreflect.Message
func (*IsRemoteExistRequest) Reset ¶
func (x *IsRemoteExistRequest) Reset()
func (*IsRemoteExistRequest) String ¶
func (x *IsRemoteExistRequest) String() string
type SearchRequest ¶
type SearchRequest struct { PreferredUsername string `protobuf:"bytes,1,opt,name=preferredUsername,proto3" json:"preferredUsername,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetPreferredUsername ¶
func (x *SearchRequest) GetPreferredUsername() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Actors []*ActorData `protobuf:"bytes,2,rep,name=actors,proto3" json:"actors,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetActors ¶
func (x *SearchResponse) GetActors() []*ActorData
func (*SearchResponse) GetCode ¶
func (x *SearchResponse) GetCode() string
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type UnimplementedActorServer ¶
type UnimplementedActorServer struct { }
UnimplementedActorServer should be embedded to have forward compatible implementations.
func (UnimplementedActorServer) Create ¶
func (UnimplementedActorServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedActorServer) Delete ¶
func (UnimplementedActorServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedActorServer) Edit ¶
func (UnimplementedActorServer) Edit(context.Context, *EditRequest) (*EditResponse, error)
func (UnimplementedActorServer) Get ¶
func (UnimplementedActorServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedActorServer) GetActorByAddress ¶
func (UnimplementedActorServer) GetActorByAddress(context.Context, *GetActorByAddressRequest) (*ActorData, error)
func (UnimplementedActorServer) GetActorByUsername ¶
func (UnimplementedActorServer) GetActorByUsername(context.Context, *GetActorByUsernameRequest) (*ActorData, error)
func (UnimplementedActorServer) IsExist ¶
func (UnimplementedActorServer) IsExist(context.Context, *IsExistRequest) (*IsExistResponse, error)
func (UnimplementedActorServer) IsRemoteExist ¶
func (UnimplementedActorServer) IsRemoteExist(context.Context, *IsRemoteExistRequest) (*IsExistResponse, error)
func (UnimplementedActorServer) Search ¶
func (UnimplementedActorServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
type UnsafeActorServer ¶
type UnsafeActorServer interface {
// contains filtered or unexported methods
}
UnsafeActorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActorServer will result in compilation errors.