Documentation ¶
Index ¶
- func RegisterAccessoryServiceServer(s *grpc.Server, srv AccessoryServiceServer)
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type AccessoryRequest
- func (*AccessoryRequest) Descriptor() ([]byte, []int)
- func (m *AccessoryRequest) GetAccessory() *messages.Accessory
- func (m *AccessoryRequest) GetAuth() *AuthenticateRequest
- func (*AccessoryRequest) ProtoMessage()
- func (m *AccessoryRequest) Reset()
- func (m *AccessoryRequest) String() string
- func (m *AccessoryRequest) XXX_DiscardUnknown()
- func (m *AccessoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessoryRequest) XXX_Merge(src proto.Message)
- func (m *AccessoryRequest) XXX_Size() int
- func (m *AccessoryRequest) XXX_Unmarshal(b []byte) error
- type AccessoryServiceClient
- type AccessoryServiceServer
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)
- func (m *AuthRequest) GetPass() string
- func (m *AuthRequest) GetUser() string
- func (*AuthRequest) ProtoMessage()
- func (m *AuthRequest) Reset()
- func (m *AuthRequest) String() string
- func (m *AuthRequest) XXX_DiscardUnknown()
- func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthRequest) XXX_Merge(src proto.Message)
- func (m *AuthRequest) XXX_Size() int
- func (m *AuthRequest) XXX_Unmarshal(b []byte) error
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)
- func (m *AuthResponse) GetCode() int64
- func (m *AuthResponse) GetMessage() string
- func (m *AuthResponse) GetRefreshedToken() []byte
- func (m *AuthResponse) GetStatus() string
- func (m *AuthResponse) GetToken() []byte
- func (m *AuthResponse) GetType() string
- func (m *AuthResponse) GetValidationError() []*ValidationError
- func (*AuthResponse) ProtoMessage()
- func (m *AuthResponse) Reset()
- func (m *AuthResponse) String() string
- func (m *AuthResponse) XXX_DiscardUnknown()
- func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthResponse) XXX_Merge(src proto.Message)
- func (m *AuthResponse) XXX_Size() int
- func (m *AuthResponse) XXX_Unmarshal(b []byte) error
- type AuthServiceClient
- type AuthServiceServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)
- func (m *AuthenticateRequest) GetToken() []byte
- func (*AuthenticateRequest) ProtoMessage()
- func (m *AuthenticateRequest) Reset()
- func (m *AuthenticateRequest) String() string
- func (m *AuthenticateRequest) XXX_DiscardUnknown()
- func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthenticateRequest) XXX_Merge(src proto.Message)
- func (m *AuthenticateRequest) XXX_Size() int
- func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error
- type GetAccessoriesResponse
- func (*GetAccessoriesResponse) Descriptor() ([]byte, []int)
- func (m *GetAccessoriesResponse) GetCode() int64
- func (m *GetAccessoriesResponse) GetMessage() string
- func (m *GetAccessoriesResponse) GetResult() []*messages.Accessory
- func (m *GetAccessoriesResponse) GetStatus() string
- func (*GetAccessoriesResponse) ProtoMessage()
- func (m *GetAccessoriesResponse) Reset()
- func (m *GetAccessoriesResponse) String() string
- func (m *GetAccessoriesResponse) XXX_DiscardUnknown()
- func (m *GetAccessoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccessoriesResponse) XXX_Merge(src proto.Message)
- func (m *GetAccessoriesResponse) XXX_Size() int
- func (m *GetAccessoriesResponse) XXX_Unmarshal(b []byte) error
- type GetLogsResponse
- func (*GetLogsResponse) Descriptor() ([]byte, []int)
- func (m *GetLogsResponse) GetCode() int64
- func (m *GetLogsResponse) GetMessage() string
- func (m *GetLogsResponse) GetResult() []*messages.Log
- func (m *GetLogsResponse) GetStatus() string
- func (*GetLogsResponse) ProtoMessage()
- func (m *GetLogsResponse) Reset()
- func (m *GetLogsResponse) String() string
- func (m *GetLogsResponse) XXX_DiscardUnknown()
- func (m *GetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetLogsResponse) XXX_Merge(src proto.Message)
- func (m *GetLogsResponse) XXX_Size() int
- func (m *GetLogsResponse) XXX_Unmarshal(b []byte) error
- type GetPinsRequest
- func (*GetPinsRequest) Descriptor() ([]byte, []int)
- func (m *GetPinsRequest) GetAuth() *AuthenticateRequest
- func (m *GetPinsRequest) GetType() messages.PIN_TYPE
- func (*GetPinsRequest) ProtoMessage()
- func (m *GetPinsRequest) Reset()
- func (m *GetPinsRequest) String() string
- func (m *GetPinsRequest) XXX_DiscardUnknown()
- func (m *GetPinsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPinsRequest) XXX_Merge(src proto.Message)
- func (m *GetPinsRequest) XXX_Size() int
- func (m *GetPinsRequest) XXX_Unmarshal(b []byte) error
- type GetPinsResponse
- func (*GetPinsResponse) Descriptor() ([]byte, []int)
- func (m *GetPinsResponse) GetCode() int64
- func (m *GetPinsResponse) GetMessage() string
- func (m *GetPinsResponse) GetResult() *messages.Pins
- func (m *GetPinsResponse) GetStatus() string
- func (*GetPinsResponse) ProtoMessage()
- func (m *GetPinsResponse) Reset()
- func (m *GetPinsResponse) String() string
- func (m *GetPinsResponse) XXX_DiscardUnknown()
- func (m *GetPinsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPinsResponse) XXX_Merge(src proto.Message)
- func (m *GetPinsResponse) XXX_Size() int
- func (m *GetPinsResponse) XXX_Unmarshal(b []byte) error
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)
- func (m *GetUserResponse) GetCode() int64
- func (m *GetUserResponse) GetMessage() string
- func (m *GetUserResponse) GetResult() *messages.User
- func (m *GetUserResponse) GetStatus() string
- func (*GetUserResponse) ProtoMessage()
- func (m *GetUserResponse) Reset()
- func (m *GetUserResponse) String() string
- func (m *GetUserResponse) XXX_DiscardUnknown()
- func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserResponse) XXX_Merge(src proto.Message)
- func (m *GetUserResponse) XXX_Size() int
- func (m *GetUserResponse) XXX_Unmarshal(b []byte) error
- type LogServiceClient
- type LogServiceServer
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
- func (m *RefreshTokenRequest) GetRefreshedToken() []byte
- func (*RefreshTokenRequest) ProtoMessage()
- func (m *RefreshTokenRequest) Reset()
- func (m *RefreshTokenRequest) String() string
- func (m *RefreshTokenRequest) XXX_DiscardUnknown()
- func (m *RefreshTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefreshTokenRequest) XXX_Merge(src proto.Message)
- func (m *RefreshTokenRequest) XXX_Size() int
- func (m *RefreshTokenRequest) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetCode() int64
- func (m *Response) GetMessage() string
- func (m *Response) GetResult() []byte
- func (m *Response) GetStatus() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type UnimplementedAccessoryServiceServer
- func (*UnimplementedAccessoryServiceServer) CreateAccessory(ctx context.Context, req *AccessoryRequest) (*Response, error)
- func (*UnimplementedAccessoryServiceServer) GetAccessories(ctx context.Context, req *AuthenticateRequest) (*GetAccessoriesResponse, error)
- func (*UnimplementedAccessoryServiceServer) GetPins(ctx context.Context, req *GetPinsRequest) (*GetPinsResponse, error)
- func (*UnimplementedAccessoryServiceServer) RunAccessory(ctx context.Context, req *AccessoryRequest) (*Response, error)
- type UnimplementedAuthServiceServer
- type UnimplementedLogServiceServer
- type UnimplementedUserServiceServer
- type UserServiceClient
- type UserServiceServer
- type ValidationError
- func (*ValidationError) Descriptor() ([]byte, []int)
- func (m *ValidationError) GetErrors() []string
- func (m *ValidationError) GetField() string
- func (*ValidationError) ProtoMessage()
- func (m *ValidationError) Reset()
- func (m *ValidationError) String() string
- func (m *ValidationError) XXX_DiscardUnknown()
- func (m *ValidationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidationError) XXX_Merge(src proto.Message)
- func (m *ValidationError) XXX_Size() int
- func (m *ValidationError) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAccessoryServiceServer ¶
func RegisterAccessoryServiceServer(s *grpc.Server, srv AccessoryServiceServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
func RegisterLogServiceServer ¶
func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type AccessoryRequest ¶
type AccessoryRequest struct { Auth *AuthenticateRequest `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Accessory *messages.Accessory `protobuf:"bytes,2,opt,name=accessory,proto3" json:"accessory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccessoryRequest) Descriptor ¶
func (*AccessoryRequest) Descriptor() ([]byte, []int)
func (*AccessoryRequest) GetAccessory ¶
func (m *AccessoryRequest) GetAccessory() *messages.Accessory
func (*AccessoryRequest) GetAuth ¶
func (m *AccessoryRequest) GetAuth() *AuthenticateRequest
func (*AccessoryRequest) ProtoMessage ¶
func (*AccessoryRequest) ProtoMessage()
func (*AccessoryRequest) Reset ¶
func (m *AccessoryRequest) Reset()
func (*AccessoryRequest) String ¶
func (m *AccessoryRequest) String() string
func (*AccessoryRequest) XXX_DiscardUnknown ¶
func (m *AccessoryRequest) XXX_DiscardUnknown()
func (*AccessoryRequest) XXX_Marshal ¶
func (m *AccessoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessoryRequest) XXX_Merge ¶
func (m *AccessoryRequest) XXX_Merge(src proto.Message)
func (*AccessoryRequest) XXX_Size ¶
func (m *AccessoryRequest) XXX_Size() int
func (*AccessoryRequest) XXX_Unmarshal ¶
func (m *AccessoryRequest) XXX_Unmarshal(b []byte) error
type AccessoryServiceClient ¶
type AccessoryServiceClient interface { GetPins(ctx context.Context, in *GetPinsRequest, opts ...grpc.CallOption) (*GetPinsResponse, error) CreateAccessory(ctx context.Context, in *AccessoryRequest, opts ...grpc.CallOption) (*Response, error) RunAccessory(ctx context.Context, in *AccessoryRequest, opts ...grpc.CallOption) (*Response, error) GetAccessories(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*GetAccessoriesResponse, error) }
AccessoryServiceClient is the client API for AccessoryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccessoryServiceClient ¶
func NewAccessoryServiceClient(cc *grpc.ClientConn) AccessoryServiceClient
type AccessoryServiceServer ¶
type AccessoryServiceServer interface { GetPins(context.Context, *GetPinsRequest) (*GetPinsResponse, error) CreateAccessory(context.Context, *AccessoryRequest) (*Response, error) RunAccessory(context.Context, *AccessoryRequest) (*Response, error) GetAccessories(context.Context, *AuthenticateRequest) (*GetAccessoriesResponse, error) }
AccessoryServiceServer is the server API for AccessoryService service.
type AuthRequest ¶
type AuthRequest struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Pass string `protobuf:"bytes,2,opt,name=pass,proto3" json:"pass,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthRequest) Descriptor ¶
func (*AuthRequest) Descriptor() ([]byte, []int)
func (*AuthRequest) GetPass ¶
func (m *AuthRequest) GetPass() string
func (*AuthRequest) GetUser ¶
func (m *AuthRequest) GetUser() string
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) Reset ¶
func (m *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (m *AuthRequest) String() string
func (*AuthRequest) XXX_DiscardUnknown ¶
func (m *AuthRequest) XXX_DiscardUnknown()
func (*AuthRequest) XXX_Marshal ¶
func (m *AuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthRequest) XXX_Merge ¶
func (m *AuthRequest) XXX_Merge(src proto.Message)
func (*AuthRequest) XXX_Size ¶
func (m *AuthRequest) XXX_Size() int
func (*AuthRequest) XXX_Unmarshal ¶
func (m *AuthRequest) XXX_Unmarshal(b []byte) error
type AuthResponse ¶
type AuthResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Token []byte `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` RefreshedToken []byte `protobuf:"bytes,6,opt,name=refreshed_token,json=refreshedToken,proto3" json:"refreshed_token,omitempty"` ValidationError []*ValidationError `protobuf:"bytes,7,rep,name=validation_error,json=validationError,proto3" json:"validation_error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthResponse) Descriptor ¶
func (*AuthResponse) Descriptor() ([]byte, []int)
func (*AuthResponse) GetCode ¶
func (m *AuthResponse) GetCode() int64
func (*AuthResponse) GetMessage ¶
func (m *AuthResponse) GetMessage() string
func (*AuthResponse) GetRefreshedToken ¶
func (m *AuthResponse) GetRefreshedToken() []byte
func (*AuthResponse) GetStatus ¶
func (m *AuthResponse) GetStatus() string
func (*AuthResponse) GetToken ¶
func (m *AuthResponse) GetToken() []byte
func (*AuthResponse) GetType ¶
func (m *AuthResponse) GetType() string
func (*AuthResponse) GetValidationError ¶
func (m *AuthResponse) GetValidationError() []*ValidationError
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) Reset ¶
func (m *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (m *AuthResponse) String() string
func (*AuthResponse) XXX_DiscardUnknown ¶
func (m *AuthResponse) XXX_DiscardUnknown()
func (*AuthResponse) XXX_Marshal ¶
func (m *AuthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthResponse) XXX_Merge ¶
func (m *AuthResponse) XXX_Merge(src proto.Message)
func (*AuthResponse) XXX_Size ¶
func (m *AuthResponse) XXX_Size() int
func (*AuthResponse) XXX_Unmarshal ¶
func (m *AuthResponse) XXX_Unmarshal(b []byte) error
type AuthServiceClient ¶
type AuthServiceClient interface { Authenticate(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*AuthResponse, error) }
AuthServiceClient is the client API for AuthService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc *grpc.ClientConn) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Authenticate(context.Context, *AuthRequest) (*AuthResponse, error) RefreshToken(context.Context, *RefreshTokenRequest) (*AuthResponse, error) }
AuthServiceServer is the server API for AuthService service.
type AuthenticateRequest ¶
type AuthenticateRequest struct { Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthenticateRequest) Descriptor ¶
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
func (*AuthenticateRequest) GetToken ¶
func (m *AuthenticateRequest) GetToken() []byte
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) Reset ¶
func (m *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (m *AuthenticateRequest) String() string
func (*AuthenticateRequest) XXX_DiscardUnknown ¶
func (m *AuthenticateRequest) XXX_DiscardUnknown()
func (*AuthenticateRequest) XXX_Marshal ¶
func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthenticateRequest) XXX_Merge ¶
func (m *AuthenticateRequest) XXX_Merge(src proto.Message)
func (*AuthenticateRequest) XXX_Size ¶
func (m *AuthenticateRequest) XXX_Size() int
func (*AuthenticateRequest) XXX_Unmarshal ¶
func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error
type GetAccessoriesResponse ¶
type GetAccessoriesResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Result []*messages.Accessory `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccessoriesResponse) Descriptor ¶
func (*GetAccessoriesResponse) Descriptor() ([]byte, []int)
func (*GetAccessoriesResponse) GetCode ¶
func (m *GetAccessoriesResponse) GetCode() int64
func (*GetAccessoriesResponse) GetMessage ¶
func (m *GetAccessoriesResponse) GetMessage() string
func (*GetAccessoriesResponse) GetResult ¶
func (m *GetAccessoriesResponse) GetResult() []*messages.Accessory
func (*GetAccessoriesResponse) GetStatus ¶
func (m *GetAccessoriesResponse) GetStatus() string
func (*GetAccessoriesResponse) ProtoMessage ¶
func (*GetAccessoriesResponse) ProtoMessage()
func (*GetAccessoriesResponse) Reset ¶
func (m *GetAccessoriesResponse) Reset()
func (*GetAccessoriesResponse) String ¶
func (m *GetAccessoriesResponse) String() string
func (*GetAccessoriesResponse) XXX_DiscardUnknown ¶
func (m *GetAccessoriesResponse) XXX_DiscardUnknown()
func (*GetAccessoriesResponse) XXX_Marshal ¶
func (m *GetAccessoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccessoriesResponse) XXX_Merge ¶
func (m *GetAccessoriesResponse) XXX_Merge(src proto.Message)
func (*GetAccessoriesResponse) XXX_Size ¶
func (m *GetAccessoriesResponse) XXX_Size() int
func (*GetAccessoriesResponse) XXX_Unmarshal ¶
func (m *GetAccessoriesResponse) XXX_Unmarshal(b []byte) error
type GetLogsResponse ¶
type GetLogsResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Result []*messages.Log `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetLogsResponse) Descriptor ¶
func (*GetLogsResponse) Descriptor() ([]byte, []int)
func (*GetLogsResponse) GetCode ¶
func (m *GetLogsResponse) GetCode() int64
func (*GetLogsResponse) GetMessage ¶
func (m *GetLogsResponse) GetMessage() string
func (*GetLogsResponse) GetResult ¶
func (m *GetLogsResponse) GetResult() []*messages.Log
func (*GetLogsResponse) GetStatus ¶
func (m *GetLogsResponse) GetStatus() string
func (*GetLogsResponse) ProtoMessage ¶
func (*GetLogsResponse) ProtoMessage()
func (*GetLogsResponse) Reset ¶
func (m *GetLogsResponse) Reset()
func (*GetLogsResponse) String ¶
func (m *GetLogsResponse) String() string
func (*GetLogsResponse) XXX_DiscardUnknown ¶
func (m *GetLogsResponse) XXX_DiscardUnknown()
func (*GetLogsResponse) XXX_Marshal ¶
func (m *GetLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetLogsResponse) XXX_Merge ¶
func (m *GetLogsResponse) XXX_Merge(src proto.Message)
func (*GetLogsResponse) XXX_Size ¶
func (m *GetLogsResponse) XXX_Size() int
func (*GetLogsResponse) XXX_Unmarshal ¶
func (m *GetLogsResponse) XXX_Unmarshal(b []byte) error
type GetPinsRequest ¶
type GetPinsRequest struct { Auth *AuthenticateRequest `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Type messages.PIN_TYPE `protobuf:"varint,2,opt,name=type,proto3,enum=messages.PIN_TYPE" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetPinsRequest) Descriptor ¶
func (*GetPinsRequest) Descriptor() ([]byte, []int)
func (*GetPinsRequest) GetAuth ¶
func (m *GetPinsRequest) GetAuth() *AuthenticateRequest
func (*GetPinsRequest) GetType ¶
func (m *GetPinsRequest) GetType() messages.PIN_TYPE
func (*GetPinsRequest) ProtoMessage ¶
func (*GetPinsRequest) ProtoMessage()
func (*GetPinsRequest) Reset ¶
func (m *GetPinsRequest) Reset()
func (*GetPinsRequest) String ¶
func (m *GetPinsRequest) String() string
func (*GetPinsRequest) XXX_DiscardUnknown ¶
func (m *GetPinsRequest) XXX_DiscardUnknown()
func (*GetPinsRequest) XXX_Marshal ¶
func (m *GetPinsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPinsRequest) XXX_Merge ¶
func (m *GetPinsRequest) XXX_Merge(src proto.Message)
func (*GetPinsRequest) XXX_Size ¶
func (m *GetPinsRequest) XXX_Size() int
func (*GetPinsRequest) XXX_Unmarshal ¶
func (m *GetPinsRequest) XXX_Unmarshal(b []byte) error
type GetPinsResponse ¶
type GetPinsResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Result *messages.Pins `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetPinsResponse) Descriptor ¶
func (*GetPinsResponse) Descriptor() ([]byte, []int)
func (*GetPinsResponse) GetCode ¶
func (m *GetPinsResponse) GetCode() int64
func (*GetPinsResponse) GetMessage ¶
func (m *GetPinsResponse) GetMessage() string
func (*GetPinsResponse) GetResult ¶
func (m *GetPinsResponse) GetResult() *messages.Pins
func (*GetPinsResponse) GetStatus ¶
func (m *GetPinsResponse) GetStatus() string
func (*GetPinsResponse) ProtoMessage ¶
func (*GetPinsResponse) ProtoMessage()
func (*GetPinsResponse) Reset ¶
func (m *GetPinsResponse) Reset()
func (*GetPinsResponse) String ¶
func (m *GetPinsResponse) String() string
func (*GetPinsResponse) XXX_DiscardUnknown ¶
func (m *GetPinsResponse) XXX_DiscardUnknown()
func (*GetPinsResponse) XXX_Marshal ¶
func (m *GetPinsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPinsResponse) XXX_Merge ¶
func (m *GetPinsResponse) XXX_Merge(src proto.Message)
func (*GetPinsResponse) XXX_Size ¶
func (m *GetPinsResponse) XXX_Size() int
func (*GetPinsResponse) XXX_Unmarshal ¶
func (m *GetPinsResponse) XXX_Unmarshal(b []byte) error
type GetUserResponse ¶
type GetUserResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Result *messages.User `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserResponse) Descriptor ¶
func (*GetUserResponse) Descriptor() ([]byte, []int)
func (*GetUserResponse) GetCode ¶
func (m *GetUserResponse) GetCode() int64
func (*GetUserResponse) GetMessage ¶
func (m *GetUserResponse) GetMessage() string
func (*GetUserResponse) GetResult ¶
func (m *GetUserResponse) GetResult() *messages.User
func (*GetUserResponse) GetStatus ¶
func (m *GetUserResponse) GetStatus() string
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) Reset ¶
func (m *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (m *GetUserResponse) String() string
func (*GetUserResponse) XXX_DiscardUnknown ¶
func (m *GetUserResponse) XXX_DiscardUnknown()
func (*GetUserResponse) XXX_Marshal ¶
func (m *GetUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserResponse) XXX_Merge ¶
func (m *GetUserResponse) XXX_Merge(src proto.Message)
func (*GetUserResponse) XXX_Size ¶
func (m *GetUserResponse) XXX_Size() int
func (*GetUserResponse) XXX_Unmarshal ¶
func (m *GetUserResponse) XXX_Unmarshal(b []byte) error
type LogServiceClient ¶
type LogServiceClient interface { GetLogs(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*GetLogsResponse, error) GetRecentLogs(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*GetLogsResponse, error) }
LogServiceClient is the client API for LogService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogServiceClient ¶
func NewLogServiceClient(cc *grpc.ClientConn) LogServiceClient
type LogServiceServer ¶
type LogServiceServer interface { GetLogs(context.Context, *AuthenticateRequest) (*GetLogsResponse, error) GetRecentLogs(context.Context, *AuthenticateRequest) (*GetLogsResponse, error) }
LogServiceServer is the server API for LogService service.
type RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshedToken []byte `protobuf:"bytes,2,opt,name=refreshed_token,json=refreshedToken,proto3" json:"refreshed_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RefreshTokenRequest) Descriptor ¶
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
func (*RefreshTokenRequest) GetRefreshedToken ¶
func (m *RefreshTokenRequest) GetRefreshedToken() []byte
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) Reset ¶
func (m *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (m *RefreshTokenRequest) String() string
func (*RefreshTokenRequest) XXX_DiscardUnknown ¶
func (m *RefreshTokenRequest) XXX_DiscardUnknown()
func (*RefreshTokenRequest) XXX_Marshal ¶
func (m *RefreshTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RefreshTokenRequest) XXX_Merge ¶
func (m *RefreshTokenRequest) XXX_Merge(src proto.Message)
func (*RefreshTokenRequest) XXX_Size ¶
func (m *RefreshTokenRequest) XXX_Size() int
func (*RefreshTokenRequest) XXX_Unmarshal ¶
func (m *RefreshTokenRequest) XXX_Unmarshal(b []byte) error
type Response ¶
type Response struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Result []byte `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type UnimplementedAccessoryServiceServer ¶
type UnimplementedAccessoryServiceServer struct { }
UnimplementedAccessoryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccessoryServiceServer) CreateAccessory ¶
func (*UnimplementedAccessoryServiceServer) CreateAccessory(ctx context.Context, req *AccessoryRequest) (*Response, error)
func (*UnimplementedAccessoryServiceServer) GetAccessories ¶
func (*UnimplementedAccessoryServiceServer) GetAccessories(ctx context.Context, req *AuthenticateRequest) (*GetAccessoriesResponse, error)
func (*UnimplementedAccessoryServiceServer) GetPins ¶
func (*UnimplementedAccessoryServiceServer) GetPins(ctx context.Context, req *GetPinsRequest) (*GetPinsResponse, error)
func (*UnimplementedAccessoryServiceServer) RunAccessory ¶
func (*UnimplementedAccessoryServiceServer) RunAccessory(ctx context.Context, req *AccessoryRequest) (*Response, error)
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) Authenticate ¶
func (*UnimplementedAuthServiceServer) Authenticate(ctx context.Context, req *AuthRequest) (*AuthResponse, error)
func (*UnimplementedAuthServiceServer) RefreshToken ¶
func (*UnimplementedAuthServiceServer) RefreshToken(ctx context.Context, req *RefreshTokenRequest) (*AuthResponse, error)
type UnimplementedLogServiceServer ¶
type UnimplementedLogServiceServer struct { }
UnimplementedLogServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogServiceServer) GetLogs ¶
func (*UnimplementedLogServiceServer) GetLogs(ctx context.Context, req *AuthenticateRequest) (*GetLogsResponse, error)
func (*UnimplementedLogServiceServer) GetRecentLogs ¶
func (*UnimplementedLogServiceServer) GetRecentLogs(ctx context.Context, req *AuthenticateRequest) (*GetLogsResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) CreateUser ¶
func (*UnimplementedUserServiceServer) CreateUser(ctx context.Context, req *messages.User) (*AuthResponse, error)
func (*UnimplementedUserServiceServer) GetUser ¶
func (*UnimplementedUserServiceServer) GetUser(ctx context.Context, req *AuthenticateRequest) (*GetUserResponse, error)
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *messages.User, opts ...grpc.CallOption) (*AuthResponse, error) GetUser(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*GetUserResponse, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *messages.User) (*AuthResponse, error) GetUser(context.Context, *AuthenticateRequest) (*GetUserResponse, error) }
UserServiceServer is the server API for UserService service.
type ValidationError ¶
type ValidationError struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` Errors []string `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValidationError) Descriptor ¶
func (*ValidationError) Descriptor() ([]byte, []int)
func (*ValidationError) GetErrors ¶
func (m *ValidationError) GetErrors() []string
func (*ValidationError) GetField ¶
func (m *ValidationError) GetField() string
func (*ValidationError) ProtoMessage ¶
func (*ValidationError) ProtoMessage()
func (*ValidationError) Reset ¶
func (m *ValidationError) Reset()
func (*ValidationError) String ¶
func (m *ValidationError) String() string
func (*ValidationError) XXX_DiscardUnknown ¶
func (m *ValidationError) XXX_DiscardUnknown()
func (*ValidationError) XXX_Marshal ¶
func (m *ValidationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidationError) XXX_Merge ¶
func (m *ValidationError) XXX_Merge(src proto.Message)
func (*ValidationError) XXX_Size ¶
func (m *ValidationError) XXX_Size() int
func (*ValidationError) XXX_Unmarshal ¶
func (m *ValidationError) XXX_Unmarshal(b []byte) error