Documentation ¶
Overview ¶
Package mainflux acts as an umbrella package containing multiple different microservices and defines all shared domain concepts.
Index ¶
- Variables
- func Env(key, fallback string) string
- func Health(service string) http.HandlerFunc
- func LoadEnvFile(envfilepath string) error
- func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
- func RegisterThingsServiceServer(s *grpc.Server, srv ThingsServiceServer)
- type AccessByIDReq
- func (*AccessByIDReq) Descriptor() ([]byte, []int)
- func (m *AccessByIDReq) GetChanID() string
- func (m *AccessByIDReq) GetThingID() string
- func (m *AccessByIDReq) Marshal() (dAtA []byte, err error)
- func (m *AccessByIDReq) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessByIDReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessByIDReq) ProtoMessage()
- func (m *AccessByIDReq) Reset()
- func (m *AccessByIDReq) Size() (n int)
- func (m *AccessByIDReq) String() string
- func (m *AccessByIDReq) Unmarshal(dAtA []byte) error
- func (m *AccessByIDReq) XXX_DiscardUnknown()
- func (m *AccessByIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessByIDReq) XXX_Merge(src proto.Message)
- func (m *AccessByIDReq) XXX_Size() int
- func (m *AccessByIDReq) XXX_Unmarshal(b []byte) error
- type AccessByKeyReq
- func (*AccessByKeyReq) Descriptor() ([]byte, []int)
- 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 (*AccessByKeyReq) ProtoMessage()
- 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 AddPolicyReq
- func (*AddPolicyReq) Descriptor() ([]byte, []int)
- func (m *AddPolicyReq) GetAct() string
- func (m *AddPolicyReq) GetObj() string
- func (m *AddPolicyReq) GetSub() string
- func (m *AddPolicyReq) Marshal() (dAtA []byte, err error)
- func (m *AddPolicyReq) MarshalTo(dAtA []byte) (int, error)
- func (m *AddPolicyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddPolicyReq) ProtoMessage()
- func (m *AddPolicyReq) Reset()
- func (m *AddPolicyReq) Size() (n int)
- func (m *AddPolicyReq) String() string
- func (m *AddPolicyReq) Unmarshal(dAtA []byte) error
- func (m *AddPolicyReq) XXX_DiscardUnknown()
- func (m *AddPolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddPolicyReq) XXX_Merge(src proto.Message)
- func (m *AddPolicyReq) XXX_Size() int
- func (m *AddPolicyReq) XXX_Unmarshal(b []byte) error
- type AddPolicyRes
- func (*AddPolicyRes) Descriptor() ([]byte, []int)
- func (m *AddPolicyRes) GetAuthorized() bool
- func (m *AddPolicyRes) Marshal() (dAtA []byte, err error)
- func (m *AddPolicyRes) MarshalTo(dAtA []byte) (int, error)
- func (m *AddPolicyRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddPolicyRes) ProtoMessage()
- func (m *AddPolicyRes) Reset()
- func (m *AddPolicyRes) Size() (n int)
- func (m *AddPolicyRes) String() string
- func (m *AddPolicyRes) Unmarshal(dAtA []byte) error
- func (m *AddPolicyRes) XXX_DiscardUnknown()
- func (m *AddPolicyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddPolicyRes) XXX_Merge(src proto.Message)
- func (m *AddPolicyRes) XXX_Size() int
- func (m *AddPolicyRes) XXX_Unmarshal(b []byte) error
- type Assignment
- func (*Assignment) Descriptor() ([]byte, []int)
- func (m *Assignment) GetGroupID() string
- func (m *Assignment) GetMemberID() string
- func (m *Assignment) GetToken() string
- func (m *Assignment) Marshal() (dAtA []byte, err error)
- func (m *Assignment) MarshalTo(dAtA []byte) (int, error)
- func (m *Assignment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Assignment) ProtoMessage()
- func (m *Assignment) Reset()
- func (m *Assignment) Size() (n int)
- func (m *Assignment) String() string
- func (m *Assignment) Unmarshal(dAtA []byte) error
- func (m *Assignment) XXX_DiscardUnknown()
- func (m *Assignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Assignment) XXX_Merge(src proto.Message)
- func (m *Assignment) XXX_Size() int
- func (m *Assignment) XXX_Unmarshal(b []byte) error
- type AuthServiceClient
- type AuthServiceServer
- type AuthorizeReq
- func (*AuthorizeReq) Descriptor() ([]byte, []int)
- func (m *AuthorizeReq) GetAct() string
- func (m *AuthorizeReq) GetObj() string
- func (m *AuthorizeReq) GetSub() string
- func (m *AuthorizeReq) Marshal() (dAtA []byte, err error)
- func (m *AuthorizeReq) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthorizeReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthorizeReq) ProtoMessage()
- func (m *AuthorizeReq) Reset()
- func (m *AuthorizeReq) Size() (n int)
- func (m *AuthorizeReq) String() string
- func (m *AuthorizeReq) Unmarshal(dAtA []byte) error
- func (m *AuthorizeReq) XXX_DiscardUnknown()
- func (m *AuthorizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeReq) XXX_Merge(src proto.Message)
- func (m *AuthorizeReq) XXX_Size() int
- func (m *AuthorizeReq) XXX_Unmarshal(b []byte) error
- type AuthorizeRes
- func (*AuthorizeRes) Descriptor() ([]byte, []int)
- func (m *AuthorizeRes) GetAuthorized() bool
- func (m *AuthorizeRes) Marshal() (dAtA []byte, err error)
- func (m *AuthorizeRes) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthorizeRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthorizeRes) ProtoMessage()
- func (m *AuthorizeRes) Reset()
- func (m *AuthorizeRes) Size() (n int)
- func (m *AuthorizeRes) String() string
- func (m *AuthorizeRes) Unmarshal(dAtA []byte) error
- func (m *AuthorizeRes) XXX_DiscardUnknown()
- func (m *AuthorizeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorizeRes) XXX_Merge(src proto.Message)
- func (m *AuthorizeRes) XXX_Size() int
- func (m *AuthorizeRes) XXX_Unmarshal(b []byte) error
- type ChannelID
- func (*ChannelID) Descriptor() ([]byte, []int)
- func (m *ChannelID) GetValue() string
- func (m *ChannelID) Marshal() (dAtA []byte, err error)
- func (m *ChannelID) MarshalTo(dAtA []byte) (int, error)
- func (m *ChannelID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChannelID) ProtoMessage()
- func (m *ChannelID) Reset()
- func (m *ChannelID) Size() (n int)
- func (m *ChannelID) String() string
- func (m *ChannelID) Unmarshal(dAtA []byte) error
- func (m *ChannelID) XXX_DiscardUnknown()
- func (m *ChannelID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelID) XXX_Merge(src proto.Message)
- func (m *ChannelID) XXX_Size() int
- func (m *ChannelID) XXX_Unmarshal(b []byte) error
- type ChannelOwnerReq
- func (*ChannelOwnerReq) Descriptor() ([]byte, []int)
- func (m *ChannelOwnerReq) GetChanID() string
- func (m *ChannelOwnerReq) GetOwner() string
- func (m *ChannelOwnerReq) Marshal() (dAtA []byte, err error)
- func (m *ChannelOwnerReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ChannelOwnerReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChannelOwnerReq) ProtoMessage()
- func (m *ChannelOwnerReq) Reset()
- func (m *ChannelOwnerReq) Size() (n int)
- func (m *ChannelOwnerReq) String() string
- func (m *ChannelOwnerReq) Unmarshal(dAtA []byte) error
- func (m *ChannelOwnerReq) XXX_DiscardUnknown()
- func (m *ChannelOwnerReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelOwnerReq) XXX_Merge(src proto.Message)
- func (m *ChannelOwnerReq) XXX_Size() int
- func (m *ChannelOwnerReq) XXX_Unmarshal(b []byte) error
- type DeletePolicyReq
- func (*DeletePolicyReq) Descriptor() ([]byte, []int)
- func (m *DeletePolicyReq) GetAct() string
- func (m *DeletePolicyReq) GetObj() string
- func (m *DeletePolicyReq) GetSub() string
- func (m *DeletePolicyReq) Marshal() (dAtA []byte, err error)
- func (m *DeletePolicyReq) MarshalTo(dAtA []byte) (int, error)
- func (m *DeletePolicyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeletePolicyReq) ProtoMessage()
- func (m *DeletePolicyReq) Reset()
- func (m *DeletePolicyReq) Size() (n int)
- func (m *DeletePolicyReq) String() string
- func (m *DeletePolicyReq) Unmarshal(dAtA []byte) error
- func (m *DeletePolicyReq) XXX_DiscardUnknown()
- func (m *DeletePolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeletePolicyReq) XXX_Merge(src proto.Message)
- func (m *DeletePolicyReq) XXX_Size() int
- func (m *DeletePolicyReq) XXX_Unmarshal(b []byte) error
- type DeletePolicyRes
- func (*DeletePolicyRes) Descriptor() ([]byte, []int)
- func (m *DeletePolicyRes) GetDeleted() bool
- func (m *DeletePolicyRes) Marshal() (dAtA []byte, err error)
- func (m *DeletePolicyRes) MarshalTo(dAtA []byte) (int, error)
- func (m *DeletePolicyRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeletePolicyRes) ProtoMessage()
- func (m *DeletePolicyRes) Reset()
- func (m *DeletePolicyRes) Size() (n int)
- func (m *DeletePolicyRes) String() string
- func (m *DeletePolicyRes) Unmarshal(dAtA []byte) error
- func (m *DeletePolicyRes) XXX_DiscardUnknown()
- func (m *DeletePolicyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeletePolicyRes) XXX_Merge(src proto.Message)
- func (m *DeletePolicyRes) XXX_Size() int
- func (m *DeletePolicyRes) XXX_Unmarshal(b []byte) error
- type HealthInfo
- type IDProvider
- type IssueReq
- func (*IssueReq) Descriptor() ([]byte, []int)
- func (m *IssueReq) GetEmail() string
- func (m *IssueReq) GetId() 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 (*IssueReq) ProtoMessage()
- 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 ListPoliciesReq
- func (*ListPoliciesReq) Descriptor() ([]byte, []int)
- func (m *ListPoliciesReq) GetAct() string
- func (m *ListPoliciesReq) GetObj() string
- func (m *ListPoliciesReq) GetSub() string
- func (m *ListPoliciesReq) Marshal() (dAtA []byte, err error)
- func (m *ListPoliciesReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPoliciesReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPoliciesReq) ProtoMessage()
- func (m *ListPoliciesReq) Reset()
- func (m *ListPoliciesReq) Size() (n int)
- func (m *ListPoliciesReq) String() string
- func (m *ListPoliciesReq) Unmarshal(dAtA []byte) error
- func (m *ListPoliciesReq) XXX_DiscardUnknown()
- func (m *ListPoliciesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPoliciesReq) XXX_Merge(src proto.Message)
- func (m *ListPoliciesReq) XXX_Size() int
- func (m *ListPoliciesReq) XXX_Unmarshal(b []byte) error
- type ListPoliciesRes
- func (*ListPoliciesRes) Descriptor() ([]byte, []int)
- func (m *ListPoliciesRes) GetPolicies() []string
- func (m *ListPoliciesRes) Marshal() (dAtA []byte, err error)
- func (m *ListPoliciesRes) MarshalTo(dAtA []byte) (int, error)
- func (m *ListPoliciesRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListPoliciesRes) ProtoMessage()
- func (m *ListPoliciesRes) Reset()
- func (m *ListPoliciesRes) Size() (n int)
- func (m *ListPoliciesRes) String() string
- func (m *ListPoliciesRes) Unmarshal(dAtA []byte) error
- func (m *ListPoliciesRes) XXX_DiscardUnknown()
- func (m *ListPoliciesRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListPoliciesRes) XXX_Merge(src proto.Message)
- func (m *ListPoliciesRes) XXX_Size() int
- func (m *ListPoliciesRes) XXX_Unmarshal(b []byte) error
- type MembersReq
- func (*MembersReq) Descriptor() ([]byte, []int)
- func (m *MembersReq) GetGroupID() string
- func (m *MembersReq) GetLimit() uint64
- func (m *MembersReq) GetOffset() uint64
- func (m *MembersReq) GetToken() string
- func (m *MembersReq) GetType() string
- func (m *MembersReq) Marshal() (dAtA []byte, err error)
- func (m *MembersReq) MarshalTo(dAtA []byte) (int, error)
- func (m *MembersReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MembersReq) ProtoMessage()
- func (m *MembersReq) Reset()
- func (m *MembersReq) Size() (n int)
- func (m *MembersReq) String() string
- func (m *MembersReq) Unmarshal(dAtA []byte) error
- func (m *MembersReq) XXX_DiscardUnknown()
- func (m *MembersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MembersReq) XXX_Merge(src proto.Message)
- func (m *MembersReq) XXX_Size() int
- func (m *MembersReq) XXX_Unmarshal(b []byte) error
- type MembersRes
- func (*MembersRes) Descriptor() ([]byte, []int)
- func (m *MembersRes) GetLimit() uint64
- func (m *MembersRes) GetMembers() []string
- func (m *MembersRes) GetOffset() uint64
- func (m *MembersRes) GetTotal() uint64
- func (m *MembersRes) GetType() string
- func (m *MembersRes) Marshal() (dAtA []byte, err error)
- func (m *MembersRes) MarshalTo(dAtA []byte) (int, error)
- func (m *MembersRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MembersRes) ProtoMessage()
- func (m *MembersRes) Reset()
- func (m *MembersRes) Size() (n int)
- func (m *MembersRes) String() string
- func (m *MembersRes) Unmarshal(dAtA []byte) error
- func (m *MembersRes) XXX_DiscardUnknown()
- func (m *MembersRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MembersRes) XXX_Merge(src proto.Message)
- func (m *MembersRes) XXX_Size() int
- func (m *MembersRes) XXX_Unmarshal(b []byte) error
- type Response
- type ThingID
- func (*ThingID) Descriptor() ([]byte, []int)
- 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 (*ThingID) ProtoMessage()
- 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
- type ThingsServiceServer
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- 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 (*Token) ProtoMessage()
- 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 UnimplementedAuthServiceServer
- func (*UnimplementedAuthServiceServer) AddPolicy(ctx context.Context, req *AddPolicyReq) (*AddPolicyRes, error)
- func (*UnimplementedAuthServiceServer) Assign(ctx context.Context, req *Assignment) (*empty.Empty, error)
- func (*UnimplementedAuthServiceServer) Authorize(ctx context.Context, req *AuthorizeReq) (*AuthorizeRes, error)
- func (*UnimplementedAuthServiceServer) DeletePolicy(ctx context.Context, req *DeletePolicyReq) (*DeletePolicyRes, error)
- func (*UnimplementedAuthServiceServer) Identify(ctx context.Context, req *Token) (*UserIdentity, error)
- func (*UnimplementedAuthServiceServer) Issue(ctx context.Context, req *IssueReq) (*Token, error)
- func (*UnimplementedAuthServiceServer) ListPolicies(ctx context.Context, req *ListPoliciesReq) (*ListPoliciesRes, error)
- func (*UnimplementedAuthServiceServer) Members(ctx context.Context, req *MembersReq) (*MembersRes, error)
- type UnimplementedThingsServiceServer
- 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)
- func (*UnimplementedThingsServiceServer) IsChannelOwner(ctx context.Context, req *ChannelOwnerReq) (*empty.Empty, error)
- type UserIdentity
- func (*UserIdentity) Descriptor() ([]byte, []int)
- func (m *UserIdentity) GetEmail() string
- func (m *UserIdentity) GetId() string
- func (m *UserIdentity) Marshal() (dAtA []byte, err error)
- func (m *UserIdentity) MarshalTo(dAtA []byte) (int, error)
- func (m *UserIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserIdentity) ProtoMessage()
- func (m *UserIdentity) Reset()
- func (m *UserIdentity) Size() (n int)
- func (m *UserIdentity) String() string
- func (m *UserIdentity) Unmarshal(dAtA []byte) error
- func (m *UserIdentity) XXX_DiscardUnknown()
- func (m *UserIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserIdentity) XXX_Merge(src proto.Message)
- func (m *UserIdentity) XXX_Size() int
- func (m *UserIdentity) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") )
var ( // Version represents the last service git tag in git history. // It's meant to be set using go build ldflags: // -ldflags "-X 'github.com/mainflux/mainflux.Version=0.0.0'" Version = "0.0.0" // Commit represents the service git commit hash. // It's meant to be set using go build ldflags: // -ldflags "-X 'github.com/mainflux/mainflux.Commit=ffffffff'" Commit = "ffffffff" // BuildTime represetns the service build time. // It's meant to be set using go build ldflags: // -ldflags "-X 'github.com/mainflux/mainflux.BuildTime=1970-01-01_00:00:00'" BuildTime = "1970-01-01_00:00:00" )
Functions ¶
func Env ¶
Env reads specified environment variable. If no value has been found, fallback is returned.
func Health ¶
func Health(service string) http.HandlerFunc
Health exposes an HTTP handler for retrieving service health.
func LoadEnvFile ¶
LoadEnvFile loads environment variables defined in an .env formatted file.
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)
func RegisterThingsServiceServer ¶
func RegisterThingsServiceServer(s *grpc.Server, srv ThingsServiceServer)
Types ¶
type AccessByIDReq ¶
type AccessByIDReq struct { ThingID string `protobuf:"bytes,1,opt,name=thingID,proto3" json:"thingID,omitempty"` ChanID string `protobuf:"bytes,2,opt,name=chanID,proto3" json:"chanID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccessByIDReq) Descriptor ¶
func (*AccessByIDReq) Descriptor() ([]byte, []int)
func (*AccessByIDReq) GetChanID ¶
func (m *AccessByIDReq) GetChanID() string
func (*AccessByIDReq) GetThingID ¶
func (m *AccessByIDReq) GetThingID() string
func (*AccessByIDReq) Marshal ¶
func (m *AccessByIDReq) Marshal() (dAtA []byte, err error)
func (*AccessByIDReq) MarshalToSizedBuffer ¶
func (m *AccessByIDReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessByIDReq) ProtoMessage ¶
func (*AccessByIDReq) ProtoMessage()
func (*AccessByIDReq) Reset ¶
func (m *AccessByIDReq) Reset()
func (*AccessByIDReq) Size ¶
func (m *AccessByIDReq) Size() (n int)
func (*AccessByIDReq) String ¶
func (m *AccessByIDReq) String() string
func (*AccessByIDReq) Unmarshal ¶
func (m *AccessByIDReq) Unmarshal(dAtA []byte) error
func (*AccessByIDReq) XXX_DiscardUnknown ¶
func (m *AccessByIDReq) XXX_DiscardUnknown()
func (*AccessByIDReq) XXX_Marshal ¶
func (m *AccessByIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessByIDReq) XXX_Merge ¶
func (m *AccessByIDReq) XXX_Merge(src proto.Message)
func (*AccessByIDReq) XXX_Size ¶
func (m *AccessByIDReq) XXX_Size() int
func (*AccessByIDReq) XXX_Unmarshal ¶
func (m *AccessByIDReq) XXX_Unmarshal(b []byte) error
type AccessByKeyReq ¶
type AccessByKeyReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ChanID string `protobuf:"bytes,2,opt,name=chanID,proto3" json:"chanID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccessByKeyReq) Descriptor ¶
func (*AccessByKeyReq) Descriptor() ([]byte, []int)
func (*AccessByKeyReq) GetChanID ¶
func (m *AccessByKeyReq) GetChanID() string
func (*AccessByKeyReq) GetToken ¶
func (m *AccessByKeyReq) GetToken() string
func (*AccessByKeyReq) Marshal ¶
func (m *AccessByKeyReq) Marshal() (dAtA []byte, err error)
func (*AccessByKeyReq) MarshalToSizedBuffer ¶
func (m *AccessByKeyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessByKeyReq) ProtoMessage ¶
func (*AccessByKeyReq) ProtoMessage()
func (*AccessByKeyReq) Reset ¶
func (m *AccessByKeyReq) Reset()
func (*AccessByKeyReq) Size ¶
func (m *AccessByKeyReq) Size() (n int)
func (*AccessByKeyReq) String ¶
func (m *AccessByKeyReq) String() string
func (*AccessByKeyReq) Unmarshal ¶
func (m *AccessByKeyReq) Unmarshal(dAtA []byte) error
func (*AccessByKeyReq) XXX_DiscardUnknown ¶
func (m *AccessByKeyReq) XXX_DiscardUnknown()
func (*AccessByKeyReq) XXX_Marshal ¶
func (m *AccessByKeyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessByKeyReq) XXX_Merge ¶
func (m *AccessByKeyReq) XXX_Merge(src proto.Message)
func (*AccessByKeyReq) XXX_Size ¶
func (m *AccessByKeyReq) XXX_Size() int
func (*AccessByKeyReq) XXX_Unmarshal ¶
func (m *AccessByKeyReq) XXX_Unmarshal(b []byte) error
type AddPolicyReq ¶
type AddPolicyReq struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"` Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddPolicyReq) Descriptor ¶
func (*AddPolicyReq) Descriptor() ([]byte, []int)
func (*AddPolicyReq) GetAct ¶
func (m *AddPolicyReq) GetAct() string
func (*AddPolicyReq) GetObj ¶
func (m *AddPolicyReq) GetObj() string
func (*AddPolicyReq) GetSub ¶
func (m *AddPolicyReq) GetSub() string
func (*AddPolicyReq) Marshal ¶
func (m *AddPolicyReq) Marshal() (dAtA []byte, err error)
func (*AddPolicyReq) MarshalToSizedBuffer ¶
func (m *AddPolicyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddPolicyReq) ProtoMessage ¶
func (*AddPolicyReq) ProtoMessage()
func (*AddPolicyReq) Reset ¶
func (m *AddPolicyReq) Reset()
func (*AddPolicyReq) Size ¶
func (m *AddPolicyReq) Size() (n int)
func (*AddPolicyReq) String ¶
func (m *AddPolicyReq) String() string
func (*AddPolicyReq) Unmarshal ¶
func (m *AddPolicyReq) Unmarshal(dAtA []byte) error
func (*AddPolicyReq) XXX_DiscardUnknown ¶
func (m *AddPolicyReq) XXX_DiscardUnknown()
func (*AddPolicyReq) XXX_Marshal ¶
func (m *AddPolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddPolicyReq) XXX_Merge ¶
func (m *AddPolicyReq) XXX_Merge(src proto.Message)
func (*AddPolicyReq) XXX_Size ¶
func (m *AddPolicyReq) XXX_Size() int
func (*AddPolicyReq) XXX_Unmarshal ¶
func (m *AddPolicyReq) XXX_Unmarshal(b []byte) error
type AddPolicyRes ¶
type AddPolicyRes struct { Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddPolicyRes) Descriptor ¶
func (*AddPolicyRes) Descriptor() ([]byte, []int)
func (*AddPolicyRes) GetAuthorized ¶
func (m *AddPolicyRes) GetAuthorized() bool
func (*AddPolicyRes) Marshal ¶
func (m *AddPolicyRes) Marshal() (dAtA []byte, err error)
func (*AddPolicyRes) MarshalToSizedBuffer ¶
func (m *AddPolicyRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddPolicyRes) ProtoMessage ¶
func (*AddPolicyRes) ProtoMessage()
func (*AddPolicyRes) Reset ¶
func (m *AddPolicyRes) Reset()
func (*AddPolicyRes) Size ¶
func (m *AddPolicyRes) Size() (n int)
func (*AddPolicyRes) String ¶
func (m *AddPolicyRes) String() string
func (*AddPolicyRes) Unmarshal ¶
func (m *AddPolicyRes) Unmarshal(dAtA []byte) error
func (*AddPolicyRes) XXX_DiscardUnknown ¶
func (m *AddPolicyRes) XXX_DiscardUnknown()
func (*AddPolicyRes) XXX_Marshal ¶
func (m *AddPolicyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddPolicyRes) XXX_Merge ¶
func (m *AddPolicyRes) XXX_Merge(src proto.Message)
func (*AddPolicyRes) XXX_Size ¶
func (m *AddPolicyRes) XXX_Size() int
func (*AddPolicyRes) XXX_Unmarshal ¶
func (m *AddPolicyRes) XXX_Unmarshal(b []byte) error
type Assignment ¶
type Assignment struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` GroupID string `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"` MemberID string `protobuf:"bytes,3,opt,name=memberID,proto3" json:"memberID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Assignment) Descriptor ¶
func (*Assignment) Descriptor() ([]byte, []int)
func (*Assignment) GetGroupID ¶
func (m *Assignment) GetGroupID() string
func (*Assignment) GetMemberID ¶
func (m *Assignment) GetMemberID() string
func (*Assignment) GetToken ¶
func (m *Assignment) GetToken() string
func (*Assignment) Marshal ¶
func (m *Assignment) Marshal() (dAtA []byte, err error)
func (*Assignment) MarshalToSizedBuffer ¶
func (m *Assignment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Assignment) ProtoMessage ¶
func (*Assignment) ProtoMessage()
func (*Assignment) Reset ¶
func (m *Assignment) Reset()
func (*Assignment) Size ¶
func (m *Assignment) Size() (n int)
func (*Assignment) String ¶
func (m *Assignment) String() string
func (*Assignment) Unmarshal ¶
func (m *Assignment) Unmarshal(dAtA []byte) error
func (*Assignment) XXX_DiscardUnknown ¶
func (m *Assignment) XXX_DiscardUnknown()
func (*Assignment) XXX_Marshal ¶
func (m *Assignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Assignment) XXX_Merge ¶
func (m *Assignment) XXX_Merge(src proto.Message)
func (*Assignment) XXX_Size ¶
func (m *Assignment) XXX_Size() int
func (*Assignment) XXX_Unmarshal ¶
func (m *Assignment) XXX_Unmarshal(b []byte) error
type AuthServiceClient ¶
type AuthServiceClient interface { Issue(ctx context.Context, in *IssueReq, opts ...grpc.CallOption) (*Token, error) Identify(ctx context.Context, in *Token, opts ...grpc.CallOption) (*UserIdentity, error) Authorize(ctx context.Context, in *AuthorizeReq, opts ...grpc.CallOption) (*AuthorizeRes, error) AddPolicy(ctx context.Context, in *AddPolicyReq, opts ...grpc.CallOption) (*AddPolicyRes, error) DeletePolicy(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*DeletePolicyRes, error) ListPolicies(ctx context.Context, in *ListPoliciesReq, opts ...grpc.CallOption) (*ListPoliciesRes, error) Assign(ctx context.Context, in *Assignment, opts ...grpc.CallOption) (*empty.Empty, error) Members(ctx context.Context, in *MembersReq, opts ...grpc.CallOption) (*MembersRes, 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 { Issue(context.Context, *IssueReq) (*Token, error) Identify(context.Context, *Token) (*UserIdentity, error) Authorize(context.Context, *AuthorizeReq) (*AuthorizeRes, error) AddPolicy(context.Context, *AddPolicyReq) (*AddPolicyRes, error) DeletePolicy(context.Context, *DeletePolicyReq) (*DeletePolicyRes, error) ListPolicies(context.Context, *ListPoliciesReq) (*ListPoliciesRes, error) Assign(context.Context, *Assignment) (*empty.Empty, error) Members(context.Context, *MembersReq) (*MembersRes, error) }
AuthServiceServer is the server API for AuthService service.
type AuthorizeReq ¶
type AuthorizeReq struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"` Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthorizeReq) Descriptor ¶
func (*AuthorizeReq) Descriptor() ([]byte, []int)
func (*AuthorizeReq) GetAct ¶
func (m *AuthorizeReq) GetAct() string
func (*AuthorizeReq) GetObj ¶
func (m *AuthorizeReq) GetObj() string
func (*AuthorizeReq) GetSub ¶
func (m *AuthorizeReq) GetSub() string
func (*AuthorizeReq) Marshal ¶
func (m *AuthorizeReq) Marshal() (dAtA []byte, err error)
func (*AuthorizeReq) MarshalToSizedBuffer ¶
func (m *AuthorizeReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthorizeReq) ProtoMessage ¶
func (*AuthorizeReq) ProtoMessage()
func (*AuthorizeReq) Reset ¶
func (m *AuthorizeReq) Reset()
func (*AuthorizeReq) Size ¶
func (m *AuthorizeReq) Size() (n int)
func (*AuthorizeReq) String ¶
func (m *AuthorizeReq) String() string
func (*AuthorizeReq) Unmarshal ¶
func (m *AuthorizeReq) Unmarshal(dAtA []byte) error
func (*AuthorizeReq) XXX_DiscardUnknown ¶
func (m *AuthorizeReq) XXX_DiscardUnknown()
func (*AuthorizeReq) XXX_Marshal ¶
func (m *AuthorizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorizeReq) XXX_Merge ¶
func (m *AuthorizeReq) XXX_Merge(src proto.Message)
func (*AuthorizeReq) XXX_Size ¶
func (m *AuthorizeReq) XXX_Size() int
func (*AuthorizeReq) XXX_Unmarshal ¶
func (m *AuthorizeReq) XXX_Unmarshal(b []byte) error
type AuthorizeRes ¶
type AuthorizeRes struct { Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthorizeRes) Descriptor ¶
func (*AuthorizeRes) Descriptor() ([]byte, []int)
func (*AuthorizeRes) GetAuthorized ¶
func (m *AuthorizeRes) GetAuthorized() bool
func (*AuthorizeRes) Marshal ¶
func (m *AuthorizeRes) Marshal() (dAtA []byte, err error)
func (*AuthorizeRes) MarshalToSizedBuffer ¶
func (m *AuthorizeRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthorizeRes) ProtoMessage ¶
func (*AuthorizeRes) ProtoMessage()
func (*AuthorizeRes) Reset ¶
func (m *AuthorizeRes) Reset()
func (*AuthorizeRes) Size ¶
func (m *AuthorizeRes) Size() (n int)
func (*AuthorizeRes) String ¶
func (m *AuthorizeRes) String() string
func (*AuthorizeRes) Unmarshal ¶
func (m *AuthorizeRes) Unmarshal(dAtA []byte) error
func (*AuthorizeRes) XXX_DiscardUnknown ¶
func (m *AuthorizeRes) XXX_DiscardUnknown()
func (*AuthorizeRes) XXX_Marshal ¶
func (m *AuthorizeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorizeRes) XXX_Merge ¶
func (m *AuthorizeRes) XXX_Merge(src proto.Message)
func (*AuthorizeRes) XXX_Size ¶
func (m *AuthorizeRes) XXX_Size() int
func (*AuthorizeRes) XXX_Unmarshal ¶
func (m *AuthorizeRes) XXX_Unmarshal(b []byte) error
type ChannelID ¶
type ChannelID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelID) Descriptor ¶
func (*ChannelID) MarshalToSizedBuffer ¶
func (*ChannelID) ProtoMessage ¶
func (*ChannelID) ProtoMessage()
func (*ChannelID) XXX_DiscardUnknown ¶
func (m *ChannelID) XXX_DiscardUnknown()
func (*ChannelID) XXX_Marshal ¶
func (*ChannelID) XXX_Unmarshal ¶
type ChannelOwnerReq ¶
type ChannelOwnerReq struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` ChanID string `protobuf:"bytes,2,opt,name=chanID,proto3" json:"chanID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelOwnerReq) Descriptor ¶
func (*ChannelOwnerReq) Descriptor() ([]byte, []int)
func (*ChannelOwnerReq) GetChanID ¶
func (m *ChannelOwnerReq) GetChanID() string
func (*ChannelOwnerReq) GetOwner ¶
func (m *ChannelOwnerReq) GetOwner() string
func (*ChannelOwnerReq) Marshal ¶
func (m *ChannelOwnerReq) Marshal() (dAtA []byte, err error)
func (*ChannelOwnerReq) MarshalToSizedBuffer ¶
func (m *ChannelOwnerReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChannelOwnerReq) ProtoMessage ¶
func (*ChannelOwnerReq) ProtoMessage()
func (*ChannelOwnerReq) Reset ¶
func (m *ChannelOwnerReq) Reset()
func (*ChannelOwnerReq) Size ¶
func (m *ChannelOwnerReq) Size() (n int)
func (*ChannelOwnerReq) String ¶
func (m *ChannelOwnerReq) String() string
func (*ChannelOwnerReq) Unmarshal ¶
func (m *ChannelOwnerReq) Unmarshal(dAtA []byte) error
func (*ChannelOwnerReq) XXX_DiscardUnknown ¶
func (m *ChannelOwnerReq) XXX_DiscardUnknown()
func (*ChannelOwnerReq) XXX_Marshal ¶
func (m *ChannelOwnerReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelOwnerReq) XXX_Merge ¶
func (m *ChannelOwnerReq) XXX_Merge(src proto.Message)
func (*ChannelOwnerReq) XXX_Size ¶
func (m *ChannelOwnerReq) XXX_Size() int
func (*ChannelOwnerReq) XXX_Unmarshal ¶
func (m *ChannelOwnerReq) XXX_Unmarshal(b []byte) error
type DeletePolicyReq ¶
type DeletePolicyReq struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"` Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeletePolicyReq) Descriptor ¶
func (*DeletePolicyReq) Descriptor() ([]byte, []int)
func (*DeletePolicyReq) GetAct ¶
func (m *DeletePolicyReq) GetAct() string
func (*DeletePolicyReq) GetObj ¶
func (m *DeletePolicyReq) GetObj() string
func (*DeletePolicyReq) GetSub ¶
func (m *DeletePolicyReq) GetSub() string
func (*DeletePolicyReq) Marshal ¶
func (m *DeletePolicyReq) Marshal() (dAtA []byte, err error)
func (*DeletePolicyReq) MarshalToSizedBuffer ¶
func (m *DeletePolicyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeletePolicyReq) ProtoMessage ¶
func (*DeletePolicyReq) ProtoMessage()
func (*DeletePolicyReq) Reset ¶
func (m *DeletePolicyReq) Reset()
func (*DeletePolicyReq) Size ¶
func (m *DeletePolicyReq) Size() (n int)
func (*DeletePolicyReq) String ¶
func (m *DeletePolicyReq) String() string
func (*DeletePolicyReq) Unmarshal ¶
func (m *DeletePolicyReq) Unmarshal(dAtA []byte) error
func (*DeletePolicyReq) XXX_DiscardUnknown ¶
func (m *DeletePolicyReq) XXX_DiscardUnknown()
func (*DeletePolicyReq) XXX_Marshal ¶
func (m *DeletePolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePolicyReq) XXX_Merge ¶
func (m *DeletePolicyReq) XXX_Merge(src proto.Message)
func (*DeletePolicyReq) XXX_Size ¶
func (m *DeletePolicyReq) XXX_Size() int
func (*DeletePolicyReq) XXX_Unmarshal ¶
func (m *DeletePolicyReq) XXX_Unmarshal(b []byte) error
type DeletePolicyRes ¶
type DeletePolicyRes struct { Deleted bool `protobuf:"varint,1,opt,name=deleted,proto3" json:"deleted,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeletePolicyRes) Descriptor ¶
func (*DeletePolicyRes) Descriptor() ([]byte, []int)
func (*DeletePolicyRes) GetDeleted ¶
func (m *DeletePolicyRes) GetDeleted() bool
func (*DeletePolicyRes) Marshal ¶
func (m *DeletePolicyRes) Marshal() (dAtA []byte, err error)
func (*DeletePolicyRes) MarshalToSizedBuffer ¶
func (m *DeletePolicyRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeletePolicyRes) ProtoMessage ¶
func (*DeletePolicyRes) ProtoMessage()
func (*DeletePolicyRes) Reset ¶
func (m *DeletePolicyRes) Reset()
func (*DeletePolicyRes) Size ¶
func (m *DeletePolicyRes) Size() (n int)
func (*DeletePolicyRes) String ¶
func (m *DeletePolicyRes) String() string
func (*DeletePolicyRes) Unmarshal ¶
func (m *DeletePolicyRes) Unmarshal(dAtA []byte) error
func (*DeletePolicyRes) XXX_DiscardUnknown ¶
func (m *DeletePolicyRes) XXX_DiscardUnknown()
func (*DeletePolicyRes) XXX_Marshal ¶
func (m *DeletePolicyRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePolicyRes) XXX_Merge ¶
func (m *DeletePolicyRes) XXX_Merge(src proto.Message)
func (*DeletePolicyRes) XXX_Size ¶
func (m *DeletePolicyRes) XXX_Size() int
func (*DeletePolicyRes) XXX_Unmarshal ¶
func (m *DeletePolicyRes) XXX_Unmarshal(b []byte) error
type HealthInfo ¶
type HealthInfo struct { // Status contains service status. Status string `json:"status"` // Version contains current service version. Version string `json:"version"` // Commit represents the git hash commit. Commit string `json:"commit"` // Description contains service description. Description string `json:"description"` // BuildTime contains service build time. BuildTime string `json:"build_time"` }
HealthInfo contains version endpoint response.
type IDProvider ¶
IDProvider specifies an API for generating unique identifiers.
type IssueReq ¶
type IssueReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IssueReq) Descriptor ¶
func (*IssueReq) MarshalToSizedBuffer ¶
func (*IssueReq) ProtoMessage ¶
func (*IssueReq) ProtoMessage()
func (*IssueReq) XXX_DiscardUnknown ¶
func (m *IssueReq) XXX_DiscardUnknown()
func (*IssueReq) XXX_Marshal ¶
func (*IssueReq) XXX_Unmarshal ¶
type ListPoliciesReq ¶
type ListPoliciesReq struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Obj string `protobuf:"bytes,2,opt,name=obj,proto3" json:"obj,omitempty"` Act string `protobuf:"bytes,3,opt,name=act,proto3" json:"act,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPoliciesReq) Descriptor ¶
func (*ListPoliciesReq) Descriptor() ([]byte, []int)
func (*ListPoliciesReq) GetAct ¶
func (m *ListPoliciesReq) GetAct() string
func (*ListPoliciesReq) GetObj ¶
func (m *ListPoliciesReq) GetObj() string
func (*ListPoliciesReq) GetSub ¶
func (m *ListPoliciesReq) GetSub() string
func (*ListPoliciesReq) Marshal ¶
func (m *ListPoliciesReq) Marshal() (dAtA []byte, err error)
func (*ListPoliciesReq) MarshalToSizedBuffer ¶
func (m *ListPoliciesReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPoliciesReq) ProtoMessage ¶
func (*ListPoliciesReq) ProtoMessage()
func (*ListPoliciesReq) Reset ¶
func (m *ListPoliciesReq) Reset()
func (*ListPoliciesReq) Size ¶
func (m *ListPoliciesReq) Size() (n int)
func (*ListPoliciesReq) String ¶
func (m *ListPoliciesReq) String() string
func (*ListPoliciesReq) Unmarshal ¶
func (m *ListPoliciesReq) Unmarshal(dAtA []byte) error
func (*ListPoliciesReq) XXX_DiscardUnknown ¶
func (m *ListPoliciesReq) XXX_DiscardUnknown()
func (*ListPoliciesReq) XXX_Marshal ¶
func (m *ListPoliciesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPoliciesReq) XXX_Merge ¶
func (m *ListPoliciesReq) XXX_Merge(src proto.Message)
func (*ListPoliciesReq) XXX_Size ¶
func (m *ListPoliciesReq) XXX_Size() int
func (*ListPoliciesReq) XXX_Unmarshal ¶
func (m *ListPoliciesReq) XXX_Unmarshal(b []byte) error
type ListPoliciesRes ¶
type ListPoliciesRes struct { Policies []string `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListPoliciesRes) Descriptor ¶
func (*ListPoliciesRes) Descriptor() ([]byte, []int)
func (*ListPoliciesRes) GetPolicies ¶
func (m *ListPoliciesRes) GetPolicies() []string
func (*ListPoliciesRes) Marshal ¶
func (m *ListPoliciesRes) Marshal() (dAtA []byte, err error)
func (*ListPoliciesRes) MarshalToSizedBuffer ¶
func (m *ListPoliciesRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListPoliciesRes) ProtoMessage ¶
func (*ListPoliciesRes) ProtoMessage()
func (*ListPoliciesRes) Reset ¶
func (m *ListPoliciesRes) Reset()
func (*ListPoliciesRes) Size ¶
func (m *ListPoliciesRes) Size() (n int)
func (*ListPoliciesRes) String ¶
func (m *ListPoliciesRes) String() string
func (*ListPoliciesRes) Unmarshal ¶
func (m *ListPoliciesRes) Unmarshal(dAtA []byte) error
func (*ListPoliciesRes) XXX_DiscardUnknown ¶
func (m *ListPoliciesRes) XXX_DiscardUnknown()
func (*ListPoliciesRes) XXX_Marshal ¶
func (m *ListPoliciesRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPoliciesRes) XXX_Merge ¶
func (m *ListPoliciesRes) XXX_Merge(src proto.Message)
func (*ListPoliciesRes) XXX_Size ¶
func (m *ListPoliciesRes) XXX_Size() int
func (*ListPoliciesRes) XXX_Unmarshal ¶
func (m *ListPoliciesRes) XXX_Unmarshal(b []byte) error
type MembersReq ¶
type MembersReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` GroupID string `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"` Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MembersReq) Descriptor ¶
func (*MembersReq) Descriptor() ([]byte, []int)
func (*MembersReq) GetGroupID ¶
func (m *MembersReq) GetGroupID() string
func (*MembersReq) GetLimit ¶
func (m *MembersReq) GetLimit() uint64
func (*MembersReq) GetOffset ¶
func (m *MembersReq) GetOffset() uint64
func (*MembersReq) GetToken ¶
func (m *MembersReq) GetToken() string
func (*MembersReq) GetType ¶
func (m *MembersReq) GetType() string
func (*MembersReq) Marshal ¶
func (m *MembersReq) Marshal() (dAtA []byte, err error)
func (*MembersReq) MarshalToSizedBuffer ¶
func (m *MembersReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MembersReq) ProtoMessage ¶
func (*MembersReq) ProtoMessage()
func (*MembersReq) Reset ¶
func (m *MembersReq) Reset()
func (*MembersReq) Size ¶
func (m *MembersReq) Size() (n int)
func (*MembersReq) String ¶
func (m *MembersReq) String() string
func (*MembersReq) Unmarshal ¶
func (m *MembersReq) Unmarshal(dAtA []byte) error
func (*MembersReq) XXX_DiscardUnknown ¶
func (m *MembersReq) XXX_DiscardUnknown()
func (*MembersReq) XXX_Marshal ¶
func (m *MembersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MembersReq) XXX_Merge ¶
func (m *MembersReq) XXX_Merge(src proto.Message)
func (*MembersReq) XXX_Size ¶
func (m *MembersReq) XXX_Size() int
func (*MembersReq) XXX_Unmarshal ¶
func (m *MembersReq) XXX_Unmarshal(b []byte) error
type MembersRes ¶
type MembersRes struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Members []string `protobuf:"bytes,5,rep,name=members,proto3" json:"members,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MembersRes) Descriptor ¶
func (*MembersRes) Descriptor() ([]byte, []int)
func (*MembersRes) GetLimit ¶
func (m *MembersRes) GetLimit() uint64
func (*MembersRes) GetMembers ¶
func (m *MembersRes) GetMembers() []string
func (*MembersRes) GetOffset ¶
func (m *MembersRes) GetOffset() uint64
func (*MembersRes) GetTotal ¶
func (m *MembersRes) GetTotal() uint64
func (*MembersRes) GetType ¶
func (m *MembersRes) GetType() string
func (*MembersRes) Marshal ¶
func (m *MembersRes) Marshal() (dAtA []byte, err error)
func (*MembersRes) MarshalToSizedBuffer ¶
func (m *MembersRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MembersRes) ProtoMessage ¶
func (*MembersRes) ProtoMessage()
func (*MembersRes) Reset ¶
func (m *MembersRes) Reset()
func (*MembersRes) Size ¶
func (m *MembersRes) Size() (n int)
func (*MembersRes) String ¶
func (m *MembersRes) String() string
func (*MembersRes) Unmarshal ¶
func (m *MembersRes) Unmarshal(dAtA []byte) error
func (*MembersRes) XXX_DiscardUnknown ¶
func (m *MembersRes) XXX_DiscardUnknown()
func (*MembersRes) XXX_Marshal ¶
func (m *MembersRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MembersRes) XXX_Merge ¶
func (m *MembersRes) XXX_Merge(src proto.Message)
func (*MembersRes) XXX_Size ¶
func (m *MembersRes) XXX_Size() int
func (*MembersRes) XXX_Unmarshal ¶
func (m *MembersRes) XXX_Unmarshal(b []byte) error
type Response ¶
type Response interface { // Code returns HTTP response code. Code() int // Headers returns map of HTTP headers with their values. Headers() map[string]string // Empty indicates if HTTP response has content. Empty() bool }
Response contains HTTP response specific methods.
type ThingID ¶
type ThingID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ThingID) Descriptor ¶
func (*ThingID) MarshalToSizedBuffer ¶
func (*ThingID) ProtoMessage ¶
func (*ThingID) ProtoMessage()
func (*ThingID) XXX_DiscardUnknown ¶
func (m *ThingID) XXX_DiscardUnknown()
func (*ThingID) XXX_Marshal ¶
func (*ThingID) XXX_Unmarshal ¶
type ThingsServiceClient ¶
type ThingsServiceClient interface { CanAccessByKey(ctx context.Context, in *AccessByKeyReq, opts ...grpc.CallOption) (*ThingID, error) IsChannelOwner(ctx context.Context, in *ChannelOwnerReq, opts ...grpc.CallOption) (*empty.Empty, error) CanAccessByID(ctx context.Context, in *AccessByIDReq, opts ...grpc.CallOption) (*empty.Empty, error) Identify(ctx context.Context, in *Token, opts ...grpc.CallOption) (*ThingID, error) }
ThingsServiceClient is the client API for ThingsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewThingsServiceClient ¶
func NewThingsServiceClient(cc *grpc.ClientConn) ThingsServiceClient
type ThingsServiceServer ¶
type ThingsServiceServer interface { CanAccessByKey(context.Context, *AccessByKeyReq) (*ThingID, error) IsChannelOwner(context.Context, *ChannelOwnerReq) (*empty.Empty, error) CanAccessByID(context.Context, *AccessByIDReq) (*empty.Empty, error) Identify(context.Context, *Token) (*ThingID, error) }
ThingsServiceServer is the server API for ThingsService service.
type Token ¶
type Token struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
If a token is not carrying any information itself, the type field can be used to determine how to validate the token. Also, different tokens can be encoded in different ways.
func (*Token) Descriptor ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthServiceServer) AddPolicy ¶
func (*UnimplementedAuthServiceServer) AddPolicy(ctx context.Context, req *AddPolicyReq) (*AddPolicyRes, error)
func (*UnimplementedAuthServiceServer) Assign ¶
func (*UnimplementedAuthServiceServer) Assign(ctx context.Context, req *Assignment) (*empty.Empty, error)
func (*UnimplementedAuthServiceServer) Authorize ¶
func (*UnimplementedAuthServiceServer) Authorize(ctx context.Context, req *AuthorizeReq) (*AuthorizeRes, error)
func (*UnimplementedAuthServiceServer) DeletePolicy ¶
func (*UnimplementedAuthServiceServer) DeletePolicy(ctx context.Context, req *DeletePolicyReq) (*DeletePolicyRes, error)
func (*UnimplementedAuthServiceServer) Identify ¶
func (*UnimplementedAuthServiceServer) Identify(ctx context.Context, req *Token) (*UserIdentity, error)
func (*UnimplementedAuthServiceServer) ListPolicies ¶
func (*UnimplementedAuthServiceServer) ListPolicies(ctx context.Context, req *ListPoliciesReq) (*ListPoliciesRes, error)
func (*UnimplementedAuthServiceServer) Members ¶
func (*UnimplementedAuthServiceServer) Members(ctx context.Context, req *MembersReq) (*MembersRes, error)
type UnimplementedThingsServiceServer ¶
type UnimplementedThingsServiceServer struct { }
UnimplementedThingsServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedThingsServiceServer) CanAccessByID ¶
func (*UnimplementedThingsServiceServer) CanAccessByID(ctx context.Context, req *AccessByIDReq) (*empty.Empty, error)
func (*UnimplementedThingsServiceServer) CanAccessByKey ¶
func (*UnimplementedThingsServiceServer) CanAccessByKey(ctx context.Context, req *AccessByKeyReq) (*ThingID, error)
func (*UnimplementedThingsServiceServer) IsChannelOwner ¶
func (*UnimplementedThingsServiceServer) IsChannelOwner(ctx context.Context, req *ChannelOwnerReq) (*empty.Empty, error)
type UserIdentity ¶
type UserIdentity struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserIdentity) Descriptor ¶
func (*UserIdentity) Descriptor() ([]byte, []int)
func (*UserIdentity) GetEmail ¶
func (m *UserIdentity) GetEmail() string
func (*UserIdentity) GetId ¶
func (m *UserIdentity) GetId() string
func (*UserIdentity) Marshal ¶
func (m *UserIdentity) Marshal() (dAtA []byte, err error)
func (*UserIdentity) MarshalToSizedBuffer ¶
func (m *UserIdentity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserIdentity) ProtoMessage ¶
func (*UserIdentity) ProtoMessage()
func (*UserIdentity) Reset ¶
func (m *UserIdentity) Reset()
func (*UserIdentity) Size ¶
func (m *UserIdentity) Size() (n int)
func (*UserIdentity) String ¶
func (m *UserIdentity) String() string
func (*UserIdentity) Unmarshal ¶
func (m *UserIdentity) Unmarshal(dAtA []byte) error
func (*UserIdentity) XXX_DiscardUnknown ¶
func (m *UserIdentity) XXX_DiscardUnknown()
func (*UserIdentity) XXX_Marshal ¶
func (m *UserIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserIdentity) XXX_Merge ¶
func (m *UserIdentity) XXX_Merge(src proto.Message)
func (*UserIdentity) XXX_Size ¶
func (m *UserIdentity) XXX_Size() int
func (*UserIdentity) XXX_Unmarshal ¶
func (m *UserIdentity) XXX_Unmarshal(b []byte) error
Directories ¶
Path | Synopsis |
---|---|
api
Package api contains implementation of Auth service HTTP API.
|
Package api contains implementation of Auth service HTTP API. |
api/grpc
Package grpc contains implementation of Auth service gRPC API.
|
Package grpc contains implementation of Auth service gRPC API. |
keto
Package keto contains PolicyAgent implementation using Keto.
|
Package keto contains PolicyAgent implementation using Keto. |
postgres
Package postgres contains Key repository implementations using PostgreSQL as the underlying database.
|
Package postgres contains Key repository implementations using PostgreSQL as the underlying database. |
tracing
Package tracing contains middlewares that will add spans to existing traces.
|
Package tracing contains middlewares that will add spans to existing traces. |
Package bootstrap contains the domain concept definitions needed to support Mainflux bootstrap service functionality.
|
Package bootstrap contains the domain concept definitions needed to support Mainflux bootstrap service functionality. |
api
Package api contains implementation of bootstrap service HTTP API.
|
Package api contains implementation of bootstrap service HTTP API. |
postgres
Package postgres contains repository implementations using PostgreSQL as the underlying database.
|
Package postgres contains repository implementations using PostgreSQL as the underlying database. |
redis/consumer
Package consumer contains events consumer for events published by Things service.
|
Package consumer contains events consumer for events published by Things service. |
redis/producer
Package producer contains the domain events needed to support event sourcing of Bootstrap service actions.
|
Package producer contains the domain events needed to support event sourcing of Bootstrap service actions. |
Package certs contains the domain concept definitions needed to support Mainflux certs service functionality.
|
Package certs contains the domain concept definitions needed to support Mainflux certs service functionality. |
api
Package api contains implementation of certs service HTTP API.
|
Package api contains implementation of certs service HTTP API. |
pki
Package pki wraps vault client
|
Package pki wraps vault client |
postgres
Package postgres contains repository implementations using PostgreSQL as the underlying database.
|
Package postgres contains repository implementations using PostgreSQL as the underlying database. |
cmd
|
|
certs
SPDX-License-Identifier: Apache-2.0
|
SPDX-License-Identifier: Apache-2.0 |
Package coap contains the domain concept definitions needed to support Mainflux CoAP adapter service functionality.
|
Package coap contains the domain concept definitions needed to support Mainflux CoAP adapter service functionality. |
api
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
Package consumers contain the domain concept definitions needed to support Mainflux consumer services functionality.
|
Package consumers contain the domain concept definitions needed to support Mainflux consumer services functionality. |
notifiers
Package notifiers contain the domain concept definitions needed to support Mainflux notifications functionality.
|
Package notifiers contain the domain concept definitions needed to support Mainflux notifications functionality. |
notifiers/api
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
notifiers/postgres
Package postgres contains repository implementations using PostgreSQL as the underlying database.
|
Package postgres contains repository implementations using PostgreSQL as the underlying database. |
notifiers/smpp
Package smpp contains the domain concept definitions needed to support Mainflux SMS notifications.
|
Package smpp contains the domain concept definitions needed to support Mainflux SMS notifications. |
notifiers/smtp
Package smtp contains the domain concept definitions needed to support Mainflux SMTP notifications.
|
Package smtp contains the domain concept definitions needed to support Mainflux SMTP notifications. |
notifiers/tracing
Package tracing contains middlewares that will add spans to existing traces.
|
Package tracing contains middlewares that will add spans to existing traces. |
writers
Package writers contain the domain concept definitions needed to support Mainflux writer services functionality.
|
Package writers contain the domain concept definitions needed to support Mainflux writer services functionality. |
writers/cassandra
Package cassandra contains the domain concept definitions needed to support Mainflux Cassandra writer service.
|
Package cassandra contains the domain concept definitions needed to support Mainflux Cassandra writer service. |
writers/influxdb
Package influxdb contains the domain concept definitions needed to support Mainflux InfluxDB writer service functionality.
|
Package influxdb contains the domain concept definitions needed to support Mainflux InfluxDB writer service functionality. |
writers/mongodb
Package mongodb contains the domain concept definitions needed to support Mainflux MondoDB writer service functionality.
|
Package mongodb contains the domain concept definitions needed to support Mainflux MondoDB writer service functionality. |
writers/postgres
Package postgres contains repository implementations using Postgres as the underlying database.
|
Package postgres contains repository implementations using Postgres as the underlying database. |
writers/timescale
Package timescale contains repository implementations using Timescale as the underlying database.
|
Package timescale contains repository implementations using Timescale as the underlying database. |
Package http contains the domain concept definitions needed to support Mainflux http adapter service functionality.
|
Package http contains the domain concept definitions needed to support Mainflux http adapter service functionality. |
api
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
internal
|
|
Package logger contains logger API definition, wrapper that can be used around any other logger.
|
Package logger contains logger API definition, wrapper that can be used around any other logger. |
redis
Package redis contains cache implementations using Redis as the underlying database.
|
Package redis contains cache implementations using Redis as the underlying database. |
Package pkg contains library packages used by Mainflux services and external services that integrate with Mainflux.
|
Package pkg contains library packages used by Mainflux services and external services that integrate with Mainflux. |
messaging/nats
Package nats hold the implementation of the Publisher and PubSub interfaces for the NATS messaging system, the internal messaging broker of the Mainflux IoT platform.
|
Package nats hold the implementation of the Publisher and PubSub interfaces for the NATS messaging system, the internal messaging broker of the Mainflux IoT platform. |
transformers
Package transformers contains the domain concept definitions needed to support Mainflux transformer services functionality.
|
Package transformers contains the domain concept definitions needed to support Mainflux transformer services functionality. |
ulid
Package ulid provides a ULID identity provider.
|
Package ulid provides a ULID identity provider. |
uuid
Package uuid provides a UUID identity provider.
|
Package uuid provides a UUID identity provider. |
Package provision contains domain concept definitions needed to support Provision service feature, i.e.
|
Package provision contains domain concept definitions needed to support Provision service feature, i.e. |
cassandra
Package cassandra contains Cassandra specific reader implementation.
|
Package cassandra contains Cassandra specific reader implementation. |
influxdb
Package influxdb contains the domain concept definitions needed to support Mainflux InfluxDB reader service functionality.
|
Package influxdb contains the domain concept definitions needed to support Mainflux InfluxDB reader service functionality. |
mongodb
Package mongodb contains the domain concept definitions needed to support Mainflux MondoDB reader service functionality.
|
Package mongodb contains the domain concept definitions needed to support Mainflux MondoDB reader service functionality. |
postgres
Package postgres contains repository implementations using Postgres as the underlying database.
|
Package postgres contains repository implementations using Postgres as the underlying database. |
timescale
Package timescale contains repository implementations using Timescale as the underlying database.
|
Package timescale contains repository implementations using Timescale as the underlying database. |
Package things contains the domain concept definitions needed to support Mainflux things service functionality.
|
Package things contains the domain concept definitions needed to support Mainflux things service functionality. |
api
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
api/auth/grpc
Package grpc contains implementation of things service gRPC API.
|
Package grpc contains implementation of things service gRPC API. |
api/auth/http
Package http contains implementation of things auth service HTTP API.
|
Package http contains implementation of things auth service HTTP API. |
api/things/http
Package http contains implementation of things service HTTP API.
|
Package http contains implementation of things service HTTP API. |
postgres
Package postgres contains repository implementations using PostgreSQL as the underlying database.
|
Package postgres contains repository implementations using PostgreSQL as the underlying database. |
redis
Package redis contains cache implementations using Redis as the underlying database.
|
Package redis contains cache implementations using Redis as the underlying database. |
standalone
Package standalone contains implementation for auth service in single-user scenario.
|
Package standalone contains implementation for auth service in single-user scenario. |
tracing
Package tracing contains middlewares that will add spans to existing traces.
|
Package tracing contains middlewares that will add spans to existing traces. |
tools
|
|
Package twins contains the domain concept definitions needed to support Mainflux twins service functionality.
|
Package twins contains the domain concept definitions needed to support Mainflux twins service functionality. |
api
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
api/http
Package http contains implementation of kit service HTTP API.
|
Package http contains implementation of kit service HTTP API. |
mongodb
Package mongodb contains repository implementations using MongoDB as the underlying database.
|
Package mongodb contains repository implementations using MongoDB as the underlying database. |
tracing
Package tracing contains middlewares that will add spans to existing traces.
|
Package tracing contains middlewares that will add spans to existing traces. |
api
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
bcrypt
Package bcrypt provides a hasher implementation utilizing bcrypt.
|
Package bcrypt provides a hasher implementation utilizing bcrypt. |
postgres
Package postgres contains repository implementations using PostgreSQL as the underlying database.
|
Package postgres contains repository implementations using PostgreSQL as the underlying database. |
tracing
Package tracing contains middlewares that will add spans to existing traces.
|
Package tracing contains middlewares that will add spans to existing traces. |