Documentation ¶
Index ¶
- func AuthContact(ctx context.Context) (*models.Contact, string, error)
- func AuthMirror(ctx context.Context) (*models.Mirror, error)
- func StartApi(addr, port string)
- func StartGateway(addr, port, api string)
- type ContactServiceServer
- func (m *ContactServiceServer) Authorize(ctx context.Context, request *pb.AuthorizeContactRequest) (*pb.ContactResponse, error)
- func (m *ContactServiceServer) Create(ctx context.Context, c *pb.Contact) (*pb.ContactResponse, error)
- func (m *ContactServiceServer) Get(ctx context.Context, c *pb.Contact) (*pb.ContactResponse, error)
- func (m *ContactServiceServer) Update(ctx context.Context, c *pb.Contact) (*pb.ContactResponse, error)
- type MirrorServiceServer
- func (m *MirrorServiceServer) Connect(ctx context.Context, request *pb.ConnectServiceAndMirror) (*pb.Mirror, error)
- func (m *MirrorServiceServer) Create(ctx context.Context, mirror *pb.Mirror) (*pb.Mirror, error)
- func (m *MirrorServiceServer) Find(ctx context.Context, request *pb.MirrorFindRequest) (*pb.Mirror, error)
- func (m *MirrorServiceServer) FindById(ctx context.Context, request *pb.Mirror) (*pb.Mirror, error)
- func (m *MirrorServiceServer) Get(ctx context.Context, request *pb.ListRequest) (*pb.MirrorGetResponse, error)
- func (m *MirrorServiceServer) UpdateById(ctx context.Context, request *pb.Mirror) (*pb.Mirror, error)
- type ServiceServiceServer
- func (m *ServiceServiceServer) Create(ctx context.Context, request *pb.Service) (*pb.Service, error)
- func (m *ServiceServiceServer) Find(ctx context.Context, request *pb.Service) (*pb.Service, error)
- func (m *ServiceServiceServer) Get(ctx context.Context, request *pb.ServiceGetRequest) (*pb.ServiceGetResponse, error)
- func (m *ServiceServiceServer) Update(ctx context.Context, request *pb.Service) (*pb.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartGateway ¶ added in v0.2.0
func StartGateway(addr, port, api string)
Types ¶
type ContactServiceServer ¶
type ContactServiceServer struct { }
func (*ContactServiceServer) Authorize ¶
func (m *ContactServiceServer) Authorize(ctx context.Context, request *pb.AuthorizeContactRequest) (*pb.ContactResponse, error)
func (*ContactServiceServer) Create ¶
func (m *ContactServiceServer) Create(ctx context.Context, c *pb.Contact) (*pb.ContactResponse, error)
func (*ContactServiceServer) Get ¶ added in v0.1.2
func (m *ContactServiceServer) Get(ctx context.Context, c *pb.Contact) (*pb.ContactResponse, error)
func (*ContactServiceServer) Update ¶ added in v0.1.2
func (m *ContactServiceServer) Update(ctx context.Context, c *pb.Contact) (*pb.ContactResponse, error)
type MirrorServiceServer ¶
type MirrorServiceServer struct { }
func (*MirrorServiceServer) Connect ¶ added in v0.1.3
func (m *MirrorServiceServer) Connect(ctx context.Context, request *pb.ConnectServiceAndMirror) (*pb.Mirror, error)
func (*MirrorServiceServer) Find ¶
func (m *MirrorServiceServer) Find(ctx context.Context, request *pb.MirrorFindRequest) (*pb.Mirror, error)
func (*MirrorServiceServer) Get ¶
func (m *MirrorServiceServer) Get(ctx context.Context, request *pb.ListRequest) (*pb.MirrorGetResponse, error)
func (*MirrorServiceServer) UpdateById ¶ added in v0.1.3
type ServiceServiceServer ¶ added in v0.2.0
type ServiceServiceServer struct { }
func (*ServiceServiceServer) Get ¶ added in v0.2.0
func (m *ServiceServiceServer) Get(ctx context.Context, request *pb.ServiceGetRequest) (*pb.ServiceGetResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.