Versions in this module Expand all Collapse all v0 v0.0.1 Oct 16, 2020 Changes in this version + var ErrIntOverflowAuthn = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthAuthn = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupAuthn = fmt.Errorf("proto: unexpected end of group") + func Env(key, fallback string) string + func LoadEnvFile(envfilepath string) error + func RegisterAuthNServiceServer(s *grpc.Server, srv AuthNServiceServer) + func RegisterThingsServiceServer(s *grpc.Server, srv ThingsServiceServer) + func Version(service string) http.HandlerFunc + type AccessByIThingsServiceClientDReq struct + ChanID string + ThingID string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + type AccessByKeyReq struct + ChanID string + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AccessByKeyReq) Descriptor() ([]byte, []int) + func (*AccessByKeyReq) ProtoMessage() + func (m *AccessByKeyReq) GetChanID() string + func (m *AccessByKeyReq) GetToken() string + func (m *AccessByKeyReq) Marshal() (dAtA []byte, err error) + func (m *AccessByKeyReq) MarshalTo(dAtA []byte) (int, error) + func (m *AccessByKeyReq) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AccessByKeyReq) Reset() + func (m *AccessByKeyReq) Size() (n int) + func (m *AccessByKeyReq) String() string + func (m *AccessByKeyReq) Unmarshal(dAtA []byte) error + func (m *AccessByKeyReq) XXX_DiscardUnknown() + func (m *AccessByKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AccessByKeyReq) XXX_Merge(src proto.Message) + func (m *AccessByKeyReq) XXX_Size() int + func (m *AccessByKeyReq) XXX_Unmarshal(b []byte) error + type AuthNServiceClient interface + Identify func(ctx context.Context, in *Token, opts ...grpc.CallOption) (*UserID, error) + Issue func(ctx context.Context, in *IssueReq, opts ...grpc.CallOption) (*Token, error) + func NewAuthNServiceClient(cc *grpc.ClientConn) AuthNServiceClient + type AuthNServiceServer interface + Identify func(context.Context, *Token) (*UserID, error) + Issue func(context.Context, *IssueReq) (*Token, error) + type IssueReq struct + Issuer string + Type uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*IssueReq) Descriptor() ([]byte, []int) + func (*IssueReq) ProtoMessage() + func (m *IssueReq) GetIssuer() string + func (m *IssueReq) GetType() uint32 + func (m *IssueReq) Marshal() (dAtA []byte, err error) + func (m *IssueReq) MarshalTo(dAtA []byte) (int, error) + func (m *IssueReq) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *IssueReq) Reset() + func (m *IssueReq) Size() (n int) + func (m *IssueReq) String() string + func (m *IssueReq) Unmarshal(dAtA []byte) error + func (m *IssueReq) XXX_DiscardUnknown() + func (m *IssueReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IssueReq) XXX_Merge(src proto.Message) + func (m *IssueReq) XXX_Size() int + func (m *IssueReq) XXX_Unmarshal(b []byte) error + type Response interface + Code func() int + Empty func() bool + Headers func() map[string]string + type ThingID struct + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ThingID) Descriptor() ([]byte, []int) + func (*ThingID) ProtoMessage() + func (m *ThingID) GetValue() string + func (m *ThingID) Marshal() (dAtA []byte, err error) + func (m *ThingID) MarshalTo(dAtA []byte) (int, error) + func (m *ThingID) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ThingID) Reset() + func (m *ThingID) Size() (n int) + func (m *ThingID) String() string + func (m *ThingID) Unmarshal(dAtA []byte) error + func (m *ThingID) XXX_DiscardUnknown() + func (m *ThingID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ThingID) XXX_Merge(src proto.Message) + func (m *ThingID) XXX_Size() int + func (m *ThingID) XXX_Unmarshal(b []byte) error + type ThingsServiceClient interface + CanAccessByID func(ctx context.Context, in *AccessByIDReq, opts ...grpc.CallOption) (*empty.Empty, error) + CanAccessByKey func(ctx context.Context, in *AccessByKeyReq, opts ...grpc.CallOption) (*ThingID, error) + Identify func(ctx context.Context, in *Token, opts ...grpc.CallOption) (*ThingID, error) + func NewThingsServiceClient(cc *grpc.ClientConn) ThingsServiceClient + type ThingsServiceServer interface + CanAccessByID func(context.Context, *AccessByIDReq) (*empty.Empty, error) + CanAccessByKey func(context.Context, *AccessByKeyReq) (*ThingID, error) + Identify func(context.Context, *Token) (*ThingID, error) + type Token struct + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Token) Descriptor() ([]byte, []int) + func (*Token) ProtoMessage() + func (m *Token) GetValue() string + func (m *Token) Marshal() (dAtA []byte, err error) + func (m *Token) MarshalTo(dAtA []byte) (int, error) + func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Token) Reset() + func (m *Token) Size() (n int) + func (m *Token) String() string + func (m *Token) Unmarshal(dAtA []byte) error + func (m *Token) XXX_DiscardUnknown() + func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Token) XXX_Merge(src proto.Message) + func (m *Token) XXX_Size() int + func (m *Token) XXX_Unmarshal(b []byte) error + type UUIDProvider interface + ID func() (string, error) + type UnimplementedAuthNServiceServer struct + func (*UnimplementedAuthNServiceServer) Identify(ctx context.Context, req *Token) (*UserID, error) + func (*UnimplementedAuthNServiceServer) Issue(ctx context.Context, req *IssueReq) (*Token, error) + type UnimplementedThingsServiceServer struct + func (*UnimplementedThingsServiceServer) CanAccessByID(ctx context.Context, req *AccessByIDReq) (*empty.Empty, error) + func (*UnimplementedThingsServiceServer) CanAccessByKey(ctx context.Context, req *AccessByKeyReq) (*ThingID, error) + func (*UnimplementedThingsServiceServer) Identify(ctx context.Context, req *Token) (*ThingID, error) + type UserID struct + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UserID) Descriptor() ([]byte, []int) + func (*UserID) ProtoMessage() + func (m *UserID) GetValue() string + func (m *UserID) Marshal() (dAtA []byte, err error) + func (m *UserID) MarshalTo(dAtA []byte) (int, error) + func (m *UserID) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *UserID) Reset() + func (m *UserID) Size() (n int) + func (m *UserID) String() string + func (m *UserID) Unmarshal(dAtA []byte) error + func (m *UserID) XXX_DiscardUnknown() + func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UserID) XXX_Merge(src proto.Message) + func (m *UserID) XXX_Size() int + func (m *UserID) XXX_Unmarshal(b []byte) error + type VersionInfo struct + Service string + Version string